Posts

Showing posts from March, 2025

Week14

Image
Week 14 Progress: Data Analysis and Final Testing Improvements Objective: The primary goal of Week 14 was to complete a comprehensive round of performance tests on the ankle monitoring system and to conduct a thorough analysis of the collected sensor data. Emphasis was placed on evaluating the system’s ability to detect swelling through trend analysis, as well as verifying the accuracy of filtering techniques in eliminating short-term noise. Alongside empirical testing, the effectiveness of the core embedded logic written in C++ was further validated. Implementation: A key element of the test was real-time monitoring of ADC (Analog-to-Digital Converter) output values from the flex sensor under simulated swelling conditions. The image below shows the plotted  sampled ADC values  and their corresponding  filtered values  (exponentially smoothed): From this graph, we can observe two trends: The  blue line  shows raw sampled data, which fluctuates significantly...

Week13

Image
Week 13 Progress: Testing Strategy Design and Simulation Objective: This week’s objective was to investigate the physiological significance of ankle swelling as a symptom of heart failure and to design a testing methodology that simulates this condition using available tools. The aim was to assess whether the current smart sock prototype could reliably detect early signs of edema through the flex sensor readings and trend detection algorithm implemented in previous weeks. Implementation: To begin with, a thorough background study was conducted on the clinical causes and relevance of ankle swelling, or  peripheral edema , especially in heart failure patients: According to the UK’s NHS website,  oedema  occurs when excess fluid builds up in body tissues, often affecting the ankles and feet. It’s particularly common among elderly or sedentary individuals and can be a sign of more serious conditions like  heart failure  or kidney problems【NHS†source】. HeartFailureMa...

Week12

Image
Week 12 Progress: BLE Control, Reset Commands, and Exporting Graphs Objective: To finalize app interaction logic by adding BLE-based command sending (RESET), exporting chart visuals to the gallery, and refining the feedback interface. Implementation: This week focused on expanding interactivity, BLE write operations, and implementing advanced features such as exporting graph images. These additions greatly enhanced the app’s practicality and user-friendliness. Reset Command via BLE Write: The reset function allows users to instruct the microcontroller to restart all monitoring. The code sends a  "RESET"  string to a writable BLE characteristic ( 19B10003... ) using: commandCharacteristic.value = "RESET".toByteArray() gatt.writeCharacteristic(commandCharacteristic) dataList.clear() This command clears chart history and resets backend data processing, with confirmation shown via a  Toast . Image Export of Chart View: A bitmap of the chart is captured from the Compose ...