The company that brought you milk chocolate, Maggi instant noodles and Rocky Road ice cream is worried about your health.

Nestle SA, the world's largest food company, has joined the trend for personalized nutrition with a blend of artificial intelligence, DNA testing and the modern obsession with Instagramming food. The program, begun in aging Japan, could provide the Swiss company with a wealth of data about customers' wellness and diets as it pivots toward consumers who are seeking to improve their health and longevity.

In Japan, some 100,000 users of the Nestle Wellness Ambassador program send pictures of their food via the popular Line messaging app that then recommends lifestyle changes and specially formulated supplements. The program can cost about ¥65,000 (about $600) a year for capsules that make nutrient-rich teas, smoothies and other products such as vitamin-fortified snacks. A home kit to provide samples for blood and DNA testing helps identify susceptibility to common ailments like high cholesterol or diabetes.