Robo-diets: can ChatGPT formulate safe dietary advice?

In a recent study published in the Nutrition Journal, researchers used hypothetical cases of individuals with food allergies to investigate the accuracy and safety of ‘robo-diets’ or diets constructed using the deep learning models implemented in ChatGPT.

Study: The credibility of dietary advice formulated by ChatGPT: robo-diets for people with food allergies. Image Credit: TadaImages/

Image Credit: TadaImages/


ChatGPT is a conversational version of the artificial intelligence (AI) model GPT-3, released in November 2022 by OpenAI, and has gained substantial attention since its release. Statistics indicate that ChatGPT has over 100 million users a month.

However, despite extensive fine-tuning, one of the problems that continue to occur with large language models is the production of non-factual content. Furthermore, the confidence with which ChatGPT delivers the responses, factual or non-factual, can have detrimental effects.

One area where ChatGPT has been commonly used is in constructing diets. Tailored diets, by themselves or in combination with medications, have been used to treat various diseases.

Furthermore, in cases of food allergies, specifically designed diets are essential as the inclusion of even a single forbidden food type can cause anaphylactic shock, and the prevalence of food allergies has been increasing in the past decades among both adults and children.

About the study

In the present study, the researchers used 14 food allergens comprising cereals with gluten such as oats, wheat, barley, and rye; crustaceans such as crabs, prawns, and lobsters; fish; eggs; mollusks; peanuts; milk and dairy products; tree nuts; sesame; mustard; lupin; celery; and sulfur-containing compounds to construct diets using ChatGPT prompts.

The hypothetical individual with food allergies was a woman aged 30 years since food allergies are more prevalent in women than men, and women are generally more interested in novel diets.

Four restriction levels were used as prompts for ChatGPT to construct a diet, and these included A) diet for one food allergy with quantity restrictions, B) diet for two food allergies with quantity restrictions, C) diet for one food allergy with a standard energy value, and D) diet for one food allergy with low energy value.

Combined with the list of 14 food types that cause allergies, the four restrictions resulted in 56 prompts for ChatGPT.

For each scenario, the researchers used a new chat to make the prompts and observations independent. A dietician with valid qualifications in human nutrition then evaluated the resulting diets constructed by ChatGPT.


The results indicated that while most of the diets designed by ChatGPT were accurate, the process could construct diets that would harm an individual with food restrictions. The errors mostly consisted of inaccurate calories in diets, meals, specific foods, or portion sizes.

The safety assessment reported that safety was the weakest feature of a ChatGPT-constructed elimination diet. While the ChatGPT-designed diets had successfully eliminated the specified allergens, a nut-free diet included almond milk, which could have led to severe consequences as nut allergy is one of the most severe forms of food allergies.

Furthermore, for the diets with specified calorific restrictions, the researchers aimed to verify if the diet designed by chat GPT could formulate a diet with specific nutrient recommendations.

The robo-diets contained only a general suggestion that a health professional must be consulted for supervision but did not consist of any warnings about calorific restrictions. Additionally, an atypical dietary supplement was included in a diet that was not strictly restrictive.

However, the ChatGPT-designed diets followed some dietary guidelines, such as increasing the consumption of fruits and vegetables in each meal and preferring poultry and fish instead of red meat.

The robo-diets also included cautionary notes, such as reading food labels carefully and the presence of sesame or other nut ingredients in common food, ensuring safe food choices.

ChatGPT failed to construct a diet for two prompts for a soy-free menu, and in other cases, the energy values of specific meals or the whole menu were miscalculated.

Furthermore, for the restrictions related to specific energy requirements, the calorific values of various meals were not adjusted in the robo-diets.

Additionally, the menus were also inefficient in suggesting portion sizes, with impractical or highly specific quantities, no inclusion of recipes or additional information on spices or condiments, and general food suggestions such as fish or berries with no specific recommendations.


Overall, the findings suggested that while ChatGPT generally constructed diets that were accurate in the food exclusions and energy requirements, these robo-diets could potentially include errors such as including food items that contained restricted foods or inaccuracies in the calorific content of meals that did not satisfy the energy requirements of a specific diet.

While AI tools using large language models are easily accessible and provide an affordable resource to the public, accepting the results of such tools without proper assessments could pose health risks.

Journal reference:

By Dr. Chinta Sidharthan for

