School of Science and Technology 科技學院
Computing Programmes 電腦學系

MindWave: AI-Enhanced Cognitive Health Monitoring for Elderly 

Chan Chak Shing, Chow Hong Nin, Chu Cheuk Sang, Chan Kwun On 

ProgrammeBachelor of Computing with Honours in Internet Technology

Bachelor of Science with Honours in Computer Science
SupervisorDr. Dani Assi
AreasIntelligent Applications
Year of Completion2025

Objectives

Project Aim

The aim of the project is to develop a system to monitor brain health by using an EEG-based solution with EEG signal that can be collected by an EEG headset. EEG is commonly employed in the diagnosis and research of various neurological disorders. It is a technique used to record the electrical activity of the brain, which helps identify brainwave patterns that correspond to specific mental tasks or brain function. 

Project Objectives
  • Brain Activity Monitoring 
    Utilize neurotechnology to continuously track brain activity and provide real-time insights into cognitive health. 
  • Early Diagnosis of Cognitive Decline 
    Detect early indicators of conditions such as dementia, enabling proactive intervention and treatment planning. 
  • Regular Cognitive Function Assessments 
    Perform ongoing evaluations to measure mental performance and identify potential cognitive fluctuations. 

Longitudinal Progress Tracking 

Monitor changes in cognitive function over time to assess improvement, deterioration, or stability in users' mental health status. 

MindWave offers significant benefits for the elderly by providing real-time cognitive health monitoring using EEG technology. This system ensures ongoing brain health assessments, enabling early detection of abnormalities. Personalized healthcare solutions empower elderly users to manage their health proactively. 

Short-Term Impact: 

  • Immediate Monitoring: Provides continuous tracking of brain activity, allowing for quick responses to changes. 
  • User-Friendly Interface: Simplifies the process for elderly users, ensuring ease of use and accessibility. 

Long-Term Impact: 

  • Early Detection and Prevention: Facilitates early diagnosis of conditions like dementia and Parkinson's, potentially delaying progression. 
  • Empowerment: Encourages proactive health management, improving quality of life and reducing healthcare costs over time. 

Videos

Demonstration Video

Presentation Video

Methodologies and Technologies used

Core Approach 

User Registration & Login 

  • Account Creation: Users sign up with an email and password; input validation prevents duplicates and ensures required fields are completed. 
  • Login Access: Secure sign-in grants users access to all system features, preserving privacy and data security. 

Personal Information Management 

  • Users can update personal details such as name, age, password, and profile icon. 
  • All updates undergo validation to safeguard data integrity and security. 

EEG Data Management 

  • Users upload EEG files in supported formats; the system checks for correct formatting and quality. 
  • Designed to accept data from a range of EEG sources for flexibility. 

Diagnosis & Analysis 

  • Condition Detection: Machine learning models analyze EEG data to detect signs of conditions like Alzheimer's, anxiety disorders, or Parkinson's. 
  • Diagnosis History: Users can view past diagnoses and track cognitive health trends over time. 

Summary Generation 

  • After EEG analysis, a summary report is created with key findings, visual statistics, and personalized health insights. 
  • These summaries support meaningful communication between users and healthcare providers. 

Personalized Health Recommendations 

  • Users interact with an AI-powered health consultant (ChatGPT-based) for personalized guidance. 
  • Recommendations are based on EEG analysis results and user health profiles 

Figure 1: Use Case Diagram 

Figure 2: Component Diagram

System Design 

The MindWave application is designed to provide a user-friendly interface for elderly users to monitor their brain health through EEG data analysis. The architecture consists of a front-end user interface and a back end processing system, ensuring seamless interaction and efficient data management. 

User-Centric Design: 

  • Focus on accessibility and ease of use for elderly users, ensuring that navigation and functionalities are intuitive. 

Modular Architecture: 

  • Components are designed to be independent yet interconnected, allowing for easier maintenance and updates. 

Security and Privacy: 

  • Emphasis on data protection, ensuring that user information and health data are securely stored and transmitted. 

Scalability: 

  • The system is built to accommodate an increasing number of users and data without compromising performance. 

 

Back-End System 

Flask Back-End: 

  • Acts as the server, handling requests from the front-end, processing data, and managing communication with the database and external services. 

User Database (PostgreSQL): 

  • Relational database for storing user profiles, EEG data, and historical analysis results. 
  • Ensures data integrity and supports complex queries. 

EEG Data Handler: 

  • Manages the upload, validation, and storage of EEG datasets. 
  • Use Deep Learning Model for analyzes EEG data to diagnose potential health conditions. 

