Skip to main content

ORIGINAL RESEARCH article

Front. Neurol., 21 August 2023
Sec. Headache and Neurogenic Pain

Which headache disorders can be diagnosed concurrently? An analysis of ICHD3 criteria using prime encoding system

Updated
  • Department of Neurology, Rutgers Robert University Medical School, New Brunswick, NJ, United States

Introduction: Real-life headache presentations may fit more than one ICHD3 diagnosis. This project seeks to exhaustively list all logically consistent “co-diagnoses” according to the ICHD3 criteria. We limited our project to cases of two concurrent diagnoses.

Methods: We included the criteria for “Migraine” (1.1, 1.2, 1.3), “Tension-type headache” (2.1, 2.2, 2.3, 2.4), “Trigeminal autonomic cephalalgias” (3.1, 3.2, 3.3, 3.4, 3.5), and “Other primary headache disorders.” We also excluded “probable” diagnosis criteria. Each characteristic in the above criteria is assigned a unique prime number. We then encoded each ICHD3 criteria into integers through multiplication in a list format; we called these criteria representations. “Codiagnoses representations” were generated by multiplying all possible pairings of criteria representations. We then manually encoded a list of logically inconsistent characteristics through multiplication. All co-diagnoses representations divisible by any inconsistency representations were filtered out, generating a list of co-diagnoses representations that were logically consistent. This list was then translated back into ICHD3 diagnoses.

Results: We used a total of 103 prime numbers to encode 578 ICHD3 criteria. Once illogical characteristics were excluded, we obtained 145 dual diagnoses. Of the dual diagnoses, two contained intersecting characteristics due to subset relationships, 14 contained intersecting characteristics without subset relationships, and 129 contained dual diagnoses as a result of non-intersecting characteristics.

Conclusion: Analysis of dual diagnosis in headaches offers insight into “loopholes” in the ICHD3 as well as a potential explanation for the source of a number of controversies regarding headache disorders. The existence of dual diagnoses and their identification may carry implications for future developments and testing of machine-learning diagnostic algorithms for headaches.

Introduction

In clinical practice, patients’ headache profiles may satisfy more than one ICHD3 criteria. These “co-diagnoses” can be a source of diagnostic challenges and uncertainties. Consider the cases where headache differential diagnosis lies between cluster headache and paroxysmal hemicrania and when an indomethacin trial cannot be attempted. In these cases, management may be challenging (1, 2). A similar diagnostic dilemma exists between cluster headaches and migraines with aura: should we consider cluster headache cases with aura symptoms a special subtype of cluster headache or a subtype of migraine with aura? Or do these cases necessarily imply the co-existence of two separate headache disorders? (see de Coo et al., Rozen vs. Peng et al.) (36). Finally, in the cases of intractable headaches with an identifiable date of onset and lack of photo-phobia, phono-phobia, or nausea: should we consider these new daily persistent headaches or chronic tension-type headaches? (Lobo et al. vs. Nierenberg et al.) (7, 8). The reader may have ready answers for each of the scenarios above; however, one has to agree that those opinions are not likely shared among our colleagues. It is not the goal of this article to weigh in on each of these issues, but rather to identify the conditions of possibilities that give rise to their existence.

We can reformulate these dilemmas as the following: In the ICHD3 criteria, what are the headache disorders that can be diagnosed without logical contradictions? Or equivalently: Which headache presentations require more than one ICHD3 diagnosis to fully account for the clinical description? We call these sorts of questions “co-diagnosis” problems. (When co-diagnosis is restricted to two diagnoses, we use the term “dual diagnosis.”) The answer to the co-diagnosis problem is fundamental to headache classification as a scientific endeavor—it forces us to examine the limitation of our classification project and asks when the current paradigm is unable to assign unique diseases with a unique diagnosis.

We propose that the solution to the co-diagnosis problem can be obtained by a novel technique of automated diagnosis through prime number representation—this technique converts ICHD3 criteria into numerical values and as a result, allows the classification to be manipulated mathematically. This method was first presented at the American Headache Society’s 2022 Denver Scientific Meeting and is described in greater detail in phase 1 of the Methods section (9). We will demonstrate that by encoding ICHD3 as numerical data it is possible to enumerate all possible dual diagnoses for primary headache disorders in ICHD3.

Methods

There are two phases to this study. Since our technique is novel, the first phase will provide an intuitive description and rationale of our methods. Phase 2 then presents an implementation for calculating ICHD3 dual diagnoses of primary headache disorders. Finally, we analyzed the result based on a paradigm of “intersecting characteristics” outlined below.

Phase 1: automated diagnosis method’s theoretical construction

