The company was granted a patent on Tuesday for a system that uses augmented reality headwear to send users nutritional advice based on their personal dietary needs. According to the filing, the technology also includes warnings, such as advice to avoid that late night burrito, and it ingests nutritional information from third-party restaurants. The smart glasses system might also be used to help guide decisions around food preparation and shopping.

Technology companies are in a battle to modernize the process of nutrition tracking, which currently requires manual input. If the smart glasses technology could automate the process, it would provide much-needed transparency to users about the nutritional content of their meals.

As CBInsights points out, Apple patented a system that uses RFID to help track the calories in restaurant orders. Microsoft has also filed previously diet-related patents. Startups are also targeting the space. An app called Lark already offers food-logging and personalized recommendations to the Apple Watch.