[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-perfect-portion-ai-powered-nutrition-tracking":3},{"id":4,"title":5,"slug":6,"excerpt":7,"contentType":8,"content":9,"metadata":10,"status":24,"createdAt":25,"updatedAt":26,"startDate":27,"endDate":28,"isOngoing":12,"featuredImage":29,"projectLinks":30,"contributors":34,"experienceCategory":23,"location":23,"locationType":23,"tags":35,"linkedSkills":58,"roles":90,"isPublished":14,"contentLinks":91,"body":-1,"markdown":-1,"html":-1},"0214c61c-c805-4eb1-bd0a-61c231ffcf84","Perfect Portion: AI-Powered Nutrition Tracking","perfect-portion-ai-powered-nutrition-tracking","An award-winning iOS app that simplifies food logging by automatically identifying meals and nutritional data from a photo. Winner of 1st Place at HackPSU Fall 2023.","PROJECT","## Overview\n\nPerfect Portion is an award\\-winning iOS application that redefines nutrition tracking by leveraging AI to eliminate manual data entry\\. Instead of tediously searching for food items\\, users simply take a picture of their meal\\, and our system automatically identifies the food\\, estimates serving sizes\\, and returns detailed nutritional information\\. This project was conceived and built in under 24 hours for HackPSU Fall 2023\\, where it won 1st Place Overall\\, the \\\"Most Creative Use of GitHub\\\" award\\, and the NittanyAI award\\.\n\nThe core problem we addressed is the high friction associated with traditional diet apps\\, which discourages consistent use\\. Studies show that consistent food logging can double weight loss results\\, yet adoption remains low\\. Perfect Portion provides a seamless\\, \\\"snap\\-and\\-track\\\" experience\\, making it effortless for health\\-conscious individuals to stay informed about their dietary choices\\. As the Lead Developer for Backend and Infrastructure\\, I engineered the core API that gathers and processes responses from machine learning algorithms and generative AI\\. I also deployed our services on a multi\\-node K3S cluster with redundant locations\\, ensuring safe and efficient hosting for our API and front\\-end\\.\n\n## Key Features\n\n- **AI\\-Powered Food Recognition\\:** Utilizes the LogMeal image segmentation API to accurately identify multiple food items within a single photograph\\, forming the core of our automated logging pipeline\\.\n\n- **Instant Nutritional Analysis\\:** Once food is identified\\, the app provides a clean\\, readable breakdown of key nutritional data\\, including calories\\, macronutrients\\, and more\\, enabling users to make informed decisions at a glance\\.\n\n- **Intuitive \\& Accessible UI\\:** Designed with a minimalist philosophy and adherence to WCAG\\\u002FADA guidelines\\, the SwiftUI interface features large touch targets\\, high\\-contrast text\\, and a logical flow to ensure a frictionless experience for all users\\.\n\n- **Scalable Backend Infrastructure\\:** The application is supported by a resilient\\, multi\\-node Kubernetes cluster hosted on Oracle Cloud\\, ensuring high availability and low latency for users across different regions\\.\n\n## Technologies \\& Implementation\n\nWe architected a full\\-stack solution designed for speed\\, scalability\\, and accuracy within the 24\\-hour hackathon timeframe\\. The technology stack was chosen to enable rapid development while building a robust and production\\-ready foundation\\.\n\n- **Frontend\\:** A native iOS application built with **SwiftUI** to deliver a responsive and polished user experience that integrates seamlessly with the Apple ecosystem\\.\n\n- **Backend\\:** A custom API built with **Node\\.js** and **Express**\\, serving as the central orchestrator\\. It manages requests from the iOS client\\, interfaces with the machine learning services\\, and parses complex data into a simple format for the frontend\\.\n\n- **Infrastructure\\:** The backend is deployed on a multi\\-node **K3S Kubernetes** cluster managed with **Rancher** on **Oracle Cloud Infrastructure \\(OCI\\)**\\. This multi\\-region setup \\(US West \\& US East\\) was critical for ensuring low latency and providing redundancy\\.\n\n- **AI \\& Machine Learning\\:** We integrated the **LogMeal API** for its powerful food image segmentation capabilities and leveraged the **OpenAI \\(GPT\\-3\\.5\\)** API for data enrichment and parsing tasks\\.\n\nThe system\\'s architecture ensures a clean separation of concerns\\, allowing the iOS client to remain lightweight while the heavy processing is offloaded to the scalable backend\\.\n\n```mermaid\ngraph TD\n    A[\"iOS Client (SwiftUI)\"] --\"Image Upload (HTTPS)\"--> B[\"Node.js API Gateway (Express)\"]\n    B --\"Sends Image\"--> C[\"LogMeal Image Segmentation API\"]\n    C --\"Returns Food Data (JSON)\"--> B\n    B --\"Processes & Enriches Data\"--> D[\"OpenAI API (Optional)\"]\n    D --\"Returns Refined Info\"--> B\n    B --\"Formatted Nutritional Data (JSON)\"--> A\n\n```\n\n## Challenges \\& Solutions\n\nThe primary technical challenge was architecting and deploying a complex\\, multi\\-service pipeline from scratch in under 24 hours\\. A significant part of this involved identifying and integrating the right AI services for food segmentation and identification\\. Finding tools that were both powerful enough for the task and simple enough to implement within the deadline was a critical hurdle\\. Furthermore\\, several team members were new to collaborative development tools like Git and the high\\-pressure hackathon environment\\.\n\nTo overcome this\\, we adopted a clear mentorship structure and a focused technical strategy\\. As the lead on backend and AI\\, my focus was on architecting the data pipeline and selecting the optimal tools—LogMeal and OpenAI—to form our core AI engine\\. We established a streamlined API contract early on\\, which proved essential\\. It decoupled frontend and backend development\\, allowing our iOS and infrastructure teams to work in parallel without blocking each other\\. This combination of a well\\-defined architecture and a collaborative workflow was instrumental in our ability to deliver a fully functional and polished product within the deadline\\.\n\n## Results \\& Impact\n\nThe project was a resounding success\\, achieving both our functional goals and receiving significant recognition from the judges\\.\n\n- **1st Place Winner at HackPSU Fall 2023\\:** Placed first among a highly competitive field of projects\\.\n\n- **Awarded \\\"Most Creative Use of GitHub\\\" and \\\"NittanyAI\\\"\\:** Recognized for our collaborative workflow and innovative application of artificial intelligence\\.\n\n- **Fully Functional Prototype\\:** We successfully built a working end\\-to\\-end image recognition pipeline that delivered accurate nutritional data with low latency in less than 24 hours\\.\n\n- **Future Roadmap\\:** We\\'ve outlined a clear path for future development\\, including integration with the FDA FoodData database for enhanced accuracy\\, barcode scanning for packaged goods\\, and cross\\-platform deployment to Android and the web\\.\n\n\\{TODO\\: Add screenshot of the Perfect Portion app interface identifying a meal\\}\n\n## Links\n\n- [Live Website](https:\u002F\u002Fperfectportion.tech)",{"endDate":11,"isOngoing":12,"startDate":13,"aiGenerated":14,"generatedAt":15,"contributors":16,"projectLinks":20},"2023-11-02",false,"2023-11-01",true,"2025-11-16T22:59:08.144Z",[17,18,19],"Asa Reynolds","Jason Selsley","Ryan Nair",{"other":21,"github":23,"devpost":23},[22],"https:\u002F\u002Fperfectportion.tech",null,"PUBLISHED","2025-11-16T22:59:12.057Z","2026-01-23T23:41:39.600Z","2023-11-01T00:00:00.000Z","2023-11-02T00:00:00.000Z","https:\u002F\u002Fapi.foligo.tech\u002Fapi\u002Fmedia\u002F3611b039-69a1-404e-94c9-5bd01fcb13ad\u002Ffile",{"other":31,"github":32,"devpost":33},[22],"https:\u002F\u002Fgithub.com\u002FJMS1717\u002FPerfectPortion","https:\u002F\u002Fdevpost.com\u002Fsoftware\u002Fperfect-portion-vpmn7g",[17,18,19],[36,40,44,47,51,55],{"id":37,"name":38,"category":39},"95ebac47-6a5e-466e-b138-89c8bffe566f","API Integration","Technical",{"id":41,"name":42,"category":43},"f0cba1bb-7a92-409e-9ae9-e3e9714701a6","First Place Winner","Achievement",{"id":45,"name":46,"category":43},"798fdc33-9e38-47b9-bc15-619da68eabaf","Hackathon",{"id":48,"name":49,"category":50},"a5b04d87-f047-4899-afb0-5f0169bf6b51","Mobile Development","Domain",{"id":52,"name":53,"category":54},"fd396777-0dd7-4d6f-a43f-5c66ab830da6","AI\u002FML","Feature",{"id":56,"name":57,"category":39},"eb02d7c3-8748-4cf6-850a-0194eca88592","UI\u002FUX Design",[59,63,67,71,75,78,82,86],{"id":60,"name":61,"category":62},"153dbaa9-b2f5-4f68-9046-0957dde01a10","Node.js","Backend Framework",{"id":64,"name":65,"category":66},"65b20be2-e9e2-400f-9345-d891d9dd0cda","Oracle Cloud Infrastructure","Cloud Platform",{"id":68,"name":69,"category":70},"c0a16ee1-22ea-45b3-9414-1a75891934e9","Rancher","Container Management",{"id":72,"name":73,"category":74},"43740fc6-547a-4bdf-8f98-754034899e02","Kubernetes","Container Orchestration",{"id":76,"name":77,"category":62},"8181b1db-5597-4d12-8625-a37d4a3c2e94","Express.js",{"id":79,"name":80,"category":81},"370cf669-498a-4a80-bab5-479fc3bce183","SwiftUI","Mobile Framework",{"id":83,"name":84,"category":85},"7c6be1a3-b355-411a-af36-9ca5511a49a8","OpenAI API","API",{"id":87,"name":88,"category":89},"056b9daf-2dbe-4541-8197-ca46a91d77be","GitHub","DevOps Tool",[],[92,102,110],{"id":93,"sourceId":4,"targetId":94,"sourceType":95,"targetType":8,"linkType":96,"createdAt":97,"updatedAt":97,"linkedContent":98},"9f0bfb3d-76f9-467b-8223-6f80bba068ed","4aec7a84-c781-4068-b2e7-8931f6e4f310","content","related","2025-11-17T03:58:50.104Z",{"id":94,"title":99,"slug":100,"excerpt":101,"contentType":8},"Campus Calendar: AI-Powered University Event Hub","campus-calendar-ai-powered-university-event-hub","An award-winning mobile app that centralizes university events, provides AI-driven recommendations, and allows students to host their own gatherings. Architected a scalable backend on Kubernetes.",{"id":103,"sourceId":4,"targetId":104,"sourceType":95,"targetType":8,"linkType":96,"createdAt":105,"updatedAt":105,"linkedContent":106},"7986c935-f45a-4cd3-b258-ed92b4e82933","407b2c8f-29e8-4b28-8d88-292e43df44ba","2025-11-16T23:13:42.708Z",{"id":104,"title":107,"slug":108,"excerpt":109,"contentType":8},"EyeCook: AI-Powered AR Cooking Assistant","eyecook-ai-powered-ar-cooking-assistant","An award-winning AR application that scans ingredients, generates custom recipes with AI, and provides hands-free cooking guidance on Snap Spectacles.",{"id":111,"sourceId":4,"targetId":112,"sourceType":95,"targetType":113,"linkType":114,"createdAt":115,"updatedAt":115,"linkedContent":116},"ef2b2062-ea65-4c58-b516-e29b670a5934","81307bd8-e718-4b92-af34-5e79506781d0","EXPERIENCE","prerequisite","2025-11-16T23:13:42.623Z",{"id":112,"title":117,"slug":118,"excerpt":119,"contentType":113},"Nittany AI Machine Learning Bootcamp","nittany-ai-machine-learning-bootcamp","Completed an intensive, hands-on bootcamp focused on practical machine learning, including LLMs and Generative AI. Developed skills in model training and utilization of platforms like Hugging Face and Kaggle."]