Whitepaper · Clinical AI overview
How Pippa uses artificial intelligence
Food-image analysis, supportive chat, and pattern-based care signals. Prepared for dietitians and eating disorder clinicians, August 2026.
In one sentence: Pippa combines existing vision and language models with phone-camera and AR signals, a curated food-nutrition dictionary, explicit uncertainty handling, and clinician oversight to reduce logging burden and surface useful between-session patterns.
This document explains the approach in plain clinical language and links to the technical and clinical literature behind it. It is a product overview, not an independent validation study, clinical protocol, or regulatory determination.
Executive summary
Pippa does not train a general-purpose foundation model from scratch. It builds a recovery-focused application layer on top of existing computer-vision and language models. The application layer supplies the workflow, domain vocabulary, safety rules, consent controls, and clinician-facing interpretation.
Food recognition
A model converts a meal image into candidate foods, each with a confidence score. Confidence decides whether to accept a likely label, ask a clarifying question, consult an approved external source, or abstain.
Portion estimation
Camera geometry, reference objects, plate dimensions, and device depth or AR data can improve estimates of physical size. Portion size is still an estimate, especially for mixed dishes, sauces, soups, and foods with variable density.
Nutrition mapping
The confirmed food identity and estimated mass are mapped to a curated nutrient dictionary such as USDA FoodData Central. Energy estimates can stay blinded from the patient and visible only in clinician-authorized views.
Supportive chat
A language model generates recovery-oriented conversation within a narrow scope. Separate rules and classifiers look for crisis language and route the user toward real people and resources.
Pattern signals
Pippa looks for changes over time, such as repeated missed meal logs, worsening check-in responses, abrupt deviations from a patient’s baseline, or concerning chat language, and can surface a reason-coded signal for clinical review.
Recovery-first design
Calorie and weight-loss feedback common in consumer nutrition apps can be harmful or counter-therapeutic in eating disorder care. Pippa’s patient experience is designed so numerical energy estimates can remain hidden, while a clinician may use the underlying information when appropriate for the care plan.
1. How image-recognition models work
A modern image-recognition system receives a grid of pixels and transforms it into a compact numerical representation. Earlier systems commonly used convolutional neural networks. Many current systems use vision transformers or multimodal vision-language models. These models learn visual patterns during pretraining and can then transfer those patterns to a narrower task such as recognizing food.
From pixels to a candidate food
- 1
Capture and quality check
Verify that the photo is usable. Note blur, darkness, occlusion, and whether the plate is fully visible.
- 2
Locate relevant regions
Separate food from plate, table, utensils, packaging, and background. A multi-item meal may require several regions.
- 3
Encode visual features
The model turns color, texture, edges, shapes, and broader context into a feature representation.
- 4
Compare against possible labels
The system produces candidates such as grilled chicken, tofu, or paneer, with relative scores.
- 5
Apply a confidence gate
High-confidence candidates can be shown for quick confirmation. Ambiguous or unfamiliar foods trigger clarification, retrieval, or abstention.
Food recognition is harder than recognizing many everyday objects. The same dish can vary by cuisine, recipe, lighting, plating, and preparation, while visually similar foods can have very different ingredients. Food-101 is a widely used benchmark that illustrates this variation, but a benchmark score does not by itself establish performance in Pippa’s real patient population.
What confidence means
A confidence score is the model’s internal strength of preference among candidates. It is not a guarantee that the answer is correct. Modern neural networks can be overconfident, so scores should be calibrated on representative Pippa data and tied to clear actions such as confirm, clarify, or abstain.
2. Pippa’s food-image pipeline
Pippa’s value is not a single model call. It is the sequence of checks around the model, including sizing signals, retrieval, nutrition lookup, user correction, and clinician visibility.
| Step | What happens | When uncertain | Clinician sees |
|---|---|---|---|
| 1. Capture | Collect a meal photo plus available device and camera metadata. | Ask for a clearer photo or manual entry. | Meal log and user description. |
| 2. Identify | Return several plausible food labels rather than forcing one answer. | Ask a short clarifying question. | Confirmed label and uncertainty. |
| 3. Size | Use segmentation, reference scale, camera pose, and AR or depth data where available. | Show a range or a manual portion choice. | Portion estimate and uncertainty. |
| 4. Cross-check | Retrieve approved food definitions, ingredient lists, or restaurant information. | Never let a generic web result override uncertainty. | Source and unresolved ambiguity. |
| 5. Map | Resolve the confirmed food to a canonical nutrition-dictionary entry. | Use a composite or ingredient breakdown. | Clinician estimate, while the patient view stays number-free. |
The workflow is designed to clarify or abstain instead of manufacturing precision.
Web cross-checking: what it should and should not mean
When the vision model is uncertain, Pippa can retrieve information to narrow the candidate set. For example, it may compare candidate names with an approved food database, a manufacturer label, or a restaurant menu. Retrieval is corroboration, not proof. A search result can be stale, incomplete, culturally mismatched, or based on a different recipe.
- Preferred sources: Structured food-composition data, manufacturer nutrition pages, and restaurant or menu pages tied to the user’s confirmed item.
- Privacy guardrail: Use text-only candidate terms whenever possible. Do not send a patient photo, name, clinic, location, or other identifying metadata to a general public search service.
- Decision rule: If corroboration remains weak, ask the user or clinician to select the closest item. Unknown is an acceptable and often safer output.
3. Estimating portion size and energy
Image classification answers what this might be. Portion estimation asks how much is present, and the second problem is often harder. Research systems such as Im2Calories and Nutrition5k combine food recognition with segmentation, geometry, depth, component mass, and nutrient annotations.
Camera and AR signals
On compatible phones, AR frameworks can provide camera pose, estimated planes, scene depth, and a confidence map for the depth values. Pippa can combine these signals with known plate size or another reference to estimate food height and volume. Devices without usable depth data can still use perspective and reference-scale methods, but the result should carry more uncertainty.
- Segmentation estimates the footprint of each food region on the plate.
- Depth or multiple viewpoints estimate height and three-dimensional volume.
- A food-density assumption converts volume to approximate mass.
- The confirmed dictionary entry converts mass to estimated energy and nutrients.
A simple calculation
Estimated energy = sum of (estimated portion mass in grams) x (kcal per 100 grams for the matched food) / 100. For a mixed dish, the calculation may use a standardized composite entry or an ingredient-level breakdown when ingredients are known.
The nutrition dictionary
The model should not invent calorie or nutrient values. Once the food and portion are resolved, Pippa maps them to a curated dictionary entry. USDA FoodData Central provides structured records for foundation foods, survey foods, legacy foods, and branded products. Pippa can also maintain a reviewed alias layer so terms such as rajma, kidney bean curry, and a particular packaged item resolve consistently.
- Canonical food ID and aliases.
- Preparation state and recipe assumptions.
- Nutrients per 100 grams and per documented serving.
- Density or typical serving information used in portion conversion.
- Source, version, and last-reviewed date.
A correction should update the current meal record immediately. Corrections should not automatically retrain a base model. Any later use for model evaluation or improvement requires a separate, governed, de-identified process.
4. PippaChat: supportive conversation with boundaries
PippaChat uses a large language model, a class of systems derived from the transformer architecture. A language model predicts useful continuations from the conversation and system instructions. It can sound fluent without possessing clinical judgment or guaranteed factual accuracy.
What the chat layer is for
- Offer empathetic, nonjudgmental meal support and reflection prompts.
- Guide a user through grounding or coping tools already approved for the product.
- Help a user name feelings, prepare questions for their care team, or summarize what they want to discuss.
- Encourage connection with the user’s clinician, supporter, or safety plan when the conversation exceeds the chatbot’s scope.
What the chat layer is not for
- Diagnosing an eating disorder, relapse, suicidality, or another mental-health condition.
- Giving an individualized meal prescription, changing a clinician’s plan, or advising weight loss, purging, fasting, or compensatory exercise.
- Acting as a therapist, emergency responder, or replacement for the treatment team.
- Guaranteeing that all high-risk language will be detected.
Safety routing
Before and after response generation, Pippa can apply a combination of rules, specialized classifiers, and constrained instructions. Ordinary recovery-support conversations stay in the normal pathway. Concerning language can trigger a check-in and a prompt to contact the care team. Language indicating possible immediate danger should produce a brief, direct crisis response and surface real-world resources such as 988 in the United States, or emergency services when there is imminent danger.
Important limitation
Crisis-language screening occurs when a user interacts with the system. It is not proof that a human is watching in real time, it does not observe behavior outside Pippa, and it can produce both false positives and false negatives. Pippa should never be the only element of a patient’s safety plan.
Transparency and transcript access
Pippa identifies the chat as AI. In Pippa’s connected-clinician workflow, transcripts can be reviewed by the care team under the patient’s consent settings. The product explains who can see each conversation, when sharing is on, how long data is kept, and how access can be revoked. Family and supporter views remain separately scoped.
5. Detecting when a patient may need more help
Pippa’s early-concern layer is best understood as longitudinal pattern detection, not diagnosis. Ecological momentary assessment research shows the value of capturing symptoms, context, and triggers near the time they occur, while studies of eating disorder self-monitoring apps illustrate the practical role of reminders and clinician linkage. These findings support the general approach. They do not validate a particular Pippa alert rule.
Potential signal families
- Meal pattern: Repeated scheduled meals marked skipped, longer gaps between logs, or a sustained drop in completion relative to the person’s own baseline.
- Check-in pattern: Increasing distress, urges, guilt, fear, or avoidance after meals when the patient chooses to report these items.
- Change pattern: An abrupt shift in meal timing, app engagement, or response style that is unusual for that individual.
- Language pattern: Repeated references to restriction, purging, compensatory behavior, fainting or medical instability, self-harm, hopelessness, or inability to stay safe.
- Corroboration: Several weak signals occurring together should matter more than one isolated data point.
| What Pippa observes | What it may mean | Appropriate response |
|---|---|---|
| One missed or late log | This could reflect schedule, privacy, forgetfulness, or a difficult meal. | Use a gentle, non-shaming reminder. Do not create a diagnosis or an automatic high-risk label. |
| Repeated misses plus rising distress | This is a sustained departure from the patient’s own recent pattern. | Offer a check-in and show a reason-coded dashboard signal for clinician review. |
| Abrupt change plus concerning language | Several channels suggest that more support may be useful. | Create a higher-priority review prompt and encourage contact with the care team or safety-plan person. |
| Possible imminent self-harm or danger | Language may indicate an acute crisis, but automated interpretation can be wrong. | Use the immediate crisis pathway and local emergency guidance. Never wait for an app alert alone. |
Illustrative responses only. Actual thresholds should be clinically governed, tested, and configurable.
Make every signal explainable
The clinician should see why a signal appeared, for example: three scheduled meals were marked skipped in 48 hours and reported post-meal distress increased. Pippa avoids an opaque label such as high risk without evidence. The clinician can acknowledge, dismiss, or correct a signal, and the patient’s record preserves that interpretation.
Preferred label
Needs review, or change from baseline, is more accurate than relapse detected. A flag is a prompt to look, ask, and use clinical judgment.
6. Clinical safeguards and validation
Because Pippa operates in a sensitive health context, useful AI performance is broader than top-1 accuracy. The system should be evaluated for uncertainty, equity, safety, and the practical consequences of both missed and unnecessary alerts. APA and NICE guidance remain the clinical reference points. The app supports care but does not replace assessment, monitoring, or treatment planning.
Minimum validation questions
Recognition
How often is the correct food in the top candidate set across cuisines, mixed dishes, lighting conditions, camera types, and preparation styles?
Calibration
When the model says it is 80% confident, is it correct roughly 80% of the time on representative Pippa data?
Abstention
Does the system reliably say it is not sure when it encounters an unfamiliar or poor-quality meal image?
Portion error
What is the median and clinically relevant worst-case error for estimated mass and energy, with and without usable depth data?
Pattern signals
What are the false-positive and false-negative rates, and what happens to a patient when either type of error occurs?
Subgroup performance
Are performance gaps present across cuisines, skin tones and hands in frame, ages, device types, socioeconomic contexts, and accessibility needs?
Human factors
Do patients understand that the chat is AI, who sees their data, and that a flag is not a diagnosis? Can clinicians quickly understand and override the system?
Drift
Are model, prompt, database, and threshold versions logged so performance can be rechecked after updates?
Governance principles
NIST and WHO frameworks emphasize documented intended use, defined human roles, ongoing measurement, and risk management across the AI lifecycle. For Pippa, that means versioning models and nutrition data, testing before release, monitoring after release, reviewing safety events, and involving people with lived experience and eating disorder clinicians in product decisions.
Regulatory status depends on intended use, user population, claims, and functionality. Pippa’s positioning and clinician-facing decision-support features are reviewed as the product changes. The FDA’s current clinical decision-support guidance is a useful starting point, but this overview is not legal advice.
7. What a dietitian should expect
- Patient-facing logging that can remain free of calorie numbers while still supporting structured meal plans and check-ins.
- A clinician view that distinguishes an AI estimate from a patient-confirmed food and from a clinician-entered value.
- Uncertainty ranges and source provenance for portion and energy estimates, rather than false precision.
- Trend views that prioritize changes over time and the patient’s own baseline.
- Reason-coded concern signals that invite review, not automated conclusions.
- Configurable sharing and visibility, with clear separation among patient, clinician, and family or supporter roles.
- A clear route to correct food labels, portions, chat interpretations, and concern flags.
Questions Pippa welcomes from clinicians
- Which estimates are currently live, in pilot, or on the roadmap?
- What model and database versions produced a particular result?
- How was performance tested on mixed meals and culturally diverse foods?
- What thresholds trigger clarification, abstention, a patient check-in, or a clinician-facing signal?
- Who can see photos, check-ins, and chats under each consent setting?
- How are corrections, complaints, and safety incidents reviewed?
- How can a clinic turn off calorie estimates, chat, or specific alerts for an individual care plan?
References and further reading
These four papers are the most directly relevant starting points for Pippa’s food-image analysis, confidence handling, and clinician-connected self-monitoring approach.
- 1
Im2Calories: Towards an Automated Mobile Vision Food Diary
Meyers et al., ICCV 2015. Early work combining food recognition, volume estimation, and nutrition prediction from a meal image.
- 2
Nutrition5k: Towards Automatic Nutritional Understanding of Generic Food
Thames et al., CVPR 2021. A food dataset with RGB-D imagery, ingredient weights, total mass, calories, and macronutrients.
- 3
On Calibration of Modern Neural Networks
Guo et al., ICML 2017. Shows why neural-network confidence scores need calibration before they drive product decisions.
- 4
Patient Experiences Using a Self-Monitoring App in Eating Disorder Treatment
Lindgreen et al., JMIR mHealth and uHealth 2018. A qualitative study of an eating disorder self-monitoring app connected with clinicians.
Prefer the shorter version? Read how AI fits into dietetic care on the blog.
