Technical Architecture · Algorithmic Transparency
How CareLens works, from photon to protocol.

We believe health technology must operate with radical transparency. Here is an exact, unvarnished account of how your image is prepared, evaluated, transformed into structured guidance, and subsequently purged from memory.

Clinical Evidence Base
AM/PM

Skin Care

Barrier

Processing Memory

RAM Ephemeral

Care Lens Tracker
Daily

Wellness

Tracker
01
Client-Side Vision Pipeline (< 80ms)

On-Device WebP Downscaling & Optical Pre-Check

Before any network request, your browser resizes high-resolution 10–15 MB camera captures to a maximum 1280px edge in WebP/JPEG (< 250 KB), strips EXIF location tags, and computes 96×96 luminance, specular shine, and YCbCr chromaticity metrics so hair/scalp and facial skin frames are never confused.

02
Dual-Tier Multimodal Vision (Gemini 3.8 Flash & Gemini 4 Argon)

Evidence-Bounded Visual Extraction

Primary daylight scans run on Gemini 3.8 Flash for sub-second structured JSON extraction of directly visible surface cues (T-zone shine, visible redness, parting density, strand cuticle frizz). Low-confidence or ambiguous frames automatically escalate to Gemini 4 Argon for conservative secondary verification without inventing diagnoses.

03
Dermatological & Trichological Synthesis

Ordered AM Protect & PM Recovery Protocols

Verified visual cues map to physiological routine steps: acid-mantle cleansing (pH 4.7–5.5), humectant + 3:1:1 ceramide-cholesterol-fatty-acid barrier support, broad-spectrum UVA/UVB SPF 50+, low-tension scalp care, and whole-food protein (0.8–1.2 g/kg) and hydration targets.

04
Report-Grounded AI Assistant (Gemini 4 Argon)

Context-Locked Follow-Up & Escalation Guardrails

Every generated Care Plan links to a stateful Gemini 4 Argon assistant that respects your report's exact analysis focus, explains ingredient layering and climate adjustments, and immediately flags clinical red flags (changing lesions, scarring alopecia, acute swelling) for in-person medical evaluation.

05
SHA-256 Deduplication & Ephemeral RAM

Zero-Training Privacy & Instant Cache Retrieval

Identical photo hashes resolve from a short-lived in-memory SHA-256 report cache to prevent duplicate token spend. Uploaded photos are processed strictly in volatile memory, never used to train foundation models, and only saved to your personal report archive when you explicitly click Save.

Diagnostic Non-Claims

Explicit limitations of consumer photo analysis

No Histological PenetrationA camera cannot visualize deeper dermal layers or detect malignant melanomas. Never rely on AI for atypical mole checks.
No Endocrine InferenceHormonal acne, thyroid-induced shedding, and autoimmune flaking cannot be inferred from pixels. We recommend blood panels with your doctor.
Heuristics, Not Clinical Lab TestsScores shown in CareLens are personal consistency indicators, not clinical biometric tests.
Zero Emergency UtilityIf you experience sudden burning, severe swelling, acute hives, or open wounds, immediately visit urgent healthcare facilities.
Optical Repeatability & Scoring Rubric

How CareLens AI calculates your educational Score /100

To keep monthly comparisons meaningful across different smartphone cameras, our pipeline weights four observable dimensions alongside lighting quality:

1. Facial Skin Barrier Index (0–100)

Evaluates diffuse vs. specular shine across the forehead and nasal bridge, cheek texture uniformity, visible flaking, and localized redness tone. High scores reflect balanced hydration and calm barrier tone; lower scores trigger simplified ceramide-first routines in the AI Skin Analysis and 3-Step Skin Routine Finder.

2. Hair & Scalp Density Index (0–100)

Examines frontal temple geometry, center parting width, crown density under overhead light, and strand cuticle frizz or clumping. Users tracking temple or vertex changes can cross-reference their scan with our Norwood Scale Hairline Guide and Hair & Scalp Care Plan.

3. Facial Proportion & Symmetry Mapping

When using the AI Face Shape Detector, the vision model estimates the relative ratios of forehead width, cheekbone span, jawline contour, and vertical face length to suggest flattering haircuts, partings, beard styles, and eyewear frames.

4. Evidence & Governance Verification

All routine recommendations link back to public dermatological and nutritional literature in our Scientific Evidence Library and are governed by our Editorial Standards and Trust Center.