85 Replies to “Robo-diets: can ChatGPT formulate safe dietary advice?”

  1. Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a bit, but other than that, this is wonderful blog. A great read. I’ll definitely be back.

  2. Its like you read my mind! You seem to understand so much approximately this, like you wrote the ebook in it or something. I feel that you simply could do with some p.c. to force the message house a bit, however other than that, this is magnificent blog. An excellent read. I’ll definitely be back.

  3. Pretty nice post. I just stumbled upon your blog and wanted to say that I have really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!

  4. This is very interesting, You are a very skilled blogger. I have joined your feed and look forward to seeking more of your fantastic post. Also, I have shared your site in my social networks!

  5. Your style is really unique compared to other people I have read stuff from. Thanks for posting when you have the opportunity, Guess I will just bookmark this site.

  6. This is the right site for anyone who wants to find out about this topic. You realize so much its almost hard to argue with you (not that I actually would want toHaHa). You definitely put a brand new spin on a topic that’s been written about for decades. Great stuff, just great!

  7. Hi there! This is my first visit to your blog! We are a group of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done a extraordinary job!

  8. Hello would you mind stating which blog platform you’re working with? I’m planning to start my own blog in the near future but I’m having a difficult time selecting between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I’m looking for something completely unique. P.S Apologies for getting off-topic but I had to ask!

  9. Sweet blog! I found it while surfing around on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Cheers

  10. Howdy very nice web site!! Guy .. Beautiful .. Amazing .. I will bookmark your blog and take the feeds also? I am satisfied to seek out numerous useful information here in the post, we’d like develop more strategies in this regard, thank you for sharing. . . . . .

  11. Hi there! I could have sworn I’ve been to this blog before but after browsing through some of the posts I realized it’s new to me. Anyways, I’m definitely happy I found it and I’ll be bookmarking it and checking back regularly!

  12. Hello there, You have performed a great job. I will definitely digg it and for my part recommend to my friends. I am sure they will be benefited from this site.

  13. Nice post. I used to be checking continuously this blog and I am inspired! Very useful information particularly the ultimate part 🙂 I maintain such info a lot. I used to be seeking this particular info for a long timelong time. Thank you and good luck.

  14. Greetings from Carolina! I’m bored to tears at work so I decided to check out your website on my iphone during lunch break. I enjoy the knowledge you present here and can’t wait to take a look when I get home. I’m amazed at how quick your blog loaded on my cell phone .. I’m not even using WIFI, just 3G .. Anyhow, fantastic site!

  15. Thank you for the auspicious writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you! By the way, how can we communicate?

  16. Pretty component of content. I simply stumbled upon your blog and in accession capital to claim that I acquire in fact enjoyed account your blog posts. Any way I’ll be subscribing for your augment or even I fulfillment you get right of entry to consistently fast.

  17. Thanks for your personal marvelous posting! I actually enjoyed reading it, you’re a great author. I will ensure that I bookmark your blog and will often come back later in life. I want to encourage that you continue your great posts, have a nice day!

  18. Hi, I think your blog might be having browser compatibility issues. When I look at your blog in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, terrific blog!

  19. I was wondering if you ever considered changing the layout of your blog? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two images. Maybe you could space it out better?

  20. I don’t even know how I ended up here, but I thought this post was good. I don’t know who you are but definitely you are going to a famous blogger if you are not already 😉 Cheers!

  21. Hey There. I found your blog using msn. This is a very well written article. I will be sure to bookmark it and come back to read more of your useful information. Thank you for the post. I will definitely comeback.

  22. I’m now not positive where you are getting your info, however good topic. I needs to spend a while studying more or understanding more. Thank you for great information I used to be on the lookout for this information for my mission.

  23. I am extremely impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you customize it yourself? Either way keep up the nice quality writing, it’s rare to see a nice blog like this one nowadays.

  24. hi!,I really like your writing so much! percentage we keep up a correspondence more approximately your post on AOL? I need an expert in this area to unravel my problem. May be that is you! Taking a look forward to peer you.

  25. I am extremely impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you customize it yourself? Either way keep up the nice quality writing, it’s rare to see a nice blog like this one these days.

  26. Hi there would you mind letting me know which hosting company you’re working with? I’ve loaded your blog in 3 completely different internet browsers and I must say this blog loads a lot quicker then most. Can you suggest a good web hosting provider at a reasonable price? Many thanks, I appreciate it!

  27. Magnificent goods from you, man. I’ve understand your stuff previous to and you’re just too fantastic. I really like what you’ve acquired here, really like what you’re stating and the way in which you say it. You make it entertaining and you still take care of to keep it smart. I cant wait to read far more from you. This is actually a great site.

Comments are closed.