Visual acuity evaluation method, system and device and storage medium
Through the visual acuity assessment method based on EEG signals, the problems of insufficient applicability of traditional myopia examination to special populations and bulky equipment are solved, and the rapid and accurate visual acuity assessment for all populations is achieved, which is suitable for deaf and mute people and Infants and young children, the detection efficiency and accuracy have been improved.
Patent Information
- Application Number
- CN202410974841.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-01
AI Technical Summary
The existing myopia examination methods are not suitable for special groups such as deaf and mute people, infants and young children, and traditional equipment is bulky and inconvenient, so it is impossible to screen myopia easily and accurately, resulting in insufficient prevalence and convenience of myopia examination.
Using the visual acuity evaluation method based on EEG signals, the stimulation paradigm pictures are automatically rotated, and the EEG signals are collected in real time, integrity verification and preprocessing are performed, feature values related to visual acuity are extracted, classification models are constructed, and classification models are evaluated. The patient's visual acuity level weakens the influence of individual differences and environmental factors.
It achieves a rapid and accurate assessment of visual acuity and is applicable to all populations, including deaf and infants, reducing the size and cost of the equipment and improving detection efficiency and accuracy.
Smart Images

Figure CN118873085A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and in particular, relates to a method, system, device and storage medium for visual acuity assessment of electroencephalogram signals. Background Art
[0002] Visual acuity is the ability of the human eye to distinguish the details of an object. It is quantitatively equal to the reciprocal of the minimum visual angle (in minutes) that the eye can just discern. In clinical medicine, visual acuity is called visual acuity. Myopia and hyperopia are two common visual impairments, which refer to the light focusing on a point in front of the retina and a point behind the retina, respectively.
[0003] Myopia patients account for the largest proportion of patients with incomplete vision. In 2019, the total number of myopia patients in China has reached about 530 million, of which about 310 million are adult myopia patients over the age of 20, and the overall myopia rate is close to 34.2%, far exceeding the global overall myopia incidence of 12.5%. By 2025, the number of myopia patients in China is expected to be close to 620 million, of which about 360 million are adult myopia patients over the age of 20. The reasons behind the large number of myopia patients in China include insufficient publicity of knowledge on preventing myopia, neglect of early vision protection, and inconvenient myopia examinations. Therefore, it is necessary to improve the convenience and universality of myopia examinations and achieve early detection, early diagnosis, and early intervention.
[0004] At present, most myopia tests still use the traditional detection method - letter vision chart, but this method is not suitable for special groups such as deaf-mute people, infants and young children, and it is not convenient and accurate for screening because it requires a specific venue environment and the test results are subjective. Modern myopia tests use intelligent equipment, such as vision testers that can be adjusted in height, and self-service vision test devices that can detect independently without human intervention. Although this improves the detection efficiency, it is still not suitable for deaf-mute people, infants and young children, pseudo-blind people, etc., and has certain defects such as bulky and non-portable equipment, inability to check anytime and anywhere, and being affected by the patient's own factors, so it cannot be widely used.
[0005] Based on this, a lightweight visual acuity assessment method needs to be developed urgently. Summary of the invention
[0006] The purpose of the present application is to provide a visual acuity assessment method, system, device and storage medium to at least solve one technical problem in the prior art.
[0007] The technical solution of this application is:
[0008] A method for evaluating visual acuity based on electroencephalogram signals, comprising:
[0009] Automatically rotate the designated stimulation paradigm pictures and collect the EEG signals of the patient when watching the stimulation paradigm pictures in real time;
[0010] Verifying the integrity of the EEG signal and converting the complete EEG signal into corresponding hexadecimal EEG data;
[0011] The EEG data is parsed, and after restoring the EEG signal, it is preprocessed to obtain a preprocessed signal; then, feature extraction is performed on the preprocessed signal to obtain feature values related to visual acuity, and features with a high correlation with visual acuity are obtained; and the remaining features after screening are cross-validated to weaken the influence of individual differences and environmental factors on the evaluation results;
[0012] The feature values are used to build and improve the classification model, and the classification model is used to assess the patient's current visual acuity level.
[0013] After restoring the EEG signal, preprocessing is performed to obtain the preprocessed signal, including:
[0014] The EEG signal F0 is subdivided into two parts: the reference EEG signal B1 and the EEG signal B2 under the stimulation of the stimulation paradigm picture;
[0015] The reference EEG signal B1 and the EEG signal B2 stimulated by the stimulation paradigm picture are segmented based on time, and band-pass filtered to retain only the effective signal in the 4-40 Hz frequency band;
[0016] Obtain the mean value A of the reference EEG signal B1 to obtain the EEG signal F1 with simple environmental noise removed;
[0017] The EEG signal F1 is converted according to the constraints of the VMD algorithm and st∑ k u k =f to decompose;
[0018] pass Perform K update iterations, where
[0019] Until the constraints are met After that, k finite bandwidth intrinsic mode functions are decomposed from the EEG signal F1, which are defined as Among them, u k ={u1,u2,...,u k} are the modal functions, ω k ={ω1,ω2,...,ω k} is the center frequency of each mode. λ is the Lagrange multiplier, α is the penalty parameter; where γ represents the noise tolerance; t is time, j is a complex number, δ(t) is the impulse function, and ω is ω k ={ω1,ω2,...,ω k} is any value of the modal center frequency, is st∑ related to ω at each update iteration k u k = the current value of f, When u is updated for n+1 iterations k The current value of (ω); is the current value of λ(ω) at n+1 update iterations; φ k (t) is the phase function with respect to t (time) at the kth update iteration; A k (t) is divided by cos(φ k (t)) k (t) is decomposed into a function about t, where ε represents a very small number, close to 0;
[0020] The remaining residual signal is removed and the k finite bandwidth intrinsic mode functions are re-superimposed to obtain the effective EEG signal F.
[0021] The EEG data is analyzed, and after restoring the EEG signal, preprocessing is performed to obtain a preprocessed signal; then, feature extraction is performed on the preprocessed signal to obtain feature values related to visual acuity, and features with a high correlation with visual acuity are obtained; and the remaining features after screening are cross-validated to weaken the influence of individual differences and environmental factors on the evaluation results, including:
[0022] According to the EEG data file, analyze and restore the EEG signal F0;
[0023] The reference EEG signal is used to pre-process the EEG signal under the stimulation of the stimulation paradigm picture to obtain the effective EEG signal F;
[0024] Superimposing the effective EEG signal F to obtain an ERP EEG signal E0;
[0025] Using the characteristics of the ERP signal and the EEG signal E0, the feature vector V of each feature is extracted i ;
[0026] Using the Pearson test, we screen out features D that are highly correlated with visual acuity. i ;
[0027] The feature D with higher correlation with visual acuity i The characteristic vector VD iPerform 5-fold cross-validation to weaken the influence of individual differences and environmental factors on the evaluation results, and obtain the feature vector S i ;
[0028] And use the feature vector S i Construct a LightGBM classification model.
[0029] The constructing of the LightGBM classification model using the feature vector S i includes:
[0030] Discretize the continuous floating-point feature vector S after cross-validation into i integers, and simultaneously construct a histogram with a width of i; i Discretize the continuous floating-point feature vector S after cross-validation into i integers, and simultaneously construct a histogram with a width of i;
[0031] Accumulate the statistics in the histogram according to the discretized values as indexes;
[0032] According to the discrete values of the histogram, use the decision tree algorithm for leaf growth with depth limit. From all the current leaves, find the leaf with the largest split gain, continue to split and traverse to find the optimal splitting point as the classification basis, and construct a LightGBM classification model; after obtaining the LightGBM classification model, use model analysis to obtain the visual acuity level value x of the current patient, and classify the visual acuity level x value of the patient: poor, such as x ≤ 0.1, good, such as 0.1 < x ≤ 0.8, excellent, such as x > 0.8. After the system evaluation is completed, the current visual acuity level of the patient will be displayed on the result processing and display interface.
[0033] The displaying of the current visual acuity level of the patient on the result processing and display interface includes: a start guidance session, a carousel acquisition session, and a result processing and display session;
[0034] Through the start guidance session, after displaying the visual acuity test title, provide the patient with three interactive dialog boxes: start test, collect reference signal, and exit program; after any of the above dialog boxes is triggered and clicked by the switch unit, the corresponding function runs, and the carousel interval can be adjusted by the up and down buttons of the switch unit, with three gears of 1000, 2000, and 3000 ms available;
[0035] After triggering the start test on the start guidance interface, the visualization interface jumps to the full-screen carousel display interface, and the pictures of each stimulation paradigm are carousel-displayed at the selected carousel interval. At the same time, the synchronous acquisition work of the collaborative acquisition unit is carried out.
[0036] After completing the above operations, the visualization interface jumps to the result processing and display interface, including the visual acuity test title, visual acuity level classification results and three function buttons: retest, data processing, and exit program; the function buttons can be triggered and clicked by the switch unit in sequence to run the corresponding functions, among which the data processing button is used to trigger the analysis unit to analyze and process the EEG data of the current patient, and obtain the three-classification results of the patient's visual acuity level, which are then displayed in the visual acuity level classification results in the result processing and display interface.
[0037] A system based on the visual acuity assessment method based on EEG signals as described above, comprising:
[0038] The acquisition module is used to automatically rotate the designated stimulation paradigm pictures and collect the EEG signals of the patient when watching the stimulation paradigm pictures in real time;
[0039] A verification module, which performs data interaction with the acquisition module, is used to verify the integrity of the EEG signal and convert the complete EEG signal into corresponding hexadecimal EEG data;
[0040] A processing module performs data interaction with the verification module, and is used to analyze the EEG data, and after restoring the EEG signal, perform preprocessing to obtain a preprocessed signal; then, perform feature extraction on the preprocessed signal to obtain feature values related to visual acuity, and obtain features with a high correlation with visual acuity; and perform cross-validation on the remaining features after screening to weaken the influence of individual differences and environmental factors on the evaluation results;
[0041] The analysis module interacts with the processing module for data, and is used to construct and improve the classification model using the feature values, and use the classification model to evaluate the user's current visual acuity level.
[0042] A visual acuity assessment device, based on the visual acuity assessment method based on EEG signals as described above, comprising:
[0043] A signal collection unit is arranged on the user's head and is used for collecting EEG signals;
[0044] A signal receiving unit, electrically connected to the signal acquisition unit, for reading the EEG signal in real time, converting it into corresponding hexadecimal EEG data, and screening the EEG data to obtain complete EEG data;
[0045] A signal processing unit, electrically connected to the signal receiving unit, for extracting features from the complete EEG data, screening feature values, and then cross-validating the screened feature values;
[0046] A signal analysis unit, which exchanges data with the signal processing unit, constructs and improves a classification model, and then uses the classification model to evaluate the visual acuity of the user and displays the evaluation result in real time;
[0047] The display unit performs data exchange with the signal analysis unit and is used to display the evaluation result to the user.
[0048] The above-mentioned visual acuity assessment device further comprises:
[0049] A switch unit, electrically connected to the signal acquisition unit, and used to control the start of the signal acquisition unit;
[0050] The switch unit is electrically connected to the display unit and is used to send user instructions to the display unit to complete the interaction between the user and the display unit.
[0051] A visual acuity assessment electronic device, comprising:
[0052] Storage medium for storing a computer program,
[0053] The processing unit exchanges data with the storage medium, and is used to execute the computer program through the processing unit to perform the steps of the visual acuity assessment method based on EEG signals when performing visual acuity assessment.
[0054] A computer readable storage medium:
[0055] The computer readable storage medium stores a computer program;
[0056] When the computer program is run, the steps of the visual acuity assessment method based on EEG signals as described above are executed.
[0057] The beneficial effects of this application include at least:
[0058] The visual acuity assessment method based on EEG signals described in the present application automatically rotates the designated stimulation paradigm pictures to collect the EEG signals of the patient watching the stimulation paradigm pictures in real time; then, the integrity of the EEG signals is verified, and the complete EEG signals are converted into corresponding hexadecimal EEG data; the EEG data is then parsed, and after restoring the EEG signals, preprocessing is performed to obtain the preprocessed signals; finally, the preprocessed signals are feature extracted to obtain the characteristic values related to visual acuity, and the features with high correlation with visual acuity are obtained; and the remaining features after screening are cross-validated to weaken the influence of individual differences and environmental factors on the assessment results; finally, the characteristic values are used to construct and improve the classification model, and the classification model is used to assess the patient's current visual acuity level. The method described in the present application can effectively assess the patient's visual acuity and quickly give the test results. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 is a flow chart of the evaluation method described in this application;
[0060] Figure 2 yes Figure 1 Flow chart of effective EEG signal acquisition in the evaluation method described in;
[0061] Figure 3 yes Figure 1 A flowchart of the classification model construction in the evaluation method described in;
[0062] Figure 4 is a block diagram of the evaluation system described in the present application;
[0063] Figure 5 It is a schematic diagram of the structure of the device described in this application;
[0064] Figure 6 yes Figure 5 A working diagram of the device;
[0065] Figure 7 yes Figure 5 A schematic diagram of the guidance interface of the device. DETAILED DESCRIPTION
[0066] The present application is further described below in conjunction with the accompanying drawings.
[0067] Specific embodiment 1:
[0068] This application also provides an embodiment:
[0069] like Figure 1, a visual acuity assessment method based on EEG signals, comprising: automatically rotating designated stimulation paradigm pictures, and collecting EEG signals of patients watching stimulation paradigm pictures in real time; verifying the integrity of the EEG signals, and converting the complete EEG signals into corresponding hexadecimal EEG data; parsing the EEG data, and after restoring the EEG signals, preprocessing to obtain preprocessed signals; finally, extracting features from the preprocessed signals, obtaining feature values related to visual acuity, and obtaining features with high correlation with visual acuity; and cross-validating the remaining features after screening to weaken the influence of individual differences and environmental factors on the assessment results; using the feature values to construct and improve the classification model, and using the classification model to assess the patient's current visual acuity level.
[0070] Specifically, the integrity verification of the EEG signal and converting the complete EEG signal into corresponding hexadecimal EEG data includes: reading the received EEG signal in real time; verifying the integrity of the reference EEG signal and the EEG signal under stimulation of the stimulation paradigm picture, removing abnormal EEG signals with wrong sequence or incompleteness, and obtaining the completed EEG signal after screening; converting the complete EEG signal after screening into corresponding hexadecimal data, and packaging it into a data file for storage.
[0071] Specifically, Figure 2 , after restoring the EEG signal, preprocessing is performed to obtain the preprocessed signal, including: subdividing the EEG signal F0 into two parts: a reference EEG signal B1 and an EEG signal B2 stimulated by a stimulation paradigm picture; segmenting the reference EEG signal B1 and the EEG signal B2 stimulated by a stimulation paradigm picture based on time, and performing bandpass filtering to retain only valid signals in the 4-40 Hz frequency band;
[0072] Obtain the mean value A of the reference EEG signal B1, and obtain the EEG signal F1 after simply removing the environmental noise, F1 = B2 / A;
[0073] The EEG signal F1 is converted according to the constraints of the VMD algorithm and st∑ k u k =f to decompose; where u k ={u1,u2,...,u k} are the modal functions, ω k ={ω1,ω2,...,ω k} is the center frequency of each mode. t is time, j is a complex number, δ(t) is the pulse function; Perform K update iterations, where
[0074] Until the constraints are met After that, k finite bandwidth intrinsic mode functions are decomposed from the EEG signal F1, which are defined as Remove the remaining residual signal, re-superimpose k finite bandwidth intrinsic mode functions, and obtain the effective EEG signal F; where λ is the Lagrange multiplier, α is the penalty parameter, and γ represents the noise tolerance. k ={ω1,ω2,...,ω k} is any value of the modal center frequency, is st∑ related to ω at each update iteration k u k = the current value of f, When u is updated for n+1 iterations k The current value of (ω); is the current value of λ(ω) at n+1 update iterations; A is the phase function of t (time) at the kth update iteration; k (t) is the difference between In addition, from u k (t) is decomposed into a function about t, where ε represents a very small number, close to 0;
[0075] Then, if Figure 3 According to the EEG data file, the EEG signal F0 is analyzed and restored; the EEG signal under the stimulation of the stimulation paradigm picture is preprocessed by using the reference EEG signal to obtain an effective EEG signal F; the effective EEG signal F is superimposed to obtain an ERP EEG signal E0; the characteristic of the ERP signal and the EEG signal E0 are used to extract the characteristic vector V of each feature i ; Use Pearson test to screen out features with high correlation with visual acuity D i ; Feature D with high correlation to visual acuity i The characteristic vector VD i Perform 5-fold cross validation to weaken the impact of individual differences and environmental factors on the evaluation results and obtain the feature vector S i ; and using the eigenvector S i Build the LightGBM classification model.
[0076] The method of using the feature vector Si to construct the LightGBM classification model includes: converting the continuous floating-point feature vector S after cross-validation iDiscretize into i integers, and construct a histogram with a width of i; use the discretized values as indexes to accumulate statistics in the histogram; according to the discrete values of the histogram, use a leaf-growth decision tree algorithm with a depth limit to find a leaf with the largest split gain from all current leaves, continue splitting and traversing, find the optimal segmentation point as the basis for classification, and build a LightGBM classification model; after the LightGBM classification model is built, the patient's visual acuity level can be divided into three categories using model analysis: poor, good, and excellent, where poor means that the patient's visual acuity is less than or equal to 0.1, good means that the patient's visual acuity is greater than 0.1 and less than or equal to 0.8, and excellent means that the patient's visual acuity is greater than 0.8. After the system evaluation is completed, the patient's current visual acuity level will be displayed in the result processing and display interface, and the patient can view the test results through a head-mounted virtual reality display device.
[0077] The method described in this embodiment is based on a lightweight design of EEG signals, can effectively evaluate the patient's visual acuity level, can weaken the impact of individual differences and external environmental factors on the evaluation results, and has the advantages of high accuracy and low algorithm calculation complexity.
[0078] Specific embodiment II:
[0079] This application also provides an embodiment:
[0080] like Figure 4 A system based on the method for visual acuity assessment based on EEG signals in specific embodiment I comprises: an acquisition module 100, a verification module 200, a processing module 300, and an analysis module 400; wherein the acquisition module 100 is used to automatically rotate the designated stimulation paradigm pictures and collect the EEG signals of the patient under the stimulation paradigm pictures in real time; the verification module 200 interacts with the acquisition module 100 to verify the integrity of the EEG signals and convert the complete EEG signals into corresponding hexadecimal EEG data; the processing module 300 interacts with the verification module 200 to verify the integrity of the EEG signals and convert the complete EEG signals into corresponding hexadecimal EEG data; The data interaction is used to analyze the EEG data, and after restoring the EEG signal, preprocessing is performed to obtain the preprocessed signal; then, feature extraction is performed on the preprocessed signal to obtain the feature value related to visual acuity, and the feature with a high correlation with visual acuity is obtained; and the remaining features after screening are cross-validated to weaken the influence of individual differences and environmental factors on the evaluation results; the analysis module 400 interacts with the processing module 300 for constructing and improving the classification model using the feature value, and using the classification model to evaluate the user's current visual acuity level.
[0081] Specific embodiment III:
[0082] This application also provides an embodiment:
[0083] In order to implement the system as described in Specific Embodiment II, the present application provides a visual acuity assessment device, such as Figure 5 , including: a signal acquisition unit 1, a signal receiving unit 2, a signal processing unit 3, a signal analysis unit 4, a display unit 7 and a switch unit 6; wherein the display unit 7 can be a head-mounted virtual reality device; the signal acquisition unit 1 is arranged on the user's head for collecting EEG signals; the switch unit 6 is electrically connected to the signal acquisition unit 1 for controlling the opening of the signal acquisition unit 1; the signal receiving unit 2 is electrically connected to the signal acquisition unit 1 for real-time reading of the EEG signal, converting it into corresponding hexadecimal EEG data, and filtering the EEG data to obtain complete EEG data; the signal processing unit 3 is electrically connected to the signal receiving unit 2 for feature extraction of the complete EEG data, filtering feature values, and then cross-validating the filtered feature values; the signal analysis unit 4 interacts with the signal processing unit 3 for data, constructs and improves the classification model, and then uses the classification model to evaluate the user's visual acuity and display the evaluation results in real time; the display unit 7 interacts with the signal analysis unit 4 for displaying the evaluation results to the user. This embodiment also includes a power supply unit 5 which is electrically connected to a circuit board carrying the signal acquisition unit 1 , the signal receiving unit 2 , the signal processing unit 3 , and the signal analysis unit 4 .
[0084] The use process of the device described in this embodiment is as follows: Figure 6 :
[0085] S1, signal acquisition unit 1 collects EEG signals. According to the duration requirements of the stimulation paradigm pictures, design a visualization program, such as Figure 7 , using the Raspberry Pi development board and the head-mounted virtual reality display device to realize the automatic rotation of the designated stimulation paradigm pictures, and display them in the head-mounted virtual reality display device for the patient to watch; at the same time, using the single-electrode EEG acquisition device to collect the EEG signals of the patient watching the stimulation paradigm pictures in real time and transmit them to the signal receiving unit 2;
[0086] S2, the signal receiving unit 2 first reads the collected EEG signal in real time, then verifies the integrity of the read EEG signal, removes incomplete or abnormal EEG data distorted due to poor transmission environment, then converts the complete EEG signal into corresponding hexadecimal data, packages and saves the data, and transmits the effectively saved EEG data to the signal processing unit 3;
[0087] S3, the signal processing unit 3 first analyzes the received EEG data, restores the EEG signal, and then preprocesses the signal to retain the signal in the effective frequency band, processes the background noise signal, and removes some irrelevant signals; then, the preprocessed signal is subjected to feature extraction, and the eigenvalues related to visual acuity are extracted, and the features with high correlation with visual acuity are screened out using the Pearson test; the remaining features after screening are cross-validated to weaken the influence of individual differences and environmental factors on the evaluation results; finally, the signal analysis unit 4 uses the eigenvalues to construct and improve the classification model, and uses the classification model to evaluate the patient's current visual acuity level.
[0088] The step S1 specifically includes:
[0089] S1-1. Start the Raspberry Pi development board, head-mounted virtual reality display device and single-electrode EEG acquisition device;
[0090] S1-2, the patient views the start guidance interface of the visualization program through a head-mounted virtual reality display device;
[0091] S1-3, the patient presses the key switch for collecting reference signals, and the guidance interface switches to a black screen;
[0092] S1-4, the patient closes his eyes;
[0093] S1-5, using a single-electrode EEG acquisition device to collect 6 seconds of EEG signals from the patient with eyes closed as a reference EEG signal;
[0094] S1-6, after 6 seconds, return to the start guidance interface and the patient opens his eyes;
[0095] S1-7, the patient presses the start test button switch, switches to the picture carousel interface, and the test begins;
[0096] S1-8, under the control of the Raspberry Pi development board playback program, the patient watches a stimulus paradigm picture being played through a head-mounted virtual reality display device;
[0097] S1-9, while the patient is viewing the stimulation paradigm picture, the EEG signal of the patient viewing the stimulation paradigm picture is collected by a single-electrode EEG acquisition device;
[0098] S1-10, under the control of the Raspberry Pi development board playback program, after the playback time of the previous stimulus paradigm picture ends, it will automatically switch to the next stimulus paradigm picture;
[0099] S1-11, judging whether all the stimulation paradigm pictures have been played, if so, proceeding to the next step, otherwise, returning to step S1-7, and continuing to play the stimulation paradigm pictures until all the stimulation paradigm pictures have been played;
[0100] S1-12, after completing the stimulation paradigm carousel, the visualization program switches to the result processing and display interface;
[0101] S1-13, click the data processing button to send the collected reference EEG signal, the EEG signal under the stimulation of the stimulation paradigm picture, the display order of the stimulation paradigm picture and the display duration of each stimulation paradigm picture to the signal receiving unit 2;
[0102] The step S2 specifically includes:
[0103] S2-1, the signal receiving unit 2 reads the received EEG signal in real time;
[0104] S2-2, the signal receiving unit 2 verifies the integrity of the reference EEG signal and the EEG signal under the stimulation of the stimulation paradigm picture, removes abnormal EEG signals with wrong sequence or incompleteness, and pops up an abnormal prompt;
[0105] S2-3, converting the complete brain wave signal after screening into corresponding hexadecimal data, and packaging it into a data file for storage;
[0106] S2-4, sending the saved EEG data to the signal processing unit 3;
[0107] The step S3 specifically includes:
[0108] S3-1, the signal processing unit 3 receives the EEG data file from the signal receiving unit 2, and parses and restores the EEG signal F0;
[0109] S3-2, the signal processing unit 3 uses the reference EEG signal to preprocess the EEG signal under the stimulation of the stimulation paradigm picture to obtain an effective EEG signal F;
[0110] S3-3, the signal processing unit 3 superimposes the effective EEG signal F to obtain an ERP EEG signal E0;
[0111] S3-4, the signal processing unit 3 uses the characteristics of the ERP signal and the EEG signal E0 to extract the feature vector V of each feature i ;
[0112] S3-5, signal processing unit 3 uses Pearson test to screen out features Di with high correlation with visual acuity;
[0113] S3-6, signal processing unit 3 will be highly correlated with visual acuity feature D i The characteristic vector VD i Perform 5-fold cross validation to weaken the impact of individual differences and environmental factors on the evaluation results and obtain the feature vector S i ;
[0114] S3-7, the signal analysis unit 4 uses the feature vector S i Build a LightGBM classification model;
[0115] S3-8. Continuously improve the LightGBM classification model by adding real EEG data training;
[0116] S3-9. Use the trained LightGBM classification model to assess the patient’s current visual acuity level and display the results.
[0117] It should be clarified that in step S3-2, the specific steps of signal preprocessing refer to specific embodiment I.
[0118] The device described in this embodiment uses an embedded development board with higher performance and smaller size as a hardware carrier, and can also produce a user interface system that is easier to operate as needed, thereby reducing the cost of use for patients; and uses new denoising algorithms and classification algorithms to improve the accuracy of visual acuity assessment.
[0119] This application also provides an embodiment:
[0120] A visual acuity assessment electronic device comprises: a storage medium and a processing unit; wherein the storage medium is used to store a computer program, and the processing unit exchanges data with the storage medium, and is used to execute the computer program through the processing unit when performing visual acuity assessment, and perform the steps of the visual acuity assessment method as described in specific embodiment I.
[0121] A computer-readable storage medium having a computer program stored therein; when the computer program is run, the steps of the visual acuity assessment method described in Specific Embodiment 1 are executed.
[0122] In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0123] The above disclosures are only several specific implementation scenarios of the present application, but the present application is not limited thereto, and any changes that can be thought of by a person skilled in the art should fall within the protection scope of the present application. The above application numbers are only for description and do not represent the advantages and disadvantages of the implementation scenarios.
Claims
1. A method for evaluating visual acuity based on electroencephalogram signals, characterized in that: include: Automatically rotate the designated stimulation paradigm pictures and collect the EEG signals of the patient when watching the stimulation paradigm pictures in real time; Verifying the integrity of the EEG signal and converting the complete EEG signal into corresponding hexadecimal EEG data; The EEG data is analyzed, and after restoring the EEG signal, preprocessing is performed to obtain a preprocessed signal; then, feature extraction is performed on the preprocessed signal to obtain feature values related to visual acuity, and features with a high correlation with visual acuity are obtained; The remaining features after screening are cross-validated to weaken the impact of individual differences and environmental factors on the evaluation results; The feature values are used to build and improve the classification model, and the classification model is used to assess the patient's current visual acuity level.
2. The method for evaluating visual acuity based on electroencephalogram signals according to claim 1, characterized in that: After restoring the EEG signal, preprocessing is performed to obtain the preprocessed signal, including: The EEG signal F0 is subdivided into two parts: the reference EEG signal B1 and the EEG signal B2 under the stimulation of the stimulation paradigm picture; The reference EEG signal B1 and the EEG signal B2 stimulated by the stimulation paradigm picture are segmented based on time, and band-pass filtered to retain only the effective signal in the 4-40 Hz frequency band; Obtain the mean value A of the reference EEG signal B1 to obtain the EEG signal F1 with simple environmental noise removed; The EEG signal F1 is converted according to the constraints of the VMD algorithm and st∑ k u k =f to decompose; u k ={u1,u2,...,u k } is the modal function, ω k ={ω1,ω2,...,ω k } is the modal center frequency; t is time, j is a complex number, δ(t) is the impulse function; pass Perform K update iterations, where Until the constraints are met After that, k finite bandwidth intrinsic mode functions are decomposed from the EEG signal F1, which are defined as Where γ represents the noise tolerance; α is the penalty parameter; ω is k ={ω1,ω2,...,ω k } is any value of the modal center frequency, is st∑ related to ω at each update iteration k u k = the current value of f, When u is updated for n+1 iterations k The current value of (ω); is the current value of λ(ω) at n+1 update iterations; A is the phase function of time t at the kth update iteration; k (t) is the difference between In addition, from u k (t) is decomposed into a function about t, ε is a number close to 0; λ is the Lagrange multiplier; The remaining residual signal is removed and the k finite bandwidth intrinsic mode functions are re-superimposed to obtain the effective EEG signal F.
3. The method for evaluating visual acuity based on electroencephalogram signals according to claim 1, characterized in that: The EEG data is analyzed, and after restoring the EEG signal, preprocessing is performed to obtain a preprocessed signal; then, feature extraction is performed on the preprocessed signal to obtain feature values related to visual acuity, and features with a high correlation with visual acuity are obtained; The remaining features after screening are cross-validated to weaken the impact of individual differences and environmental factors on the evaluation results, including: According to the EEG data file, analyze and restore the EEG signal F0; Using the reference EEG signal to preprocess the EEG signal under the stimulation of the stimulation paradigm picture, and obtain the effective EEG signal F; Superimposing the effective EEG signal F to obtain an ERP EEG signal E0; Using the characteristics of the ERP signal and the EEG signal E0, the feature vector V of each feature is extracted i ; Using the Pearson test, we screen out features D that are highly correlated with visual acuity. i ; The feature D with higher correlation with visual acuity i The characteristic vector VD i Perform 5-fold cross validation to weaken the influence of individual differences and environmental factors on the evaluation results and obtain the feature vector Si; And using the eigenvector S i A LightGBM classification model was constructed and used to classify the visual acuity levels of different patients.
4. The method for evaluating visual acuity based on electroencephalogram signals according to claim 3, characterized in that: The use of the feature vector S i Construct a LightGBM classification model and use it to classify the visual acuity levels of different patients, including: The continuous floating-point feature vector S after cross validation i Discretize into i integers and construct a histogram with a width of i; Accumulate statistics in a histogram using the discretized values as indices; According to the discrete value of the histogram, a leaf-growing decision tree algorithm with limited depth is used to find a leaf with the largest splitting gain from all the current leaves, and then continue to split and traverse to find the optimal segmentation point as the classification basis to build a LightGBM classification model; After obtaining the LightGBM classification model, the model analysis is used to obtain the current patient's visual acuity level value, and the patient's visual acuity level is classified. After the system evaluation is completed, the patient's current visual acuity level will be displayed in the result processing and display interface.
5. The method for evaluating visual acuity based on electroencephalogram signals according to claim 4, characterized in that: The display of the patient's current visual acuity level in the result processing and display interface includes: a start guidance link, a carousel collection link, and a result processing and display link; After the visual acuity test title is displayed through the start guidance link, the patient is provided with three interactive dialog boxes: starting the test, collecting reference signals, and exiting the program; when any of the above dialog boxes is triggered and clicked, the corresponding function is run; After the test is triggered in the start-up guide phase, the carousel acquisition phase is entered, and the full-screen carousel display interface is displayed. Each stimulation paradigm image is rotated according to the selected carousel interval, and EEG signals are collected synchronously; the carousel interval is adjusted according to the situation; In the result processing and display stage, three interactive dialog boxes are provided for patients: retest, data processing, and exit program. When any of the above dialog boxes is triggered and clicked, the corresponding function is run. The data processing button is used to analyze and process the EEG data of the current patient and obtain the classification result of the patient's visual acuity level. At the same time, the visual acuity level classification result is displayed to the patient.
6. A system based on the method for evaluating visual acuity based on EEG signals as claimed in claims 1 to 5, characterized in that: include: The acquisition module is used to automatically rotate the designated stimulation paradigm pictures and collect the EEG signals of the patient when watching the stimulation paradigm pictures in real time; A verification module, which performs data interaction with the acquisition module, is used to verify the integrity of the EEG signal and convert the complete EEG signal into corresponding hexadecimal EEG data; A processing module performs data interaction with the verification module, and is used to analyze the EEG data, and after restoring the EEG signal, perform preprocessing to obtain a preprocessed signal; then, perform feature extraction on the preprocessed signal to obtain a feature value related to visual acuity, and obtain a feature with a high correlation with visual acuity; The remaining features after screening are cross-validated to weaken the impact of individual differences and environmental factors on the evaluation results; The analysis module interacts with the processing module for data, and is used to construct and improve the classification model using the feature values, and use the classification model to evaluate the user's current visual acuity level.
7. A visual acuity assessment device, based on the visual acuity assessment method based on EEG signals as claimed in any one of claims 1 to 5, characterized in that: include: A signal collection unit is arranged on the user's head and is used for collecting EEG signals; A signal receiving unit, electrically connected to the signal acquisition unit, for reading the EEG signal in real time, converting it into corresponding hexadecimal EEG data, and screening the EEG data to obtain complete EEG data; A signal processing unit, electrically connected to the signal receiving unit, for extracting features from the complete EEG data, screening feature values, and then cross-validating the screened feature values; A signal analysis unit, which exchanges data with the signal processing unit, constructs and improves a classification model, and then uses the classification model to evaluate the visual acuity of the user and displays the evaluation result in real time; The display unit performs data exchange with the signal analysis unit and is used to display the evaluation result to the user.
8. The visual acuity assessment device according to claim 7, characterized in that: Also includes: A switch unit, electrically connected to the signal acquisition unit, and used to control the start of the signal acquisition unit; The switch unit is electrically connected to the display unit and is used to send user instructions to the display unit to complete the interaction between the user and the display unit.
9. An electronic device for assessing visual acuity, characterized in that: include: Storage medium for storing a computer program, A processing unit exchanges data with the storage medium, and is used to execute the computer program through the processing unit when performing visual acuity assessment to perform the steps of the visual acuity assessment method based on EEG signals as described in any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that: The computer readable storage medium stores a computer program; When the computer program is run, it executes the steps of the method for evaluating visual acuity based on EEG signals as described in any one of claims 1 to 5.
Citation Information
Cited By
Portable detection equipment and detection method applied to visual acuity identification
CN120052804A
