Objective We represent primary headaches within the International Headache Classification (ICHD3) in matrix form and show that this representation allows for automated diagnosis as well as additional insights into headache classification. Background ICHD3 has been the gold standard for clinical trials and research in headache medicine. Given its criteria-based language, ICHD3 can be interpreted as a set of logical statements and as a result can be encoded as the biadjacency matrix of a mathematical graph. This paper implements this interpretation of the classification and explores the clinical and theoretical implications of this approach. Methods Each diagnosis in the ICHD3 is defined by a list of characteristics. Combinations of characteristics form phenotypes. Multiple phenotypes may fit a given diagnosis. We first translated all characteristics for primary headache diagnoses in the ICHD3 into true/false statements. We then generated a matrix of valid ICHD3 diagnoses as follows: Each row of the matrix represents a phenotype. Each column of the matrix represents a characteristic. If any phenotype contains a characteristic, then that element is encoded as Otherwise, it is encoded as 0. From this matrix, we calculated its bipartite projection and Markov cluster. We also row reduced to derive the basis vectors that span the space of all headache phenotypes. Results Chronic migraine diagnoses as well as the characteristics “greater than 15 days per month” and “more than 3 months” have the strongest associations based on bipartite projection. Markov clustering yields 64 clusters. These clusters can be organized by ICHD3 diagnoses and demonstrates the level of fragmentation of individual diagnoses within the classification: Migraine is composed of 1 cluster, for example, whereas paroxysmal hemicrania can be broken down into 9 clusters. Finally, row reduction of our matrix yields 63 basis vectors, implying that all headache diagnoses in the ICHD3 can be represented as linear combinations of 63 characteristics. These 63 characteristics correspond to the following: duration, frequency, aura characteristics, size/location, laterality, clearly remembered onset, TAC features, total number of episodes, severity, nausea/vomiting, photophobia, pulsating, alleviation by triptans, and association with awakening, sexual activity, physical activity, temperature, compression or traction, coughing. Conclusion Our result demonstrates that ICHD3 is a mathematical entity and that headache diagnoses can exist in a 63-dimensional vector space. This mathematical embodiment of classification allows us to conduct (1) large scale systematic investigations of relationships between headache and phenotypes, (2) generate a graphical representation of characteristics and phenotypes and (3) potentially improve diagnostic accuracy and efficiency.
Zhang et al. (Mon,) studied this question.