We will first demonstrate that any ICHD3 criteria can be readily translated into numerical data through prime number representations. Let us consider as a motivating example the migraine criteria taken from ICHD3 below. [The demonstration here is an adaptation of a more formal mathematical treatment that is available in Supplementary material (10)].

ICHD3 Criteria for Migraine without aura:

A. At least five attacks fulfilling criteria B–D.

B. Headache attacks lasting 4–72 h (when untreated or unsuccessfully treated).

C. Headache has at least two of the following four characteristics:

1. unilateral location

2. pulsating quality

3. moderate or severe pain intensity

4. aggravation by or causing avoidance of routine physical activity (e.g., walking or climbing stairs)

D. During headache at least one of the following:

1. nausea and/or vomiting

2. photo-phobia and phono-phobia

E. Not better accounted for by another ICHD-3d diagnosis.

Notice that each of the above statements is either true or false based on specific conditions. For example, if a patient’s headache attacks last 4 to 72 h, then statement B is true. The conglomerate of all the components of the criteria—i.e. statements A to E—allows the user of ICHD3 to determine if a diagnosis is true or false. For this article, we call each of the conditions in a statement a “characteristic.” For example, in the statement D2: “photo-phobia” and “phono-phobia” are characteristics. According to D2, both characteristics need to be true in order for statement D2 to be true.

Viewed this way, ICHD3 criteria are propositional statements in disguise. A propositional statement, or simply a proposition, is a declarative sentence that is either true or false, but not both (11). When combining multiple propositional statements, two basic “operators” allow for calculation/derivation of the resultant statement’s veracity: the AND operator—also called conjunction and conventionally denoted by —and the OR operator—also called disjunction and denoted by . When an AND operator is applied to two statements, the result is true only if both statements are true; when an OR operator is applied to two statements, the result is true as long as one of the two statements is true. (For a more thorough introduction to propositional logic, we refer the readers to A Logical Introduction to Proof by Daniel Cunningham.)

Since all criteria are logical statements in disguise, one can translate the example of migraine without aura above into the following propositional logic statement: (We use the alphanumeric designation of the criteria as short-hand for each characteristic.)

A B C 1 C 2 C 1 C 3 C 1 C 4 C 2 C 3 C 2 C 4 C 3 C 4 D 1 D 2 E

Now any logical statement can be translated into its disjunctive normal form (the disjunctive normal is simply a series of logic AND statements which are connected by OR) (12). Therefore one can translate the above into the following equivalent logical statement:

A B C 1 C 2 D 1 E A B C 1 C 2 D 2 E A B C 1 C 3 D 1 E

Given any criteria in disjunctive normal form, we propose the following algorithm:

Step 1: Each characteristic in the ICHD3 is assigned a unique prime number (Table 1). Negations crucial to diagnostic criteria are also assigned a prime number.

Step 2: If AND is used between two characteristics, then the corresponding prime numbers for those two characteristics are multiplied together. These are called encodings.

Step 3: All encodings that are separated by OR in the disjunctive normal form are then combined in a list.

Step 4: We do not encode the ubiquitous criteria “Not better accounted for by another ICHD-3 diagnosis,” given that it is recursively referring to the totality of ICHD3 encodings, creating a logical impasse.

TABLE 1
www.frontiersin.org

Table 1. Prime number assignments for headache characteristics.

For example, in migraine without aura the first conjunction in the distinctive normative form, when excluding criteria E, is ( A B C 1 C 2 D 1 ) . This is therefore encoding as:

157 23 523 421 281 = 223417708453

Repeating this procedure for the totality of migraine without aura criteria yields:

[7580756461,13242732241,16451185183,102951563551,127894697713, 223417708453 ,319149 8470081,3964735629103,4166259653173,6925948962043,7277988854713,9041302068919,538 43667737173,56580493999543,70288832213209,122786715194029,1669153699852363,17539 95313985833,2178953798609479,3806388171014899,29591598361760989,9173395492145906 59].

In other words, this algorithm ensures that each numerical identification—encoding—uniquely describes a class of disease presentation sharing similar characteristics. For example, the encoding 223417708453 describes situations that are true for characteristics 157, 23, 523, 421, and 281. Notice that in a circumstance where an arbitrary additional characteristic, let us call it x, is true in addition to 157, 23, 523, 421, 281, then the new number x*157*23*523*421*281 will divide our encoding of 223417708453 without remainder. We will see how this property can be exploited to automate the diagnosis below.

Now a patient’s headache profile, thought of as a collection of headache characteristics, can be expressed using only logical conjunction. Therefore, a patient profile can be expressed as an integer. For example, a patient who has the phenotype of the following characteristic: five headaches, each lasting 4 to 72 h, unilateral, pulsating, with nausea, and photophobia can be represented as 157*23*523*421*281*397 = 8869683025841.

