# Electroacupuncture modulates electroencephalographic microstate dynamics to alleviate chronic insomnia: a machine learning approach for predicting individual treatment response

**Authors:** Enqi Liu, Chi Wang, Xiaoqiu Wang, Kai Liu, Shan Qin, Liyu Lin, Juan Li, Min Xu, Chengyong Liu, Huangan Wu, Wenzhong Wu

PMC · DOI: 10.3389/fneur.2026.1782826 · 2026-02-27

## TL;DR

This study explores how electroacupuncture affects brain activity in people with chronic insomnia and uses machine learning to predict treatment response based on brainwave patterns.

## Contribution

The novel contribution is using EEG microstate dynamics and machine learning to predict individual response to electroacupuncture treatment for chronic insomnia.

## Key findings

- Electroacupuncture improved clinical scores and altered EEG microstate parameters in chronic insomnia patients.
- Baseline microstate features showed potential for predicting treatment response, with random forest achieving an AUC of 0.849.
- Specific microstate transitions and durations were identified as key predictors of treatment response.

## Abstract

Chronic insomnia (CI) is associated with dysregulation of brain network dynamics, and patient response to electroacupuncture (EA) treatment varies. This study aimed to investigate the characteristics of electroencephalographic (EEG) microstates in patients with CI, analyze changes in microstate parameters before and after EA treatment, and explore the potential application of machine learning (ML) models based on baseline microstate features for predicting treatment response.

We enrolled 41 CI patients and 19 healthy controls (HC). Baseline resting-state EEG was recorded, and microstate parameters (classes A–D) were analyzed. CI patients underwent 4-week EA treatment. Six clinical scales—including the Pittsburgh Sleep Quality Index (PSQI) and Hamilton Depression Scale, and microstate dynamics were compared pre- and post-treatment. Treatment response was defined as ≥50% PSQI reduction. Multi-stage feature selection and eight ML algorithms were used to build the prediction model.

At baseline, CI patients showed differences in some temporal metrics of microstates B, A, and C compared to HC. After EA, all clinical scores improved significantly (p < 0.001). Coverage_B and Duration_B, as well as Occurrence_C, increased, and multiple transition probabilities were regulated—particularly, microstate B temporal indicators normalized to HC levels. In the exploratory ML modeling, RF performed best (AUC = 0.849). “Duration_A,” “OrgTM_D → B,” and “OrgTM_C → B” were the top positive predictors, while “Occurrence_C” and “Duration_B” were negative predictors.

This study found that EA treatment was associated with improved clinical scores and alterations in some EEG microstate parameters in patients with CI. In this exploratory analysis with a limited sample size, baseline microstate features showed preliminary potential for predicting treatment response, though further validation in larger cohorts is needed. These findings may provide a reference for future research on neurophysiological predictors and the development of individualized treatment strategies.

## Full-text entities

- **Diseases:** CI (MESH:D007319), Depression (MESH:D003866)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Figures

4 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12982113/full.md

---
Source: https://tomesphere.com/paper/PMC12982113