Color & Math Game (Ionic)

← Back to Projects

Background


Mild Cognitive Impairment (MCI) is a condition that causes noticeable problems with memory, thinking, and reasoning, but not severe enough to significantly interfere with daily life or independent function. People with MCI often experience difficulties such as forgetting appointments, losing track of conversations, or struggling with decision-making. While these symptoms are less severe than those seen in dementia, they can still reduce quality of life, create frustration, and increase reliance on family members or caregivers. Importantly, individuals with MCI remain aware of many of their challenges, which can also contribute to feelings of anxiety, stress, and social withdrawal.


As the global population ages, the number of people affected by MCI is expected to grow. This has created an urgent need for supportive tools and interventions that can help people maintain independence, reduce caregiver burden, and improve overall well-being. One promising approach is the use of socially assistive robots that provide not only practical reminders and guidance but also emotional support and companionship.


During my internship with the PHAST Lab at SFSU, our lab is developing Carmen, a robot designed specifically to assist people with MCI in their daily lives. I helped to build the robot hardware and translated a set of cognitive games from an iOS app into a responsive web app. I used Ionic (Angular, HTML, CSS, TypeScript) to make the games more accessible across devices. Furthermore, we want to have the web app send and receive messages from the robot. For example: If the users input the correct answer, the robot will make some movement or show some colors that tell them they did it correctly.


Our final goal is to make a Carmen robot that aims to support memory through reminders for medications and appointments, guide users through everyday tasks, and provide conversational interaction to reduce loneliness. By combining assistive functions with social engagement, Carmen has the potential to enhance the autonomy and confidence of people living with MCI, while offering caregivers reassurance that their loved ones are supported.

What I Built


Why It Matters


My Contributions & Challenges


After I finished building the game, I pushed my code to GitHub so I could pull it onto Carmen, our robot platform, for testing. This testing phase helped me adjust the scaling of the text prompts, number pad, and response pop-up. I intentionally made these UI elements larger to accommodate users with cognitive impairments, ensuring that everything is easy to read and interact with.


When I did this work, there were a lot of problems setting up the environment and managing GitHub. My mentor, Mathew, and another teammate named Daniel worked together with me to solve those issues.


One of the challenges I encountered was configuring the correct scaling and resolution when deploying to Carmen. The Raspberry Pi didn’t automatically detect the default resolution of our tablet display. To fix this, we had to manually set the HDMI output through the Pi terminal. This step was important; without it, applications would overflow the screen and become unreadable.


Before: wrong tablet resolution (UI overflow)
After: proper scaling set on Raspberry Pi
BeforeAfter
Smaller keypad
Larger, accessible keypad
BeforeAfter

Another issue occurred when updating our code on GitHub. I didn’t realize at the time that I needed to pull the latest changes before pushing my updates. As a result, I encountered a merge conflict while backing up and pushing the code, which ultimately required us to reinstall everything from scratch.


During this internship, I learned how to collaborate and communicate effectively with my teammates, mentor, and professor. It also helped me improve my self-study skills, problem-solving abilities, and gain more hands-on experience with coding.


Screens & UI

Math Game numeric input UI
Color Recognition multiple choice UI
Color Memory sequence UI

Next Steps