We now observe that a patient profile, represented/encoded as a number, must divide without remainder at least one number in its corresponding diagnosis’ encoding, assuming that a diagnosis exists. This observation forms the basis for automated diagnosis. For example, the encoding of a migraine without aura patient’s profile (such as 88696830255841 above) must be divided by at least one number in the migraine without aura encodings (in this case, 223417708453) without remainder.

How this method works can be understood intuitively: Consider a patient profile satisfying a migraine diagnosis. Then this patient’s profile, when translated into a propositional statement, must satisfy one of the many conjunctions in the migraine criteria’s disjunctive normal forms (Since that is the implication of the OR operator). Encoding both the patient’s profile and the conjunction that it satisfies using our algorithm implies that both must share at minimum a collection of prime numbers. Since both sets of prime numbers are “bundled” together by multiplication in the algorithm, one of the two encodings must divide the other without remainder. The bigger of the two encodings must be the patient profile since it has more “variables” to encode than those in the criteria. Therefore, the patient profile’s encoding must be divisible by the encoding of one of the conjunctions in the disjunctive normal form. Notice we use prime numbers as building blocks for encoding since they have the property of not being able to be divided by each other.

A caveat: although theoretically possible, in practice logical conflicts cannot exist within a patient’s clinical profile unless there exists more than one headache diagnosis—for example, it makes no sense to be both photophobic and not photophobic at the same time in either the criteria or user encoding. We will apply this observation directly below for a dual-diagnosis problem below.

Armed with the prime number automated diagnosis above, we can now tackle the uniqueness problem as follows: To obtain all possible combinations of dual diagnoses, we multiplied all the encodings of each ICHD3 diagnosis by those from another. This list, let us call it M, represents patient profiles that satisfy two ICHD3 diagnoses concurrently. Not every pairing of two ICHD3 encodings is possible as some of these pairings would contain characteristics that are contradictory. This contradiction is manifested by the co-occurrence of two logically contradictory characteristics in the same patient profile—if A and B are logically contradictory characteristics, then its encoding is simply the prime representation of A multiplied by the prime representation of B. Therefore, to obtain a logically consistent list of dual diagnoses, we simply eliminate from the list M those that are divisible by A*B.

Phase 2: implementation of automated diagnosis for the purpose of extracting dual diagnoses

Due to the limitations in computational power, we only included ICHD3 primary diagnosis up to two layers deep in terms of ICHD3 classification. ICHD3 criteria for “Migraine” (1.1, 1.2, 1.3), “Tension-type headache” (2.1, 2.2, 2.3, 2.4), “Trigeminal autonomic cephalalgias” (3.1, 3.2, 3.3, 3.4, 3.5), and “Other primary headache disorders” are included in this study. We excluded “Complications of migraine”(1.5) and “Episodic syndrome that may be associated with migraine” (1.6) since these diagnoses require diagnoses of migraine as the first assumption. We also excluded “probable” diagnosis criteria.

We then encoded all included criteria into their numerical encodings (Table 2). All possible take-two combinations encodings in Table 2 are multiplied together. We called this list M’ which represents the list M that was described in the last section.

TABLE 2
www.frontiersin.org

Table 2. Prime number encodings for selected primary headache disorders.

We further generated, by hand, a list of mutually logically exclusive characteristics (Table 3). This list in Table 3 is then encoded as a list of composite numbers. We called this list L’.

TABLE 3
www.frontiersin.org

Table 3. A list of logically contradicting characteristics.

Any number in list M’ that was divisible by any number in list L’ was then excluded. The resulting list was therefore the totality of all possible patient clinical profiles with dual diagnosis that contains non-contradictory criteria. We then diagnosed these clinical profiles using the automated diagnosis technique discussed in Phase 1. Since multiple duplicates in dual diagnoses are possible – for example, there are multiple ways in which a patient profile may be able to satisfy concurrent diagnoses of cluster and migraine with aura—eliminating the duplicates generates the results presented in Table 4.

TABLE 4
www.frontiersin.org

Table 4. Logically possible dual-diagnoses, classified.

Analysis of results as “intersecting” vs. “non-intersecting” characteristics

We will now introduce a paradigm to interpret the results through the concept of “intersecting characteristics”: We defined a dual diagnosis pair as having “intersecting characteristics” if there exists at least one characteristic shared between the two diagnoses. If this does not exist then we described the pair as having “non-intersecting characteristics” [Non-intersecting characteristics are “less interesting” in the sense that it is always possible to obtain dual diagnosis whose characteristics are non-intersecting. We previously put forth this notion in a preprint (13)]. For example, primary stabbing headaches and SUNCT are a dual diagnosis pair with intersecting characteristics given that each contains duration measured in seconds. On the contrary, cold-induced headache and nummular headache are a dual diagnosis pair with non-intersecting characteristics as the characteristics in their criteria do not overlap.

