Week10
Week 10 Progress: Exponential Moving Average and Trend Detection Objective To apply signal processing techniques to smooth ADC data and detect abnormal trends that may suggest ankle swelling. The techniques include: Short-term smoothing using EMA (Exponential Moving Average) Long-term trend detection by evaluating the slope of consecutive filtered values What is EMA? The Exponential Moving Average is a recursive smoothing filter calculated by: E M A t = α ⋅ X t + ( 1 − α ) ⋅ E M A t − 1 Where: X t X_{t} X t is the current data point α \alpha α is the smoothing constant (0 < α < 1) A lower α means stronger smoothing but slower response. Implementation Details 1. Short-Term EMA (Real-Time Filtering) Applied on 200 averaged samples every 2 seconds. Removes noise from breathing, minor twitches, or slight sensor jitter. 2. Long-Term EMA (Trend Filter) Samples are further passed through another EMA with a lower alpha (0.1) for trend detection . Trend D...