A new unsupervised machine learning technique, denominated as Trace-based clustering, and a 5-step methodology in order to support clinicians when identifying patient phenotypes are proposed, showing that the proposed methodology allows physicians to identify consistent patient phenotype.