We then classified our results through the following. First, we separated those with intersecting characteristics from those with non-intersecting characteristics. We further differentiated those with intersecting characteristics due to a subset relationship vs. those with intersecting characteristics without a subset relationship. For example, chronic migraine is a subset of migraine without aura since chronic migraine is defined as the existence of migraine without aura or migraine with aura greater than 15 days per month. This would be an example of an intersecting characteristic that contains a subset relationship.

Software instrumentation

The above methods were implemented through custom code written by the author in Haskell Programming Language (Haskell 2010) via the Glasgow Haskell Compiler. The code is available for review upon inquiry to the author.

Results

A total of 103 prime numbers were used to encode characteristics from the included ICHD3 diagnosis criteria (Table 1). A total of 578 encodings were generated (Table 2). A total of 99 pairs of illogical characteristics were found (Table 3). Once illogical characteristics were excluded, a total of 253,842 composite numbers representing unique dual-diagnosis clinical profiles were obtained. A number of profiles, although unique, yielded duplicate dual diagnoses; once these duplicates were removed, we obtained 145 possible logical dual diagnoses (Table 4).

Using our classification schema above, we obtained the following: 2 dual diagnoses with intersecting characteristics due to subset relationships and 14 dual diagnoses with intersecting characteristics without subset relationships. The remaining 129 dual diagnoses were the result of non-intersecting characteristics. This breakdown of results is shown in Table 4. The intersecting diagnosis that are subsets of each other contains only two pairs of dual diagnosis: migraine with or without aura and chronic migraine. This is to be expected given that we defined chronic migraine through the existence of migraine with aura or migraine without aura.

Discussion

In clinical practice, patients with two concurrent ICHD3 diagnoses are common. Indeed, when managing secondary headaches with etiology which cannot be removed, it is recommended that one treat the phenotype of the disease; some would even suggest that secondary headaches may be triggers of underlying primary headaches and therefore should be treated according to the primary headache it provokes (14). Indeed, this is the preferred treatment method for post-traumatic headaches (15). Furthermore, medication overuse headache is by definition a co-diagnosis according to the ICHD3 (16).

Therefore, secondary headaches with a primary headache phenotype are a non-controversial manifestation of the dual diagnosis problem. In this way, the prevalence of co-diagnosis as a result of secondary headache is essentially the prevalence of secondary headaches in general – approximately 12.9% of headache patients seen at a tertiary headache center in one estimate to 18% of all patients with headaches by World Health Organization estimate in 2011 (17).

Dual diagnosis in primary headaches, however, can be a source of controversy as discussed in our introduction. This stems from the fact that primary headache disorders are phenotypically defined; controversies arise not necessarily from a disagreement in regards to pathophysiology, but rather toward an a priori definition. In other words, the problem is a Kantian one: What are the conditions of possibilities of being diagnosed with a specific kind of primary headache disorder? What are the redundancies in the contemporary classifications of headache disorders? And finally, how do our contemporary definitions of primary headaches inadvertently enable diagnostic uncertainties through the possibility of co-diagnosis? The results presented here may provide some answers. Our discussion will be organized around a few canonical diseases.

The migraine/TTH dilemma

While the split between migraine without aura and tension-type headaches is an old one, that migraine with aura and tension-type headache can be co-diagnosed is not surprising; migraine with aura patients can often have a headache that is not phenotypically like migraine without aura—the exemplary case being migraine with aura without headaches. However, this study demonstrates that it is possible to have a migraine with aura diagnosed concurrently with a chronic tension-type headache and chronic migraine. This is due to the “loophole” that allows for the co-existence of migraine with aura and chronic tension-type headache. In this case, if aura occurs greater than 15 days per month, one can obtain diagnoses that are a combination of chronic migraine, migraine with aura, and chronic tension-type headache.

Cluster headaches, TAC, and SUNCT/SUNA

Our results highlight some of the peculiarities of our contemporary classification of TAC. We show that cluster headache can be diagnosed together with hypnic headache and that cluster headache has a non-intersecting phenotypical relationship with migraine with aura. This is, of course, a source of contemporary debate mentioned previously. Indeed, one can make the same argument for any TAC being co-diagnosed with migraine with aura following the same logic. If we use de Coo et al.’s estimate, an aura is prevalent in 7.0% of cluster headaches diagnoses; we can therefore estimate that migraine with aura can be co-diagnosed in approximately 7% of cluster headache patients (4). Our study demonstrates that since cluster headache can be diagnosed together with migraine with aura, it is theoretically possible to have a chronic migraine form of cluster headache with migraine with aura. If a patient contains a co-diagnosis of migraine with aura with 15 days of aura and cluster headache, that person satisfies a chronic migraine diagnosis.

