How Unhand notices hair pulling, scratching and picking
Unhand watches your Mac's camera for one thing: a hand at your scalp, face, mouth or eyes. It runs Apple's Vision framework on your Mac, checks how the hand is moving, and alerts quickly for scratching, rubbing or pulling, while a hand that is simply resting takes longer.

What Unhand is looking for
Most hair pulling, scratching, picking and nail biting happens without you noticing. Unhand is built to catch the start of that moment, so you can choose what to do next.
It does this with zones. Each habit you turn on in the Habits pane has its own area, drawn around your face as the camera sees it:
| Habit | Zone | What it covers |
|---|---|---|
| Head & scalp | Scalp | The crown and top of your head, plus your temples, the sides of your head and behind your ears. Includes hair pulling (trichotillomania). |
| Face touching | Face | Your face, a little wider than it and extending below your chin: cheeks, chin, forehead and beard. Includes skin picking on the face. |
| Nail biting | Mouth | An area around your lips. Includes nail and cuticle biting and lip picking. |
| Eye rubbing | Eyes | An area around each eye. Includes pulling at lashes and brows. |
Head & scalp and Face touching are on by default. You can turn on any combination.
Because the zones are measured from your face, they move with you. Lean back, turn a little or shift in your chair, and the zones follow. Where zones overlap, the mouth comes first, then the eyes, then the face, then the scalp.
How it works, frame by frame
On each camera frame, Unhand asks Apple's Vision framework, on your Mac, where your face, your hands (up to two) and your upper body are. For each hand it uses the tips and end joints of all five fingers, and ignores points Vision isn't confident about. If several faces are in view, it uses the largest.
It looks about 6 times a second while your hands are away from your head (3 with Battery saver on), and about 15 times a second when a fingertip is in or near a zone, so it can follow the movement closely. Each frame is analysed in memory and discarded; see Privacy and the camera.
When your hand covers your face
A hand over your forehead or eyes can hide your face, which is exactly when you want Unhand to keep watching. So it remembers where your head was for a couple of seconds, then estimates it from your upper body: your nose and ears, or your eyes. It also skips a hand that looks much bigger than your face, since that's usually close to the lens rather than on your head.
The raised-arm clue
Fingers scratching the top or back of your head are often hidden. For Head & scalp only, a raised elbow above your shoulder with your wrist up near your head counts as possible contact, even with no fingertip in a zone. It's weaker evidence, so it builds more slowly. Turn it off with Use raised arm as a clue in Settings.
Movement, not just position
A hand near your face isn't always the habit: you rest your chin, hold a phone, prop up your head. Since version 1.0.2, Unhand looks at how your hand moves during the last moment of contact and uses that to decide how quickly to alert.
- Back-and-forth movement counts most. Scratching and rubbing change direction again and again, and that pattern builds evidence fastest.
- A thumb and finger pinched together above your brow line is treated as likely hair pulling, even when the hand is fairly still.
- Fingers at your mouth count fairly strongly even when still, because nail biting often is.
- A single quick sweep, like brushing hair out of your eyes, counts less than repeated movement.
- A still hand, a gripping hand, or a large hand close to the camera (like a phone or a cup) counts least.
Small jitters are smoothed out, so a trembling hand doesn't look like rubbing, and in the first fraction of a second Unhand stays neutral so a real habit isn't delayed. Your answers to the Was that the habit? card adjust this scoring in both directions; see Learning from your answers.
Sensitivity and timing
The Sensitivity slider in Settings runs from Relaxed to Quick. It sets the dwell time: how long habit-like contact needs to last before an alert.
| Setting | Scratching, rubbing or pulling | Still or unclear contact |
|---|---|---|
| Relaxed | about 1.2 s | up to about 8 s |
| Default | about 0.6 s | up to about 4 s |
| Quick | about 0.25 s | up to about 1.7 s |
Approximate times. The caption under the slider, “Scratching or rubbing alerts after … s. A still hand takes longer.”, shows the first column.
Short gaps don't reset the count. After an alert ends there's a pause of a few seconds before the next can start, and if more than one zone is touched, the one your hand spent most time in wins.
If no one is in view for about 8 seconds, the status changes to Waiting for you to return, and Unhand picks up again by itself when you sit back down.
Which camera Unhand uses
By default, Unhand uses your Mac's built-in camera. To use another one, choose it under Camera in Settings: built-in, external and Continuity Camera (iPhone) cameras are listed. Below the list, Now using: shows the camera actually in use whenever it isn't simply the one you chose.
Cameras come and go, especially at a desk with a dock, and Unhand follows them:
- Closing the MacBook lid on a dock turns the built-in camera off without disconnecting it. Unhand moves to another camera, and back to the built-in one when you open the lid.
- Plugging in or removing a camera, including an iPhone used as a Continuity Camera: Unhand moves to the best camera available, and to the one you chose as soon as it's connected.
- A camera that stops sending pictures: after about 3 seconds without a frame, Unhand tries the next camera, and checks the first one again later.
- No camera at all: the status shows No camera found, and watching starts by itself when a camera appears.
When Unhand has to choose, it prefers the camera you chose, then the built-in one, then other connected cameras, with an iPhone last, so your phone isn't used unless nothing else works. If the camera you chose isn't connected, Settings says “This camera isn't connected. Unhand is using the default camera for now.”
Limits
- It can't see the back of your head, except through the raised-arm clue.
- Zones are flat, as the camera sees them. A hand between your face and the camera can count as contact; the size check only reduces this.
- It will sometimes miss a moment and sometimes alert for something harmless. Answering the question card helps with the second.
- There is one sensitivity for all habits, with no schedules or per-app rules.
- It needs a camera that can see your hands and your head or upper body.
Unhand is an awareness tool, not a medical device. It doesn't diagnose or treat any condition. If a habit affects your health, please talk to a qualified professional.
When it helps most
It works best when you sit facing your Mac with your face and shoulders in view: reading, writing, coding, studying or on calls. Those long, focused stretches are also when many people pull, scratch or pick without noticing.
Set it up
- Click the Unhand icon in the menu bar and choose Open Unhand.
- In Habits, turn on the habits you want help with.
- Open Live View to see what Unhand sees: your enabled zones as dashed outlines that fill in when touched, and your hand joints with the fingertips highlighted.
- Under Preview an alert:, try one button per habit to see what an alert looks like. Previews aren't recorded.
- In Settings, adjust Sensitivity, and choose whether to Use raised arm as a clue and turn on Battery saver.
- If you have more than one camera, pick it under Camera. Built-in, external and Continuity Camera devices are listed.
Questions
Does Unhand alert every time I touch my face?
No. It looks at how your hand moves. Scratching, rubbing or pulling alerts after the dwell time, while a still hand, like a resting chin or a phone at your ear, takes several times longer and often ends before an alert.
Can it notice scratching on the back of my head?
Only indirectly. With Use raised arm as a clue on, a raised elbow and a wrist near your head count as possible scalp contact for Head & scalp. It's weaker evidence, so it takes a little longer.
Why did the slider say 0.6 s but the alert took longer?
The time under Sensitivity applies to scratching, rubbing and other habit-like movement, and its caption says a still hand takes longer. Still or unclear contact takes longer on purpose, up to about 4 seconds at the default setting.
Can I set a different sensitivity for each habit?
Not at the moment. One sensitivity applies to every habit you have turned on.
Does Unhand work with the lid closed on a dock?
Yes, with an external camera or an iPhone connected. When you close the lid, Unhand moves to another camera, and back to the built-in camera when you open it.
Related
Learning
After an alert, Unhand asks “Was that the habit?”. Your answers teach its on-device model which moments to alert sooner and which to hold back, on your Mac.
Privacy
Unhand analyses camera frames in memory on your Mac and never saves or sends images. Here is exactly what it stores, why, and how to delete it at any time.
Alerts
Choose how Unhand gets your attention on your Mac: Glow, Focus or Subtle, a soft sound, or both, plus an idea for what to do with your hands instead.