A method for measuring the depth of anesthesia, a storage medium, and an electronic device. The method comprises: obtaining an electroencephalography signal and extracting the signal characteristic of the electroencephalography signal (S10); obtaining a predicted electroencephalography signal corresponding to the electroencephalography signal and extracting the predicted signal characteristic of the predicted electroencephalography signal (S20); and generating a simulated electroencephalography signal corresponding to the electroencephalography signal according to the signal characteristic and the predicted signal characteristic, and determining a depth of anesthesia value according to the simulated electroencephalography signal (S30). The predicted electroencephalography signal generated by a network brain model is combined with an actually measured electroencephalography signal to obtain the simulated electroencephalography signal, and then the depth of anesthesia is calculated according to the simulated electroencephalography signal. In this way, the actually measured electroencephalography signal can be verified according to the predicted electroencephalography signal, which can improve the accuracy of the depth of anesthesia obtained by measurement, improve the reliability of the depth of anesthesia, and improve the dynamic real-time tracking capability and anti-interference capability of the depth of anesthesia measurement.
METHOD FOR MEASURING DEPTH OF ANESTHESIA, STORAGE MEDIUM, AND ELECTRONIC DEVICE