Our data also support the dilemma between paroxysmal hemicranias and cluster headaches in clinical diagnosis. Fortunately, an indomethacin trial can often be used to differentiate the two (16). Nevertheless, a co-diagnosis between cluster headache and paroxysmal hemicranias is possible as cluster headache is not defined as unresponsive to an indomethacin trial.

Short-lasting unilateral neuralgia form headaches can be co-diagnosed with sex headaches and primary stabbing headaches. This is due to the fact that all of these headache types are short lasting in nature and raises the theoretical possibility of subtypes of short-lasting unilateral neuralgia form headaches to be further classified by their provoking characteristics.

New daily persistent headaches and status migrainosus

New daily persistent headaches (NDPH) can be logically diagnosed with chronic tension-type headaches; empirically, multiple researchers of new daily persistent headaches separate migraine vs. tension-type headaches characteristics in NDPH (8). Specifically, Lobo et al. studied NDPH’s primary headache phenotypes; if we interpret this to mean co-diagnoses of a primary headache disorder with NPDH then the prevalence of co-diagnosis of TTH in NDPH was 8.8% whereas the prevalence of co-diagnosis with chronic migraine was 89.7% according to Lobo et al.’s study (7). Even though it may be intuitively obvious what kind of clinical phenomenology a migraine-like NDPH represents, according to the ICHD3 definition, it is actually impossible to diagnose a new daily persistent headache concurrently with either migraine with or without aura. This is due to (1) a limitation of the current study of not including status migrainosus and (2) from an artifact of the classification guideline which suggests that a migraine, both migraine without aura as well as migraine with aura, must not be constant. Indeed, migraine without aura is limited to a 72-h duration according to the classification, and migraine with aura also is limited by the fact that the migraine aura must be reversible. It is only the concept of status migrainosus which allows one to bridge this gap and therefore allows for the possibility of migrainous NDPH.

The concurrent diagnosis of new daily persistent headaches with hemicranias continua, nummular headaches, or thunderclap headaches coincidentally describes the sub-classification of new daily persistent headaches that was presented by Rosen in a prior review article (18). For instance, the lock-sided headache nature of some new daily persistent headaches may be attributed to a cervicogenic cause, of which nummular headache, being lock sided in nature, can be another manifestation. That new daily persistent headache can be concurrently diagnosed with thunderclap headache coincides with Rosen’s proposal of a persistent RCVS subtype of NDPH (18, 19).

Non-intersecting characteristics

Non-intersecting characteristics represent the majority of dual diagnoses. This leads to the question of headache triggers in primary headache disorders. For example, it is possible to co-diagnose migraine without aura with cold-induced headaches, compression headaches, or exercise headaches. These potential co-diagnoses invite the question of whether stimulus-related headaches and migraine can be interpreted as the same entity.

Secondary headaches: post-traumatic headaches and medication overuse headaches

While this project is limited to primary headache disorders, some of the implications of our methodology and results can be translated to secondary headaches. We can examine two such cases: post-traumatic headaches (PTH) and medication overuse headaches (MOH).

Post-traumatic headaches represent approximately 4% of symptomatic headache disorders (20). According to ICHD3, PTH is characterized by combinations of the following: a temporal relationship with the insult, regain of consciousness following the trauma, discontinuation of medication which can hinder the ability to report the existence of headache, and whether there is a resolution of headache within 3 months (see ICHD3 criteria 5.1 and 5.2). Notice that none of these are among the list of characteristics of primary headaches (see Table 1). In the language of this article then, PTH forms a “non-intersecting characteristic” with each of the primary headache disorders. Therefore, PTH can be concurrently diagnosed, at least theoretically, with any of the primary headache disorders. Even though this statement is a theoretical one, we do have some empirical evidence: It is well established that PTH often exhibits migraine or tension-type headache phenotypes (15). Furthermore, we have also observed cases of post-traumatic trigeminal autonomic cephalalgias (2124). Of note, sub-classifications of acute or posttraumatic headaches do involve nausea or vomiting in 5.1.2 and 5.2.2. Yet, given the fact that these criteria are listed under a logical OR statement, PTH can easily satisfy tension-type headache criteria or migraine criteria as a concurrent diagnosis.

