TORONTO - You drink too much, you eat the wrong thing — and suddenly you're battling a bout of the hiccups.

What's up with that?

Why do seemingly insignificant triggers sometimes prompt your body to produce weird and irritating noises in sequences? Why in some rare and unfortunate cases do those spells of involuntary hiccups last for a really long time — even sometimes years?

The short and truthful answer: Science doesn't know.

Though they are a fairly common occurrence, especially in childhood, science doesn't really know what if any purpose is served by fits of funny sounding intakes of breath that the medical world calls singultus and we call hiccups.

"Hiccupping has no obvious function. That doesn't mean it doesn't have one. But it hasn't been discovered," says Robert Provine, a neuroscientist and professor of psychology at the University of Maryland, Baltimore County.

Provine studies the origins and social functions of some seemingly odd things humans do, like hiccupping. Earlier this year, he published a book on the topic called "Curious Behaviour: Yawning, Laughing, Hiccupping and Beyond."

While there isn't a firm answer to why we do it, there are lots of interesting facts about hiccupping. Let's start with what makes the unusual noise.

Hiccups occur when two things happen in rapid succession. There's a sharp and involuntary inhalation of breath, followed by the abrupt closure of the glottis, the opening between the vocal cords at the top of the larynx.

"What gives the hiccup the 'hic' sound is the glottis slamming shut," Provine says.

Hiccupping could be vestigial, something evolution inadvertently left in the mix as humans developed past the point where its purpose — whatever it was — was needed. Or it could be something we need in our early development, but grow out of as we age.

Fetuses hiccup in the womb, from about the eighth week after conception. "It not only is present, it's one of the most common of all prenatal behaviours. It's more common than breathing movements," Provine says.

Premature babies hiccup a lot. In fact, a commentary on hiccupping that ran a number of years ago in the journal Gut said preemies spend on average about 2.5 per cent of their time hiccupping.

The commentary, by Peter Kahrilas and Guoxiang Shi of Northwestern University Medical School, says both fetuses and premature babies have hiccupping spells that don't seem to be triggered by an identifiable stimulus.

"This suggests that during the perinatal period, when the respiratory tract needs to mature rapidly, hiccupping does have a survival value," they say.

"Perhaps hiccupping is essentially a programmed isometric exercise of the inspiratory muscles which are superfluous in utero but afforded no time for maturation after birth."

Kahrilas and Shi suggest that after birth, hiccupping may be a vestigial reflex.

In fact, it's known that the tendency to develop hiccups declines with age. Children hiccup more than adults and the frequency of hiccupping continues to drop as people move into old age, Provine says.

The one exception: older men who have chest surgery sometimes develop intractable — prolonged — bouts of hiccups, he says. While hiccups are generally just an embarrassing inconvenience, after surgery they can actually get in the way of healing.

Provine offers another gender-based hiccup oddity: After puberty, females hiccup more frequently than males, most commonly in the days before ovulation and rarely, apparently, during pregnancy.

Hiccups generally come in series, either of relatively short duration — a few minutes — or quite a bit longer.

How long? The record for the longest continuous spell of hiccupping is held by the late Charles Osborne, of Anthon, Iowa. Osborne hiccupped for 68 years, stopping two years before his death in 1991 at the age of 98.

According to the Guiness Book of Records, Osborne hiccupped about 40 times a minute. That slowed to about half that in the later years of his spell.

While hiccups are normally just an annoyance, persistent hiccups can be a sign of disease. The medical literature on hiccups suggests they can be brought on by a long list of ailments, including brain trauma and lesions, infections, peptic ulcers, central nervous system conditions, metabolic disorders and even anesthesia.

Possible cures may be more numerous than the causes, the experts suggest. And what works for one person may not work for another.

The letters to the editor section of the journal BMJ hosted a discussion of a "miracle cure" for hiccups in 2006. It involves plugging both ears by pressing on the tragus — the nub of cartilage that protrudes at the front of the ear canal — and then drinking an entire glass of water through a straw without pausing.

Other proposed cures include drinking water from the opposite side of a glass, swallowing a teaspoon of sugar, or sipping lemon juice.

Provine thinks merely having someone watch the afflicted person may inhibit the hiccups. He tried recording children hiccupping for his research and the mere act of being observed seems to have shut down the behaviour.

