| Where the face is | A face model places 478 points on the face in each picture, and gives 52 numbers for its shape (how far the mouth corners are raised, the jaw open, and so on). | landmarks.js |
| Skin colour | The mean red, green and blue of the forehead and both cheeks, forehead counted double, once per picture. Pixels that are nearly black or blown out are left out. | face.js |
| Pulse wave | POS (plane orthogonal to skin; Wang, den Brinker, Stuijk and de Haan, 2017): the three colour traces are mixed so that movement and changes of light mostly cancel and the pulse stays. | rppg.js |
| Heart rate | The wave is brought to 30 samples a second, its drift removed, and filtered to 0.7–4 Hz (42 to 240 beats a minute) without shifting it in time. The strongest rhythm in its spectrum is the heart rate. | dsp.js |
| Signal quality | The power at that rhythm and its first overtone, against the rest of the band, in decibels, mapped to 0–100 %. | dsp.js |
| Steady | A reading is called steady when, for eight seconds running, every reading had a quality above 55 % and all of them named the same rate, within 4 beats a minute. A quality score alone is fooled by colour that wanders; a rhythm that holds is not. | steady.js |
| Beat-to-beat variation | Peaks of the wave are taken as beats; RMSSD and SDNN are computed from the times between them, with implausible gaps left out. Shown only while the pulse is steady. | dsp.js |
| Expression | Hand-written rules turn the 52 shape numbers into seven scores, and a softmax turns the scores into shares that sum to 100 %. | expression.js |
| Eyes | Each eye's height over its width, from six of the points. Closed-then-open is a blink. | eyes.js |
| Arousal | Heart rate above, and RMSSD below, the median of the first 20 seconds of steady readings. | arousal.js |