Matrix and graphical representation of the primary headache syndromes in the International Classification of Headache Disorders (ICHD3): a basis for automated diagnosis and analysis of criteria

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.

Authors

Institutions

Publication Details

Journal
Frontiers in Neurology
Published
2026-05-11
DOI
https://doi.org/10.3389/fneur.2026.1812996
Primary Topic
Migraine and Headache Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Matrix and graphical representation of the primary headache syndromes in the International Classification of Headache Disorders (ICHD3): a basis for automated diagnosis and analysis of criteria

Pengfei Zhang, Roger Cheng
Frontiers in Neurology
Migraine and Headache Studies
article

Matrix and graphical representation of the primary headache syndromes in the International Classification of Headache Disorders (ICHD3): a basis for automated diagnosis and analysis of criteria

Pengfei Zhang, Roger Cheng
article en

Abstract

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.

Frontiers in NeurologyVol. 17
Rutgers, The State University of New Jersey (US), Harvard University (US), Hadassah Medical Center (IL), Johnson University (US), Rutgers Sexual and Reproductive Health and Rights (NL)
Openalex Percentile: Top 6%
Migraine and Headache Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.