Medication overuse headache has a prevalence of approximately 30 to 50% of patients seen in headache centers (25). Medication overuse headache is unique in that it must be part of a dual diagnosis. This is due to its definitional requirements: (1) An existence already of another headache disorder, (2) occurrence of more than 15 days/month, and (3) regular overuse for more than 3 months of the inciting medication (see 8.2 of ICHD3). “Regular overuse for more than 3 months of medication” is not a characteristic that is within the criteria for any of the primary headache disorders. However, “the occurrence of more than 15 days/month” is a characteristic that is found in primary headache disorders; specifically, this criterion is logically contradictory to two characteristics according to Table 3: “1 to 14 days per month” and “less than 12 days per year.” Therefore, primary headache disorders containing any of these two characteristics cannot be concurrently diagnosed with MOH. Since “1 to 14 days/month” and “no more than 12 days per year” arise from criteria of frequent and infrequent episodic tension-type headaches, respectively, we can therefore deduce that these headaches cannot be concurrently diagnosed with MOH. For the same reason, episodic migraine (i.e., those with less than 15 days per month) cannot carry a concurrent diagnosis with MOH; in other words, MOH diagnosis in migraine implies a concurrent diagnosis with chronic migraine.

Diagnostic uncertainty and co-diagnoses

Our approach in this article can be described as meta-scientific in nature (26). Highlighting a priori co-diagnoses in the ICHD3 leads to a fundamental question: Are co-diagnoses an inevitable by-product of headache taxonomy or should we eliminate them in future classifications? In other words, are co-diagnoses simply the loci of diagnostic uncertainties or are they inevitable by-products of shared pathophysiology between different disorders? For example, when a patient receives a dual diagnosis of both cluster headache and migraine with aura, should that reflect a diagnostic uncertainty between cluster headaches vs. migraine with aura or alternatively an appropriate description of that particular patient’s underlying pathophysiology?

If it is the former, then future revisions and constructions of ICHD may benefit from our meta-scientific project. For example, clarifying, amending, or even adding new characteristics to our current criteria of cluster headaches and/or migraine with aura, may prevent a co-diagnosis of migraine with aura and cluster headache, and as a result, significantly decrease clinical diagnostic uncertainty. If so, our project offers a comprehensive list of co-diagnoses for this kind of future work.

Limitations

First, although phase one of this study constructs an algorithm of automated diagnosis, it is not intended to be a substitute for detailed clinical history taking. Indeed, it is only through careful communication with our patients that accurate input data can be obtained in the first place.

Second, despite our attempt to rule out obvious logical contradictions, this is not a foolproof method. For example, concurrent diagnosis of cold-induced headache with hypnic headache is on paper logically consistent but in practice impossible—it would be unlikely for one to be woken up at night from a hypnic headache while triggering that same headache through a cold stimulus. However, these sorts of occurrences in the data appear to be rare. The only other two instances that follow a similar argument are the compression headache and hypnic headache pairing as well as the primary cough headache and hypnic headache pairing.

This study is also limited by having included only four headache categories—migraine, tension-type headache, trigeminal autonomic cephalalgia, and other primary headaches. Other primary headaches, such as those described in the addendum section of the ICHD3, have been excluded. The future direction for our project will involve the inclusion of other primary headaches as well as secondary headaches.

Status migrainosus is considered a “complication of migraine” in the ICHD3 and therefore excluded based on our inclusion criteria. This proves to be an important omission as it limits the duration of migraine attacks. The complicated relationship of status migrainosus to intractable headaches is not lost for those conducting research on status migrainosus (27). As such, although our omission causes the study to be incomplete, it does show us the importance of rethinking duration in migraine definitions.

Finally, even though the clinical utility of our result may be limited in clinical practice, our project may carry implications for machine learning algorithms in headaches as well as clinical trial design. In most machine learning diagnostic classification algorithms, the goal of classification is binary or, alternatively, organized in sequential layers of binary classification (28, 29). Our study on concurrent diagnosis challenges this principium tertii exclusi approach. This project’s identification of the specific cases in which this assumption is violated will likely improve the data science endeavor to construct automated diagnostic algorithms in the future. Indeed, this same concern can be carried over into clinical trial design: the inclusion of co-diagnosed patients in clinical trials—such as those co-diagnosed with migraine with aura/cluster in a cluster trial—may not be methodologically sound. Our article, therefore, stresses that inclusion/exclusion criteria in clinical trials must take into account the possibility of co-diagnoses in trial design.

Conclusion

Prime number encoding of ICHD3 allows for an exhaustive study of the structure of contemporary headache diagnoses. In our pilot study of this approach, these important results are obtained: (1) Status migrainosus is required for modeling migraine intractability in our classification and (2) the possibility of a dual diagnosis of chronic migraine and migraine with aura allows for loopholes in diagnoses which enable the construction of large concurrent diagnoses in headache diagnoses such as co-diagnoses of chronic migraine, chronic tension-type headaches, and migraine with aura. This may be undesirable in our classification.

Data availability statement

The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding author.

Author contributions

