Week13
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】.
HeartFailureMatters.org points out that swelling in the lower limbs is often due to fluid retention caused by poor heart pumping efficiency, and is one of the earliest warning signs of worsening heart failure【HFM†source】.
Dr. Macdonald's cardiology site further explains that chronic heart failure impairs the kidneys' ability to eliminate fluid, leading to progressive swelling in dependent regions like the ankles. Importantly, such swelling tends to happen slowly, often over hours or days【Macdonald†source】.
Based on this understanding, a test simulation protocol was developed:
A balloon and a manual air pump were used to simulate the gradual expansion of the ankle. The balloon was wrapped in a loop to mimic the wearable position and inflated very slowly to simulate progressive swelling. This method allowed for controlled increases in ankle radius and corresponding changes in the flex sensor’s resistance.
Initially, the long-term filtering was set to 1-minute intervals, with data sampling every 10 seconds—parameters ideal for real patient use but too slow for testing. For feasibility, they were adjusted to:
Long-term EMA interval: 15 seconds
Sampling frequency: Every 2 seconds
The test was repeated 10 times. In 4 out of 10 trials, the algorithm successfully transitioned into the STATIONARY state and detected a consistent downward trend in the filtered voltage, triggering the alarm. However, in the remaining cases, air leaks during inflation caused unstable flex values, mistakenly interpreted as movement.
Results:
A medically grounded testing protocol was successfully designed.
The revised filtering and sampling intervals improved test responsiveness.
The system showed partial success in detecting simulated swelling.
False negatives were mainly due to hardware limitations (air leakage).
Further iteration is needed for a more stable simulation environment.




Comments
Post a Comment