{'fraction_non_alphanumeric': 0.024595243628476256, 'fraction_numerical': 0.010264156789836549, 'mean_word_length': 5.250060518034374, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
An evolutionary medicine perspective on pain and its disorders

Enormous progress in understanding the mechanisms that mediate pain can be augmented by an evolutionary medicine perspective on how the capacity for pain gives selective advantages, the trade-offs that shaped the mechanisms, and evolutionary explanations for the system's vulnerability to excessive and chronic pain. Syndromes of deficient pain document tragically the utility of pain to motivate escape from and avoidance of situations causing tissue damage. Much apparently excessive pain is actually normal because the cost of more pain is often vastly less than the cost of too little pain (the smoke detector principle). Vulnerability to pathological pain may be explained in part because natural selection has shaped mechanisms that respond adaptively to repeated tissue damage by decreasing the pain threshold and increasing pain salience. The other half of an evolutionary approach describes the phylogeny of pain mechanisms; the apparent independence of different kinds of pain is of special interest. Painful mental states such as anxiety, guilt and low mood may have evolved from physical pain precursors. Preliminary evidence for this is found in anatomic and genetic data. Such insights from evolutionary medicine may help in understanding vulnerability to chronic pain. This article is part of the Theo Murphy meeting issue ‘Evolution of mechanisms and behaviour important for pain’.


Background
Pain always seems like a problem, but usually, it is part of the solution. Sometimes, however, pain is far too intense or long-lasting, causing enormous useless suffering. The vast majority of research into the causes has focused on the mechanisms that mediate and regulate pain. That research has given rise to a rich body of knowledge that describes the mechanisms that mediate and regulate pain at levels from genes to molecules to tissues and organs [1,2]. However, hopes of finding specific molecules or brain loci to explain pain and pain syndromes have not been fulfilled. Many different genes and molecules interact to make pain possible, and most of them are also involved in many other bodily processes. Nervous system and brain pathways involved in pain are only somewhat specific [3,4]. While specific spinal cord pathways mediate pain transmission, many brain regions and circuits are involved. The entire system provides a fine example of how systems shaped by natural selection are characterized by organic complexity that is fundamentally different from the complexity in systems designed by engineers [5].
It is increasingly clear that understanding pain syndromes requires understanding not only the mechanisms that regulate pain, but also the evolutionary reasons why those mechanisms are vulnerable to failure [4]. They fail for many people, often, and tragically. In the USA, 10% of people report chronic severe back pain, the single greatest cause of Years Lived with Disability. The economic cost of pain conditions is greater than that from heart disease and cancer [6]. Most pain seems excessive; as the philosopher Schopenhauer said in 1851, 'If the immediate and direct purpose of our life is not suffering, then our existence is the most ill-adapted to its purpose in the world' [7, p. 41]. Eighty years later, Charles Darwin's The Origin of Species provides an explanation for why bodily traits are so well suited to their functions, and why pain exists.
Pain or suffering of any kind, if long continued, causes depression and lessens the power of action; yet it is well adapted to make a creature guard itself against any great or sudden evil. Charles Darwin, 1887, pp. 51-52 [8].
The second half of the twentieth century saw Darwin's ideas applied to animal behaviour. In particular, the Nobel Prizewinning ethologist Nico Tinbergen recognized that four somewhat separate questions must all be answered to provide a complete biological explanation for any trait [9]. Two of them are so-called 'proximate questions', one about the structure of a mechanism and the other about how the mechanism develops across the life course of an individual organism. The other two are evolutionary questions. One asks about the adaptive significance of the trait and the selective advantages that shaped it. The other asks about the phylogeny of the trait. Both are relevant to a full understanding of pain. The four questions can be organized into a 2 × 2 table [10] (figure 1).
The fields of behavioural ecology and animal behaviour have prospered thanks to new attention to the ways that genetic variations influence the brain and behavioural variations that influence the prevalence of genetic representations in future generations [11][12][13]. Recognition that an allele's representation in future generations depends on reproductive success irrespective of lifespan has been a major advance [14,15]. Another is a recognition that selection operates mainly at the level of the gene, and that cooperation among cells in metazoans is superb because all cells are initially genetically identical [16][17][18].
More recently, it has become clear there are evolutionary explanations not only for why traits work so well but also for why they are vulnerable to failure [19]. For instance, ageing results not only from alleles outside the reach of natural selection but also from antagonistic pleiotropy; alleles that cause ageing are selected for because they give advantages early in life when selection is stronger. Cancer has been suppressed strongly by natural selection, but protection is limited because having more stem cells speeds tissue healing at the cost of cancer vulnerability [20]. Proposing and testing hypotheses for such explanations is a major focus for the new field of evolutionary medicine [21][22][23][24]. One wellrecognized answer is that natural selection is not all-powerful; mutations happen, the body's mechanisms cannot be perfectly optimized, and they can be damaged by toxins and trauma. Evolutionary medicine augments this observation by encouraging attention to additional possible explanations including mismatch with modern environments, pathogens that evolve faster than their hosts, trade-offs that limit the perfection of every trait, and recognition that natural selection shapes organisms not for longevity, health or freedom from pain, but for maximizing reproduction [19].
We first summarize the evidence for the adaptive value of pain, then describe how natural selection shaped mechanisms that regulate pain expression. This leads naturally to considering the trade-offs arising from deficient versus excessive pain sensitivity, and how the smoke detector principle explains the prevalence of pain that is normal but useless or excessive in the individual instance. We then describe the plasticity mechanisms that adjust pain sensitivity, duration and intensity in response to prior experience, and why those mechanisms increase vulnerability to chronic pain. Finally, we consider the other half of an evolutionary explanation, phylogeny, to describe the unity and diversity of pain mechanisms, and whether capacities for mental pain have evolutionary precursors in physical pain mechanisms.

How selection shaped the pain system
Substantial individual variation in pain responses has long been clinically obvious, and experimental studies find enormous differences in pain thresholds [25]. Variations in pain sensitivity are heritable, with about 40% of the variation accounted for by genetic variations [26] and specific haplotypes causing two-to threefold differences in pain sensitivity [27]. Heritable variation in pain is present, so natural selection will shape it. The evolutionary question becomes obvious: what advantages and disadvantages are experienced by individuals whose pain threshold is low versus those whose pain threshold is high?
A logically prior question is whether the thresholds for different kinds of pain are highly correlated within individuals. The answer seems to be, somewhat surprisingly, no [28]. Someone who is extremely sensitive to pain from heat may be relatively insensitive to pain from the pressure. This suggests that no single mechanism regulates pain sensitivity in general, and it further suggests that different kinds of nociception diverged long ago or that they had separate origins.
The adaptive value of pain is demonstrated, often tragically, by syndromes of pain deficiency [29]. People born with no capacity for experiencing pain accumulate increasing tissue damage, especially to their skin and joints, and they fail to get full defence against diseases and trauma. The result is deformity, mobility problems, and early death. Notably, damage results not only from exogenous factors but also from lack of motivation for the small movements that protect joints and skin from damage caused by pressure or loss of blood supply; these problems demonstrate the role of nociception in motivating adaptive fidgeting. As some have noted, pain occurs only when the subtle cues of nociception have failed to provide adequate protection [30].
Acquired syndromes of pain deficiency provided further evidence for the value of pain [31]. Patients with syphilis get Charcot's joints because the destruction of pain pathways decreases normal small movements that protect cartilage and  In addition to protecting against tissue damage, pain also promotes healing by limiting movement and disruption [32]. Pain can also communicate danger and the need for help [33,34].
Compared to syndromes of pain deficiency, those characterized by excessive pain are far more obvious. They are also far more common, for the good evolutionary reason that pain excess harms fitness less than pain deficiency. That does not make such syndromes less of a problem. Patients with hereditary pain syndromes are in constant agony, and millions of people experience chronic back, abdominal, skin or head pain syndromes that can be exceedingly difficult to treat. Why did not natural selection provide better protection against such suffering? Several reasons will be considered in turn, starting with pain that is normal but useless or excessive in the individual instance.

The smoke detector principle
More often than not, pain seems to be excessive in intensity or duration. Evidence to augment the testimony of individual subjective experience is provided by the safety of analgesics in many instances. This poses an evolutionary mystery. Why would natural selection shape a regulation mechanism that expresses pain when it is not needed? More generally, why are defences such as cough, fatigue, vomiting, anxiety and inflammation so often excessive as demonstrated by the apparent safety of drugs that block them?
One part of the answer comes from the smoke detector principle [35]. If the magnitude of a threat is uncertain, what response threshold will maximize fitness? The answer depends on the cost of the defensive response and the cost of not expressing the response if the danger is actually present. Many responses, especially behavioural responses to physical danger, or inflammatory responses to infections, are relatively inexpensive compared to the catastrophe that could result from an inadequate response. In technical terms, natural selection shapes mechanisms that regulate defences based on the principles of signal detection, the mathematical theory that describes the costs and benefits of responding or not responding in situations of uncertainty [36]. Technical treatments are available elsewhere, but they can be summarized by noting that false alarms and apparently excessive responses are prevalent in the body, just as they are in home smoke detectors. This is a major part of the explanation for why analgesics can often be used safely.
However, excessive analgesia causes major problems, nonetheless. For instance, patients with osteoarthritis treated with anti-inflammatory drugs tend to damage their joints and experience faster joint deterioration [37]. More generally, the problems that arise from using drugs that artificially boost pleasure and block pain encourages increased respect for the value of pain [38].

Sensitization
The responses of many systems are adjusted as a function of experience. Learning by conditioning is a very general example, but other systems also adapt after experience [39]. Sometimes, as in callous formation after mild skin abrasion, this decreases sensitivity. However, repeated arousal of a defensive system can indicate inadequate protection and a situation in which increased the sensitivity of the system may offer benefits greater than the costs.
The evolutionary question is whether such adjustments are products of an adaptive adjustment, or if they are unfortunate side effects. For epilepsy, the phenomenon of seizures increasing the rate of future seizures (kindling) is a maladaptive by-product [40]. The tendency of depressive episodes to make future episodes more likely has also been seen as pathological [41], however, repeated failures that arouses low mood might well indicate an unrewarding environment in which earlier disengagement of effort is wise [42]. By contrast, increased sensitivity to cues of danger after repeated experiences of pain seems well adapted to provide needed extra protection [43,44].
Sensitization to pain is well recognized [45]. In the immediate aftermath of tissue damage, local sensitization functions effectively to minimize movement and other disruption that would impair healing. The mechanisms that mediate such sensitization have been the object of intense study because of their obvious relevance to chronic pain. In particular, at least 28 transient receptor ion channels have been identified, classified into six subfamilies that respond to different changes, especially temperature [46]. Their activation influences sensitization.
Even more important for understanding chronic pain are the mechanisms that turn off the sensitization associated with tissue healing. What cues are involved? What mechanisms transmit the signal that sensitization is no longer necessary? Can analgesics disrupt the signals that normally desensitize the system? Research on such questions may be a valuable complement to studies of how sensitization is turned on.
This normal sensitization and desensitization process may or may not mediate the sensitization that can result from repeated arousal. Such facultative adaptations that decrease response threshold after repeated arousal are inherently vulnerable to runaway positive feedback because lowering the threshold makes arousal more likely. We speculate that this risk has shaped additional systems to protect against such runaway positive feedback dysregulation and that failures of such systems, or their disruption by drugs, could be implicated in chronic pain syndromes.

Mismatch
Many diseases are more common for individuals living in modern environments, including atherosclerosis and autoimmune diseases [22,47]. Back and joint pain are common everywhere but have been thought to be increased by sedentary lifestyles and sitting instead of walking and standing. The effects of everyday injuries have received less attention. Modern lives are remarkably free from the cuts and bruises our ancestors experienced routinely. Does this change pain sensitivity? Our ancestors also did not have access to antiinflammatory and analgesic drugs that are now administered routinely. A recent study shows post-operative pain is prolonged by repeated opioid administration in rats [48]. Is this an example of the kind of receptor changes routinely observed in response to drugs, or something special? The vastly increased number of menstrual cycles for modern royalsocietypublishing.org/journal/rstb Phil. Trans. R. Soc. B 374: 20190288 versus ancestral women has been suggested to account for the prevalence of chronic pelvic pain and its association with dysmenorrhea [49]. Studies of chronic and other pain in hunter-gatherer populations would provide very valuable data to assess the influence of modern environments on pain experience and the risk of chronic pain.

The stress response system and pain
The stress response system adjusts bodily systems for action in the face of threat and opportunity [50]. It is a product of millions of years of selection shaping the response itself and the mechanisms that regulate it. The system is usually turned off because of its costs, including decreased immune response, increased metabolic demand and generation of harmful products [51]. But when action is needed, these costs are worth it. The maximum benefit comes from subtle regulation of corticotropin releasing hormone (CRH), adrenocorticotropic hormone, and cortisol. The feedback systems are intricately connected at all levels, with responses not only to hormone levels but also to rates of change [52].
The connection to the pain system is especially obvious in the proopiomelanocortin molecule, which contains the precursors for corticotrophin-releasing hormone (CRF) as well as endorphins. Endorphins decrease pain sensitivity in the face of severe danger when action is essential despite tissue damage [53]. CRF not only initiates the hypothalamic-pituitary-adrenal axis (HPA) axis of the acute stress response, it also increases anxiety and the pain threshold via related chemical signalling systems [54,55]. Decreased sensitivity to pressure pain inducted by CRH injection is not reversed by opioid blockers [56]. Direct administration of hydrocortisone and dexamethasone do not influence the pain threshold, but the threshold is low for individuals whose baseline cortisol is high [57]. Chronic opioid use can disrupt HPA signalling resulting in adrenal insufficiency in up to 25% of cases [58].
Cortisol is often thought of as a stress hormone, but it adjusts the body to opportunities as well as threats that change needs for energy metabolism [59,60]. It is not a direct cause of tissue damage, and its role in decreasing inflammation seems to protect against damage caused by other aspects of the emergency response [61]. Psychological stress can activate the HPA system, but it is by no means consistent, with no cortisol response in about a third of people who take the Trier Social Stress test [62]. Exercise, sudden opportunities and novelty are also potent but somewhat inconsistent stimulators of the system [63][64][65][66].
The HPA system is often assumed to be useful in the short term, but costly if aroused for extended periods [67,68]. What is essential is turning cortisol on when it is needed and turning it off when it is not. There certainly are costs from extended arousal, including tissue damage, atherosclerotic progression and possibly chronic pain [69]. The question is whether these costs are worth it on average, or if they are pathological products of a system that is poorly regulated or exposed to novel environments deficient in physical activity that would minimize the impact of stress associated tissue damage.
To sum up, it is obvious and extensively documented that the pain system is a useful adaptation shaped by natural selection. What is newer and still in need of documentation are the reasons why the system so often gives rise to useless pain. The smoke detector principle is an important explanation for some pain and fear that is normal but useless in the specific instance. The sensitization of mechanisms that detect damage is an adaptation in the short run to facilitate tissue healing, and it may also be useful in the long run to provide extra protection in environments that are especially dangerous. However, such protection comes at the risk of the system going into a positive feedback loop in which the experience of pain lowers the pain threshold to cause chronic pain. Mismatch with modern environments may also play important roles in chronic pain, via routes as varied as the effects of exercise, the use of analgesics, and even the frequency of menstrual cycling.

How are psychic and physical pain related?
Many emotions, such as anxiety, jealousy, envy and boredom, are aversive. That aversiveness contributes to their function by motivating escape and avoidance of situations that harm fitness. Older attempts to describe the evolution of emotions in terms of specific functions for each one are being replaced by the recognition that each emotion is a special mode of response readiness that adjusts many parameters to increase the ability to cope with a situation that has recurred over evolutionary time [70][71][72].
Depression is a kind of pain and such psychic pain serves functions similar to physical pain [73][74][75]. Escaping 'psychache' has been hypothesized to be the crucial common factor motivating suicide [75][76][77]. Low mood, that is mild depressive symptoms aroused for a good reason, can be useful in situations where the action is useless or harmful and waiting or withdrawing is more useful. Such situations include infection, losing a status competition, and failing efforts to reach a goal [42].
Substantial evidence supports the role of inflammation and infection in arousing negative affect [78]. The use of sickness behaviour has been recognized ever since the pioneering articles by Benjamin Hart [79]. During an infection, decreasing motivation and activity conserves resources that can be allocated to expensive immune responses, and it also reduces exposure to threats and competitions that are likely to go badly in a depleted state.
Further evidence for the role of infection is provided by the prevalence of depression in patients receiving interferon treatment. Up to a third develops severe depression, with pessimism and self-blame and even suicidal thoughts, a combination of symptoms suggesting that social factors are integrated into the response [80].
Chronic fatigue syndrome is often characterized by aches and pains and general pain sensitivity. While no specific mechanism has yet been found, it seems likely it is related to inappropriate arousal of the sickness behaviour system [79,81,82]. The associated low mood and anxiety provide further support for a close connection among these systems.
There are many other situations in which depressive symptoms may be useful. A large body of work shows that failing efforts arouse low mood, which then motivates waiting, changing strategies or disengaging from the goal [83][84][85][86][87]. The decision to disengage is, however, problematic when substantial resources have already been invested and no good alternative route to the goal is available. This helps to explain why so many people find themselves trapped royalsocietypublishing.org/journal/rstb Phil. Trans. R. Soc. B 374: 20190288 pursuing unreachable goals despite escalating depression; the costs and risks of stopping are just too great [42].
Situations that involve exclusion or threatened exclusion from a group also arouse psychic pain, as John Bowby suggested with his original studies of attachment [88]. Many others have supported the possible value of psychic pain to prevent such losses [89,90]. Extraordinary sensitivity to one's perceived value to a group influences self-esteem, and low self-esteem can motivate sacrifices that benefit the group [91][92][93]. Closely related, the pain of grief has been considered as useful or as an epiphenomenon of attachment [94,95].
The relationship between depression and pain has been the object of many studies [96][97][98]. Patients with chronic pain are especially likely to become depressed. This is in part because they cannot participate fully in life, but it appears that direct connections from depression to pain sensitivity may also be involved. Possible antidepressant effects of anti-inflammatory drugs are being investigated [99]. Conversely, depression can increase pain sensitivity, and brain variations that predispose to chronic pain are not in painmediating regions per se, but in corticothalamic pathways [100]. The pair of phenomena risks entering a positive feedback loop, especially if opiates have been used to try to decrease the pain.
Brain mechanisms mediating physical pain [1] have been found to have close relationships to mechanisms mediating psychic pain [73,89,101]. A meta-analysis of 18 studies found substantial variation in brain regions involved in various kinds of psychic pain, with no one brain region reliably active in all studies, but intriguing overlap nonetheless with regions associated with physical pain [101]. As far as we can tell, it is not yet known if genetic evidence supports the evolution of psychic pain mechanisms from those that mediate physical pain, but this might well be a valuable topic of study.

Conclusion
The general conclusion that the capacity for pain is an adaptation shaped by natural selection is not new or controversial. What evolutionary medicine adds is attention to three possible reasons why the system is vulnerable to dysregulation. The smoke detector principle helps to explain apparently excessive responses that can be normal in the face of uncertain threats; systems that adapt to repeated arousal by decreasing thresholds are inherently vulnerable to runaway positive feedback; and, the likely shared evolutionary origins of physical and psychic pain help to provide a context for understanding aversive emotions and their connections to chronic pain. Systematic assessment of pain from an evolutionary perspective has just begun. More and better answers to the questions outlined above may prove clinically useful.
Data accessibility. This article has no additional data. Authors' contributions. R.M.N. wrote the first draft and prepared the manuscript, and J.S. edited and provided references and consultation as an equal co-author.