Patients use wearables and a headache diary to track physiological signals — heart rate, activity, temperature, stress markers — alongside patient-reported outcomes. An AI model learns to recognise the early warning signs of an oncoming attack, in some cases hours before it begins, and alerts the patient to start treatment in time. For patients who don’t respond to medication, an ultra-thin implantable neurostimulator can be triggered to intervene automatically.