ChatGPT API Bridge: 

  • Integrates with OpenAI’s ChatGPT service to offer personalized health advice and support, enhancing user engagement.

 Figure 3: Operational Diagram 

Figure 4: Information-wise Diagram 

Figure 5: Structural Diagram 

Implementation

Main page: 

Figure 6: Home Section

Login & Registration: 

In the login section, users can toggle between login and registration forms. Upon login successful, the user will be able to access the dashboard. 

Figure7: Login Form

Figure 8: Registration Form 

Dashboard: 

Upon logging in, users are presented with the Dashboard, a singlepage interface that centralizes all key functionalities of MindWave. A collapsible sidebar on the left provides oneclick navigation between: 

  • User Profile 
  • Upload EEG 
  • Diagnosis Report 
  • Summary 
  • Logout 

Also, there is a button for AI doctor on the bottom-right corner. 

Figure 9: Dashboard 

Upload and Diagnosis: 

The Upload EEG and Diagnosis Report workflow consists of two main steps: 

  1. Uploading Raw Data
  • Users select a .set file (mandatory) and optional .fdt file via standard HTML file inputs. 
  • On clicking Upload and Diagnose, a FormData payload is sent to POST /upload. 
  • The loading overlay appears until the server finishes processing the data, confirms receipt and returns a record_id. 
  • Upon success, the dashboard automatically loads diagnosis results. 

Figure 10: Upload and Diagnosis 

  1. Viewing Diagnosis Reports
  • In the Diagnosis Report section, a dropdown lists all past EEG upload timestamps (fetched from GET /signal_history/metadata). 
  • After EEG data upload or selecting a record triggers GET /signal_history/, returning: Prediction probabilities for Alzheimer's, Anxiety, Dementia, Parkinson's and the processed EEG signals for visualization. 

Figure 11: Diagnosis Results 

Summary Generation: 

Users can obtain a concise, structured overview of their EEG diagnostics through the Summary feature: 

  • One-Click Summary 
    A single button (“Get your Summary”) lets the system automatically select the user's five most recent EEG records. 
  • Automated Prompt Construction 

Figure 12: Summary Generation 

  • Dynamic Follow-Up Suggestions 
    After each AI Doctor response, user can see up to three tailored follow-up questions presented as clickable buttons. Clicking a suggestion automatically sends it back to the AI, guiding you deeper into the aspects you care about—whether that's risk factors, lifestyle changes, or technical clarifications. 
  • Markdown-Styled Display 
    Both your queries and the AI's answers support basic formatting (bold, italics, lists), so information is clear and well-structured. Loading indicators keep you informed during processing, and inline alerts guide you through any errors or validation issues. 

Together, the Summary and AI Doctor modules turn raw EEG data into actionable insights and an ongoing, personalized conversation—helping users to understand their brain health and take informed next steps. 

 
 

AI Doctor: 

The AI Doctor provides an interactive, context-aware chat interface that helps you interpret your EEG results and ask follow-up questions: 

Seamless Chat Interface 

  • A floating chat icon toggles the conversation window. The user can type naturally and receive AI replies in real time. 

Contextual Brain-Health Expertise 

  • The system preloads your five latest EEG statistical summaries into the AI's context, ensuring that each response is grounded in your personal data, not just generic advice. 

Conversation Memory 

  • Every message the user sends, and each AI Doctor reply is stored, creating a persistent dialogue that user can revisit whenever you return. The AI Doctor “remembers” earlier points in the user's session to maintain coherence. 

Figure 13: AI Docter 

Dynamic Follow-Up Suggestions 

  • After each AI Doctor response, user can see up to three tailored follow-up questions presented as clickable buttons. Clicking a suggestion automatically sends it back to the AI, guiding you deeper into the aspects you care about—whether that's risk factors, lifestyle changes, or technical clarifications. 

Markdown-Styled Display 

  • Both your queries and the AI's answers support basic formatting (bold, italics, lists), so information is clear and well-structured. Loading indicators keep you informed during processing, and inline alerts guide you through any errors or validation issues. 

Together, the Summary and AI Doctor modules turn raw EEG data into actionable insights and an ongoing, personalized conversation—helping users to understand their brain health and take informed next steps. 

 
 

Conclusion

MindWave demonstrates strong potential as a digital health solution for elderly cognitive care by integrating: 

  • EEG data processing 
  • AI-driven diagnosis 
  • Summarized health insights 
  • AI-based health consultation 

It effectively addresses cognitive conditions such as Alzheimer's, Parkinson's, dementia, and anxiety, with promising accuracy and a user-friendly dashboard. 

 