"In fact, my first nine attempts to do this in every case the hiccupping stopped as soon as I turned the tape recorder on," he says. "That's my tape recorder cure."

Other cures he lumps into a category he calls neurological rebooting. So the water tricks, the swallowing of sugar, it's all about having one primal motor pattern competing with, and over-riding, the hiccupping, he says.

"In all of these cases, you're having a strong sensory experience. And it's unclear to me whether it's the sensory component or whether it's causing a swallowing or other response, where you're triggering one response that's blocking another."

Related on HuffPost:

Loading Slideshow...
  • Just Breathe

    There are seemingly endless hiccup remedies that involve some sort of alternate breathing method, from holding your breath to taking deep breaths to holding your breath while plugging your ears. "Anything you do in regard to your breath, it's possible that you could disrupt that nerve impulse from the brain to the diaphragm so you stop the hiccups," says Udermann. A little extra carbon dioxide may also help to <a href="http://www.doctoroz.com/videos/hiccups" target="_hplink">relax the diaphragm</a>, according to Dr. Oz, although we don't know exactly why. <em>Flickr photo by <a href="http://www.flickr.com/search/?ss=2&w=14168366%40N08&q=holding+breath&m=text" target="_hplink">Camera on autopilot</a></em>

  • Take A Drink

    There may be even more claims of water-based ways to stop the hiccups than there are breathing tricks. Among the many we've heard: Drink from the opposite side of the glass, drink through a straw (with <em>and</em> without plugging your ears), drink through a napkin or towel and drink a big glass of water without stopping. Swallowing -- which, when you think about it, is a temporary change in your breathing, says Udermann -- <a href="http://www.readersdigest.ca/health/home-remedies/7-ways-get-rid-hiccups" target="_hplink">may override those diaphragm spasms</a>, according to Reader's Digest Canada. "It doesn't matter if you drink upside down or sideways or from a spoon," says Udermann. "It's that <em>act</em> that could be disruptive." <em>Flickr photo by <a href="http://www.flickr.com/photos/eschipul/6813608863/" target="_hplink">eschipul</a></em>

  • Eat Something

    "What works in our house is a teaspoon of sugar," says Udermann. "You eat it, and they're gone, 99 percent of the time." Others swear by a spoonful of peanut butter or ice cream. We've even heard biting into a slice of lemon coated in sugar and bitters can do the trick. But there's not likely anything specific about the peanut butter or the sugar or the bitters that's easing those hiccups. Like with drinking and breathing tricks, eating has the potential to affect your breath and therefore your diaphragm, says Udermann. We can't help but remind you though that that spoonful of sugar is just that, a spoon full of sugar, and it counts, calorically. Women should aim to eat <a href="http://www.rodale.com/recommended-sugar-intake" target="_hplink">fewer than 5 teaspoons of sugar a day</a>, men 9 and kids about 3, so you might want to try other remedies first!

  • Stick Out Your Tongue

    When you stick out or even pull on your tongue, you stimulate a part of the throat connected to the nasal passage called the <a href="http://medical-dictionary.thefreedictionary.com/pharynx" target="_hplink">nasopharynx</a> and the <a href="http://www.readersdigest.ca/health/home-remedies/7-ways-get-rid-hiccups" target="_hplink">opening between the vocal cords</a>, which may offer some relief. <em>Flickr photo by <a href="http://www.flickr.com/photos/xlordashx/4081277075/" target="_hplink">xlordashx</a></em>

  • Get Startled

    A little scare could work for two reasons. First of all, it's likely to change your breathing cycle -- hear that gasp you just made? It may also work as a <a href="http://health.howstuffworks.com/diseases-conditions/respiratory/hiccup2.htm" target="_hplink">mental distraction, which seems to quell hiccups</a>. Want proof? Have someone ask you to hiccup on the spot, and see what happens, suggests Discovery Health.

  • Physical Distractions

    <em>Reader's Digest Canada</em> also suggests squeezing your palm -- hard -- to <a href="http://www.readersdigest.ca/health/home-remedies/7-ways-get-rid-hiccups" target="_hplink">distract your nervous system</a> away from hiccuping to the sensation of mild pain instead. This may work similarly to the way that slapping or pinching yourself can <a href="http://www.huffingtonpost.com/2012/06/20/natural-mosquito-bite-treatment_n_1610186.html#slide=1116830" target="_hplink">distract from an itchy mosquito bite</a>.

  • Related Video