PZ was responsible for the entirety of the manuscript, including conceptualization, data analysis, as well as drafting of manuscript.

Funding

Article processing fee is supported by Rutgers Neurology Department.

Conflict of interest

PZ has received an honorarium from Lundbeck Biopharmaceuticals, Board Vitals, and Fieve Clinical Research, collaborates with Headache Science Incorporated without receiving financial support, and has ownership interest in Cymbeline LLC.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fneur.2023.1221209/full#supplementary-material

Abbreviations

ICHD3, International classification of headache disorders, 3rd edition; NDPH, New daily persistent headache.

References

1. Shah, ND, and Prakash, S. Coexistence of cluster headache and paroxysmal hemicrania: does it exist? A case report and literature review. J Headache Pain. (2009) 10:219–23. doi: 10.1007/s10194-009-0104-8

CrossRef Full Text | Google Scholar

2. Prakash, S, and Patell, R. Paroxysmal Hemicrania: An Update. Curr Pain Headache Rep. (2014) 18:407. doi: 10.1007/s11916-014-0407-6

CrossRef Full Text | Google Scholar

3. Rozen, TD . Cluster headache with aura. Curr Pain Headache Rep. (2011) 15:98–100. doi: 10.1007/s11916-010-0168-9

CrossRef Full Text | Google Scholar

4. de Coo, IF, Wilbrink, IF, Ie, LA, Haan, GD, and Ferrari, MD. Aura in Cluster Headache: A Cross-Sectional Study. Headache. (2018) 58:1203–10. doi: 10.1111/head.13344

CrossRef Full Text | Google Scholar

5. Applebee, AM, and Shapiro, RE. Cluster-migraine: does it exist? Curr Pain Headache Rep. (2007) 11:154–7. doi: 10.1007/s11916-007-0014-x

CrossRef Full Text | Google Scholar

6. Peng, KP, Schellong, M, and May, A. Aura in trigeminal autonomic cephalalgia is probably mediated by comorbid migraine with aura. Cephalalgia. (2022) 42:31–6. doi: 10.1177/03331024211030499

CrossRef Full Text | Google Scholar

7. Lobo, R, Wang, M, Lobo, S, and Bahra, A. Time to retire 'New daily persistent headache': Mode of onset of chronic migraine and tension-type headache. Cephalalgia. (2022) 42:385–95. doi: 10.1177/03331024211044440

CrossRef Full Text | Google Scholar

8. Nierenburg, H, and Newman, LC. Update on New Daily Persistent Headache. Curr Treat Options Neurol. (2016) 18:25. doi: 10.1007/s11940-016-0408-3

CrossRef Full Text | Google Scholar

9. Zhang, P . No machine learning required: A number theory diagnostic methods for primary headache disorders. American Headache Society 64th Annual Scientific Meeting June 9-12, 2022 Denver, Colorado. Headache. (2022) 62:911–29. doi: 10.1111/head.14317

CrossRef Full Text | Google Scholar

10. Zhang, P . Disease Diagnosis and Classification as Prime Number Representations. hal-03723482. (2022). Lyon, France. Available at: https://hal.science/hal-03723482/

Google Scholar

11. Cunningham, D . A Logical Introduction to Proof. New York: Springer (2013).

Google Scholar

12. Weisstein, E. W . “Disjunctive Normal Form.” Math World. Mathworld. (2005). Available at: Wolfram.com (Accessed 13 August 2022).

Google Scholar

13. Zhang, P. A Mathematical Interpretation of International Classification of Headache Disorders 3rd Edition. (2021). Available at: https://osf.io/fqr64

Google Scholar

14. Schankin, CJ, and Straube, A. Secondary headaches: secondary or still primary? J Headache Pain. (2012) 13:263–70. doi: 10.1007/s10194-012-0443-8

CrossRef Full Text | Google Scholar

15. Ashina, H, Eigenbrodt, AK, Seifert, T, Sinclair, T, Scher, AI, Schytz, HW, et al. Post-traumatic headache attributed to traumatic brain injury: classification, clinical characteristics, and treatment. Lancet Neurol. (2021) 20:460–9. doi: 10.1016/S1474-4422(21)00094-6

CrossRef Full Text | Google Scholar

16. International Headache Society . International Classification of Headache Disorders. Cephalalgia. (2018) 38:1–211. doi: 10.1177/0333102417738202

CrossRef Full Text | Google Scholar

17. Do, TP, Remmers, A, Schytz, HW, Schankin, C, Nelson, SE, Obermann, M, et al. Red and orange flags for secondary headaches in clinical practice: SNNOOP10 list. Neurology. (2019) 92:134–44. doi: 10.1212/WNL.0000000000006697

CrossRef Full Text | Google Scholar

