(CNN) -- One day in 2004, a 29-year-old man with a terrible stomach problem stepped off a plane from the United States in Thailand. He wasn't there for the sights, or the food, or the beaches. He had traveled thousands of miles for worms -- parasitic worms whose eggs he intended to swallow by the thousands.

His doctor back home had told him his idea was crazy, that infesting himself with parasitic worms wouldn't do anything to help his ulcerative colitis, and in fact could make him very sick. The gastroenterologist had told the man if he pursued this course of treatment, he would refuse to be his doctor anymore.

"You'll be on your own," the man remembers the doctor telling him.

Indeed, he was on his own, standing in the office of a Thai doctor, asking her to pick the worm eggs out of an 11-year-old girl's stool.

Ten to 15 bloody bowel movements a day

This month, the man's experience treating himself with parasitic worms was published in a medical journal. Depending on who's telling the story, his journey is one of a brilliant, empowered patient who found an amazingly effective treatment for himself and possibly others who suffer the same debilitating disease -- or the dangerous tale of an irresponsible medical rebel who could have killed himself and, by telling his story, might be inspiring others to do the same thing. As with any experimental treatment, you should not try this at home.

The man -- who wants to protect his privacy, and be referred to only as "the patient" -- was 28 when he started having bloody bowel movements. Soon, he was having 10 to 15 bloody bowel movements a day.

"I was constantly running to the bathroom," he remembers.

Diagnosed with ulcerative colitis, nothing helped except high doses of steroids, which because of severe side effects, he could take only for limited periods of time. Soon, the patient became so sick he had to quit his job.

If the cyclosporine didn't work -- and there was a 50 percent chance it wouldn't -- the doctor said his last hope was to remove his colon entirely, an extreme measure that would cause him to have to have a colostomy bag attached to him for the rest of his life to collect his stool.

"I was really at the end of the road," he says.

Meanwhile, the patient had gone on the internet and found an article in a medical journal by Dr. Joel Weinstock, chief of gastroenterology at Tufts University Medical School, which showed some ulcerative colitis patients found relief after ingesting the trichuris suis worm, a parasite that lives in the intestines of pigs.

The patient contacted Weinstock to ask him to treat him with worms, but Weinstock said no, since it wasn't approved for general use by the Food and Drug Administration and could only be done experimentally.

Other doctors also told him no.

"One very famous parasitologist in New York told me he had patients who were immigrants, and he could get the eggs from their stool," he says. "But he told me for legal reasons he couldn't do it. I understood completely. What if something went wrong and I died? He'd be blamed."

The patient became more and more convinced worms could help him. Behind Weinstock's study was this observation: Inflammatory bowel diseases such as ulcerative colitis affect nearly one in 250 people in the United States, but are extremely rare in underdeveloped parts of the world, such as sub-Saharan Africa.

"We're not exposed now to helminths in places like the United States, and that probably has an impact," Weinstock says. "We've tried to separate ourselves from our natural environment with our sterile water and our sterile food, and that's saved lives, but there are negative consequences."

A 'terrible choice'

"I was facing a terrible choice," the patient remembers, between going with the doctor's treatment idea, which he really didn't want to do, and looking outside the United States for worm eggs to ingest.

He contacted researchers in various developing countries to ask if they could help him get his hands on some eggs. The researcher in Thailand was particularly helpful, and he got on a plane to visit with her.

After he arrived, the doctor in Thailand extracted roundworm eggs from the stool of an 11-year-old infected girl. She gave the trichuris trichiura eggs to the patient, but he now faced another hurdle. The eggs needed to be cleaned in case the girl had hepatitis or some other infectious disease, and the eggs needed to mature for them to be helpful. It was up to him to clean the eggs and grow them in a process called "embryonation."

"There wasn't much guidance on how to do it, since most people are trying to destroy these worms, not grow them," he says.

But he managed to do it and ingested first a dose of 500 eggs and then another of 1,000. The worms could live in his intestinal tract for many years.

Three months later he had fewer bloody bowel movements, and soon, none at all. His bowel movements were normal. He felt fine.

From time to time, when his ulcerative colitis would flare up again, he'd extract eggs from his own stool, and clean, embryonate and ingest them. Again, his symptoms would go away.

A reluctant researcher

By 2007, having made so much progress, the patient wanted to document his journey scientifically, and he contacted various researchers to help him, including P'ng Loke, who was then a postdoctoral fellow in immunology at the University of California-San Francisco.

"He e-mailed me, and I ignored it," Loke remembers. "I was very skeptical at first, but he convinced me to have lunch with him."

At their meeting, the patient laid out his story in more detail, and Loke became fascinated.

"It's an amazing story, and he's quite possibly one of the smartest people I know," he says.

By the end of their meeting, they'd started to hatch a plan: Loke and his team would do colonoscopies to track the patient's ulcerative colitis and look for the presence of worms in his colon.

The researcher, now an assistant professor of medical parasitology at New York University Langone Medical Center, and his team did a colonoscopy on the patient, which revealed an abundance of worms and no signs of ulcerative colitis.

When the patient suffered a flare-up of his disease in 2008, a colonoscopy showed fewer worms and typical signs of ulcerative colitis.

When he ingested more eggs, a third colonoscopy showed the colitis was once again in remission.

The study was published in this month's Science Translational Medicine.

Why worms might work

To figure out why the worms seemed to be having this beneficial effect, Loke and his colleagues took a close look at the patient's immune system after he ingested the worm eggs. After ingestion, he had an abundance of cells that produce a protein called interleukin-22, which is important in healing the mucosal lining of the intestines.

"Our main conclusion is that the worms were able to restore mucus production in his gut," Loke says, adding that the mucus lining protects the intestines from harmful bacteria.

But others are not so convinced.

"The impact of mucus alone is not a scientific explanation for the possible improvement attributed to the worms," says Dr. Stephen Hanauer, a member of the board of trustees of the American College of Gastroenterology.

Charges of irresponsibility

Hanauer, chief of gastroenterology, hepatology and nutrition at the University of Chicago, warned against making too many conclusions from one man's positive experience with worms.

"We don't make medical recommendations based on a single case report," he says.

He says New York University was "irresponsible" for putting out a press release about the study, and criticized media outlets such as CNN for reporting on it.

"It's ridiculous and incredibly inappropriate," he says. "You're driving people to go on the internet and buy these worms, and these are potentially pathogenic organisms. These eggs can invade the systems of people who are immune suppressed and cause infections."

Loke says he and his team pointed out in the press release that the worms might hurt some people rather than help them.

"I agree no one should be trying to change their treatment" based on the paper's findings, Loke says.

The patient says he is also concerned others might try to copy him with potentially disastrous results, and so declined to explain exactly how he cleaned and embryonated the eggs.

He says he knows he took a risk by ingesting the eggs from a young girl in Thailand, but for him it was a better option than treatment with drugs that have potentially dangerous side effects, or the removal of his colon.

"Sometimes you really do have to take matters into your own hands," he says.