Y·B← All projects
Neurology · hand tracking · signal processing

Neuro Lab

Three tests neurologists use at the bedside, rebuilt for a webcam and a touchscreen. Tap your fingers, hold your hand out, draw a spiral. The page measures speed, rhythm, fatigue and tremor frequency, then explains what the numbers mean.

A demo, not a diagnosis. These are simplified versions of real clinical tests, measured with an ordinary webcam. Tiredness, caffeine, cold hands, lighting and camera angle all change the numbers. If you're worried about a tremor or slowness, see a doctor.

Press Start camera. Sit about an arm's length away with your hand in view.
● REC
How to do it
    Live signal
    01Hand trackingMediaPipe finds 21 points on your hand in every camera frame. Distances are measured in hand lengths, so it doesn't matter how far you sit.
    02TappingThumb-to-index distance becomes a wave. Each open-close cycle is a tap; the page compares the first and last third for fatigue.
    03TremorSlow drift is filtered out, then a Welch power spectrum finds the dominant shake frequency between 3 and 14 Hz.
    04SpiralYour line is unwrapped into radius versus angle and fitted to a perfect Archimedes spiral. What's left over is wobble.
    Your reportfills in as you finish each test

    Finger tapping

    Not done yet.

    Hand tremor

    Not done yet.

    Spiral drawing

    Not done yet.

    Methods follow the tests' clinical versions in spirit: finger tapping from the MDS-UPDRS motor exam, postural tremor frequency bands from movement-disorder research, and spiral analysis from Archimedes spiral studies. Checked against simulated hands: tapping rate within 0.2 taps/s, tremor frequency within 0.1 Hz. Webcams run at about 30 frames a second, so tremor above about 14 Hz and shake under about half a millimetre can't be seen.