18. Rozen, TD . The Three T's of NDPH (How Clinical Observations Have Led to Improved Treatment Outcomes). Headache. (2019) 59:1401–6. doi: 10.1111/head.13624

CrossRef Full Text | Google Scholar

19. Jamali, SA, and Rozen, TD. An RCVS Spectrum Disorder? New Daily Persistent Headache Starting as a Single Thunderclap Headache (3 New Cases). Headache. (2019) 59:789–94. doi: 10.1111/head.13495

CrossRef Full Text | Google Scholar

20. Ashina, H, Porreca, F, Anderson, T, Amin, FM, Ashina, M, Schytz, HW, et al. Post-traumatic headache: epidemiology and pathophysiological insights. Nat Rev Neurol. (2019) 15:607–17. doi: 10.1038/s41582-019-0243-8

CrossRef Full Text | Google Scholar

21. Putzki, N, Nirkko, A, and Diener, HC. Trigeminal Autonomic Cephalalgias: A Case Of Post-Traumatic SUNCT Syndrome? 2. Cephalalgia. (2005) 25:386–9. doi: 10.1111/j.1468-2982.2004.00860.x

CrossRef Full Text | Google Scholar

22. Grangeon, L, O'Connor, E, Chan, CK, Akijian, L, Pham Ngoc, TM, and Matharu, MS. New insights in post-traumatic headache with cluster headache phenotype: a cohort study. J Neurol Neurosurg Psychiatry. (2020) 91:572–9. doi: 10.1136/jnnp-2019-322725

CrossRef Full Text | Google Scholar

23. Heir, GM, DiPede, L, Kuchukulla, M, Kalladka, M, and Aziz, S. Diagnosis and management of traumatically induced hemicrania continua and neuropathic pain secondary to facial gun shot wound. J Oral Rehabil. (2022) 49:831–7. doi: 10.1111/joor.13324

CrossRef Full Text | Google Scholar

24. Matharu, MJ, and Goadsby, PJ. Post-traumatic chronic paroxysmal hemicrania (CPH) with aura. Neurology. (2001) 56:273–5. doi: 10.1212/wnl.56.2.273

CrossRef Full Text | Google Scholar

25. Vandenbussche, N, Laterza, D, Lisicki, M, Lloyd, J, Lupi, C, Tischler, H, et al. Medication-overuse headache: a widely recognized entity amidst ongoing debate. J Heaache Pain. (2018) 19:50. doi: 10.1186/s10194-018-0875-x

CrossRef Full Text | Google Scholar

26. Ioannidis, JPA, Fanelli, D, Dunne, DD, and Goodman, S. Meta-research: Evaluation and Improvement of Research Methods and Practices. PLoS Biol. (2015) 13:e1002264. doi: 10.1371/journal.pbio.1002264

CrossRef Full Text | Google Scholar

27. Iljazi, A, Chua, A, Rich-Fiondella, R, Veronesi, M, Melo-Carrillo, A, Ashina, S, et al. Unrecognized challenges of treating status migrainosus: An observational study. Cephalalgia. (2020) 40:818–27. doi: 10.1177/0333102420911461

CrossRef Full Text | Google Scholar

28. Kwon, J, Lee, H, Cho, S, Chung, C-S, Lee, MJ, and Park, H. Machine learning-based automated classification of headache disorders using patient-reported questionnaires. Sci Rep. (2020) 10:14062. doi: 10.1038/s41598-020-70992-1

CrossRef Full Text | Google Scholar

29. Cowan, RP, Rapoport, AM, Blythe, J, Rothrock, J, Knievel, K, Peretz, AM, et al. Diagnostic accuracy of an artificial intelligence online engine in migraine: A multi-center study. Headache. (2022) 62:870–82. doi: 10.1111/head.14324

CrossRef Full Text | Google Scholar

Keywords: headaches classification, International Classification of Headache Disorders, 3rd edition, headache diagnosis, number theory in medicine, automated diagnosis

Citation: Zhang P (2023) Which headache disorders can be diagnosed concurrently? An analysis of ICHD3 criteria using prime encoding system. Front. Neurol. 14:1221209. doi: 10.3389/fneur.2023.1221209

Received: 12 May 2023; Accepted: 31 July 2023;
Published: 21 August 2023.

Edited by:

Sait Ashina, Beth Israel Deaconess Medical Center and Harvard Medical School, United States

Reviewed by:

Mansoureh Togha, Tehran University of Medical Sciences, Iran
Roberta Messina, Vita-Salute San Raffaele University, Italy
Renato Arruda, University of São Paulo, Ribeirão Preto, Brazil

Copyright © 2023 Zhang. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Pengfei Zhang, phil.p.zhang@gmail.com

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.