Limitations 

  • Channel Dependency: Diagnostic accuracy relies on EEG data containing 14 specific channels (e.g., Fp1, Fp2, C3, Cz, etc.). Missing or mismatched channels may degrade performance or invalidate results. 
  • Controlled Data Bias: Models were trained on high-quality, research-grade EEG signals; real-world variability (e.g. noise, electrode misplacement) may affect reliability. 
  • Input Format Restriction: The anxiety disorder model currently only supports tabular EEG features, limiting consistency with other classifiers that accept raw signal data. 

Future Development

  • Broader EEG Channel Support: Increase compatibility by training models that accept flexible channel configurations. 
  • Real-Time EEG Integration: Enable live data streaming from consumer-grade devices to facilitate continuous monitoring. 
  • Multimodal Data Fusion: Incorporate physiological signals like heart rate and GSR to enhance robustness and diagnostic precision. 
  • Expanded Diagnostic Scope: Extend the platform to cover conditions such as depression, epilepsy, and ADHD. 

With these improvements, MindWave could evolve into an even more versatile and impactful cognitive health platform. 

Jonathan Chiu
Marketing Director
3DP Technology Limited

Jonathan handles all external affairs include business development, patents write up and public relations. He is frequently interviewed by media and is considered a pioneer in 3D printing products.

Krutz Cheuk
Biomedical Engineer
Hong Kong Sanatorium & Hospital

After graduating from OUHK, Krutz obtained an M.Sc. in Engineering Management from CityU. He is now completing his second master degree, M.Sc. in Biomedical Engineering, at CUHK. Krutz has a wide range of working experience. He has been with Siemens, VTech, and PCCW.

Hugo Leung
Software and Hardware Engineer
Innovation Team Company Limited

Hugo Leung Wai-yin, who graduated from his four-year programme in 2015, won the Best Paper Award for his ‘intelligent pill-dispenser’ design at the Institute of Electrical and Electronics Engineering’s International Conference on Consumer Electronics – China 2015.

The pill-dispenser alerts patients via sound and LED flashes to pre-set dosage and time intervals. Unlike units currently on the market, Hugo’s design connects to any mobile phone globally. In explaining how it works, he said: ‘There are three layers in the portable pillbox. The lowest level is a controller with various devices which can be connected to mobile phones in remote locations. Patients are alerted by a sound alarm and flashes. Should they fail to follow their prescribed regime, data can be sent via SMS to relatives and friends for follow up.’ The pill-dispenser has four medicine slots, plus a back-up with a LED alert, topped by a 500ml water bottle. It took Hugo three months of research and coding to complete his design, but he feels it was worth all his time and effort.

Hugo’s public examination results were disappointing and he was at a loss about his future before enrolling at the OUHK, which he now realizes was a major turning point in his life. He is grateful for the OUHK’s learning environment, its industry links and the positive guidance and encouragement from his teachers. The University is now exploring the commercial potential of his design with a pharmaceutical company. He hopes that this will benefit the elderly and chronically ill, as well as the society at large.

Soon after completing his studies, Hugo joined an automation technology company as an assistant engineer. He is responsible for the design and development of automation devices. The target is to minimize human labor and increase the quality of products. He is developing products which are used in various sections, including healthcare, manufacturing and consumer electronics.

Course Code Title Credits
  COMP S321F Advanced Database and Data Warehousing 5
  COMP S333F Advanced Programming and AI Algorithms 5
  COMP S351F Software Project Management 5
  COMP S362F Concurrent and Network Programming 5
  COMP S363F Distributed Systems and Parallel Computing 5
  COMP S382F Data Mining and Analytics 5
  COMP S390F Creative Programming for Games 5
  COMP S492F Machine Learning 5
  ELEC S305F Computer Networking 5
  ELEC S348F IOT Security 5
  ELEC S371F Digital Forensics 5
  ELEC S431F Blockchain Technologies 5
  ELEC S425F Computer and Network Security 5
 Course CodeTitleCredits
 ELEC S201FBasic Electronics5
 IT S290FHuman Computer Interaction & User Experience Design5
 STAT S251FStatistical Data Analysis5
 Course CodeTitleCredits
 COMPS333FAdvanced Programming and AI Algorithms5
 COMPS362FConcurrent and Network Programming5
 COMPS363FDistributed Systems and Parallel Computing5
 COMPS380FWeb Applications: Design and Development5
 COMPS381FServer-side Technologies and Cloud Computing5
 COMPS382FData Mining and Analytics5
 COMPS390FCreative Programming for Games5
 COMPS413FApplication Design and Development for Mobile Devices5
 COMPS492FMachine Learning5
 ELECS305FComputer Networking5
 ELECS363FAdvanced Computer Design5
 ELECS425FComputer and Network Security5