Detection method and related equipment for visual events of psychological assessment based on EEG signals

By extracting the difference signal and characteristic signal of the brain wave time series signal, performing feature fusion, and constructing a visual event classification model, it solves the problem of difficulty in distinguishing the difference in the state of the brain wave signal in the existing technology, and improves the accuracy and accuracy of brain wave signal detection. Robustness.

CN118576227BActive Publication Date: 2024-10-15XIAOZHOU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411074636.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-10-15
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

Existing EEG feature extraction methods are difficult to accurately characterize the difference in EEG signals between rational and intuitive thinking states. They lack targeted optimization and cannot effectively distinguish the feature transformation trends in stable and excited states.

Method used

By acquiring brainwave time series signals, calculating difference signals, extracting stationary signal sets and characteristic signal sets, performing feature fusion, and building a visual event classification model, we can achieve feature extraction and detection under different cognitive states.

Benefits of technology

It achieves differential modeling of stable and excited state EEG signals, improves the accuracy and robustness of visual event detection, reduces computing costs and equipment requirements, and has a wider application range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118576227B_ABST
    Figure CN118576227B_ABST
Patent Text Reader

Abstract

The present application discloses a method for detecting visual events of psychological assessment based on electroencephalogram signals and related equipment, which comprises the following steps: forming an original electroencephalogram time series signal according to the electroencephalogram image of the user; obtaining first reference feature signals of adjacent electroencephalogram images in the original electroencephalogram time series signal, obtaining second reference feature signals corresponding to the adjacent first reference feature signals and third reference feature signals corresponding to the adjacent second reference feature signals; calculating first differences and second differences at the same moment to extract a first stationary signal set and a second stationary signal set; removing the first stationary signal set and the second stationary signal set from the original electroencephalogram time series signal to obtain a first feature signal set and a second feature signal set; performing feature fusion on the first stationary signal set, the second stationary signal set, the first feature signal set and the second feature signal set to obtain a composite feature sample for training a visual event classification model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of brain-computer interface technology, and in particular to a detection method and related equipment for psychological assessment of visual events based on electroencephalogram signals. Background Art

[0002] The source of the complexity and variability of EEG signals lies in the interactive regulation of rational (left brain) and intuitive (right brain) thinking in the human brain. Under rational thinking, the EEG activity of the subjects tends to be more stable; under the influence of intuitive thinking, EEG signals are prone to violent fluctuations. If the same time window is used to extract the EEG features of the subjects in the stable state and the excited state, it is difficult to accurately characterize these two very different states. Therefore, it is crucial to set a function that can match the change rate of different states.

[0003] There are also attempts to use adaptive filtering or wavelet transform to extract the time-frequency features of ERP, but most of them still use a unified strategy to process the entire signal and cannot distinguish the trend of feature transformation in different intervals. Designing time windows based on comprehensive indicators such as mean or variance is difficult to reflect the subtle differences in the EEG patterns of individual subjects in specific cognitive tasks.

[0004] In general, existing EEG feature extraction methods lack modeling of the differences between steady-state and excited-state EEG signals, and do not achieve targeted optimization of feature extraction strategies. Summary of the invention

[0005] The embodiments of the present application provide a method and related equipment for detecting visual events for psychological assessment based on EEG signals, which can solve the problem that existing EEG feature extraction methods lack differential modeling of EEG signals in stable state and excited state, and fail to achieve targeted optimization of feature extraction strategies.

[0006] In a first aspect, an embodiment of the present application provides a method for detecting visual events for psychological assessment based on EEG signals, comprising:

[0007] Acquire the user's brain wave images at multiple times, and construct an original brain wave time series signal based on the multiple brain wave images;

[0008] Acquire a first reference characteristic signal of each two adjacent brain wave images in the original brain wave time series signal, acquire a second reference characteristic signal corresponding to each two adjacent first reference characteristic signals, and acquire a third reference characteristic signal corresponding to each two adjacent second reference characteristic signals;

[0009] Calculate a first difference between the first reference characteristic signal and the second reference characteristic signal at the same time and a second difference between the second reference characteristic signal and the third reference characteristic signal;

[0010] extracting a first stationary signal set and a second stationary signal set from the original brain wave time series signal according to the first difference and the second difference respectively;

[0011] Removing the first stationary signal set and the second stationary signal set from the original brain wave time series signal to obtain the first characteristic signal set and the second characteristic signal set;

[0012] Performing feature fusion on the first stationary signal set, the second stationary signal set, the first feature signal set, and the second feature signal set to obtain a composite feature sample;

[0013] The training of the visual event classification model to be trained is completed according to the composite feature samples, and the trained visual event classification model detects visual events.

[0014] In a second aspect, the present application further provides a detection device for psychologically evaluating visual events, comprising:

[0015] An image acquisition module is used to acquire the user's brain wave images at multiple times, and to construct an original brain wave time series signal based on the multiple brain wave images;

[0016] A reference acquisition module, used to acquire a first reference characteristic signal of each two adjacent brain wave images in the original brain wave time series signal, acquire a second reference characteristic signal corresponding to each two adjacent first reference characteristic signals, and acquire a third reference characteristic signal corresponding to each two adjacent second reference characteristic signals;

[0017] A difference calculation module, used to calculate a first difference corresponding to the first reference characteristic signal and the second reference characteristic signal and a second difference corresponding to the second reference characteristic signal and the third reference characteristic signal at the same moment;

[0018] A signal extraction module, used to extract a first stationary signal set and a second stationary signal set from the original brain wave time series signal according to the first difference and the second difference respectively;

[0019] A feature acquisition module, used to remove the first stationary signal set and the second stationary signal set from the original brain wave time series signal to obtain a first feature signal set and a second feature signal set;

[0020] A signal fusion module, used for performing feature fusion on the first stationary signal set, the second stationary signal set, the first characteristic signal set and the second characteristic signal set to obtain a composite characteristic sample;

[0021] The training completion module is used to complete the training of the visual event classification model to be trained according to the composite feature samples, and the trained visual event classification model detects visual events.

[0022] In a third aspect, the present application further provides a computer device, comprising a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method for detecting visual events for psychological assessment based on EEG signals as described in the first aspect is implemented.

[0023] In a fourth aspect, the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for detecting visual events for psychological assessment based on EEG signals as described in the first aspect.

[0024] Compared with the prior art, this application has at least the following beneficial effects:

[0025] 1. A strategy of stable-salient fusion modeling is proposed to achieve autonomous optimization and adjustment of feature extraction intervals, which can match the EEG transformation rules under different cognitive states and capture key features under stable and excited states, so that subsequent models based on this strategy can better describe and predict visual events. The adaptive systematic nature of this strategy also has expanded application value for other types of event detection.

[0026] 2. Steady EEG signals assist in salient feature extraction, using the difference between the two states to set individualized time window parameters, avoiding the uncertainty of subjective assumptions and empirical estimates, and making the extraction of visual event-related features more robust. At the same time, stable features are incorporated into classification judgments as new sample attributes, enriching EEG-based behavioral detection and psychological assessment models.

[0027] 3. Compared with the direct source EEG modeling method, the staged modeling using the stationary-salient difference has higher computational efficiency, lower equipment requirements, and a wider range of applications. It has greater potential for reducing computational and usage costs.

[0028] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A flow chart of a method for detecting visual events for psychological assessment based on EEG signals according to an embodiment of the present application;

[0030] Figure 2 This is a schematic diagram of the structure of a detection device for psychological assessment of visual events shown in an embodiment of the present application;

[0031] Figure 3 A schematic diagram of the structure of a computer device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0032] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0033] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0034] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0035] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0036] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0037] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0038] The technical solution of the embodiment of the present application is introduced below.

[0039] With the rapid development of cognitive neuroscience, the acquisition and analysis of EEG signals has become one of the important technical means for psychological and behavioral research. However, due to the complex and changeable characteristics of EEG signals and the large information redundancy, it is crucial to select the appropriate analysis method or model for the extracted features. At present, the psychological assessment methods based on EEG signals mainly focus on the single analysis of the time domain features or frequency domain features of event-related potentials (ERP). This generalized feature extraction strategy of obtaining the entire signal segment through a fixed parameter interval ignores the inherent differences of the signal samples, which affects the subsequent psychological indicator modeling effect.

[0040] The source of the complexity and variability of EEG signals lies in the interactive regulation of rational (left brain) and intuitive (right brain) thinking in the human brain. Under rational thinking, the EEG activity of the subjects tends to be more stable; under the influence of intuitive thinking, EEG signals are prone to violent fluctuations. If the same time window is used to extract the EEG features of the subjects in the stable state and the excited state, it is difficult to accurately characterize these two very different states. Therefore, it is crucial to set a function that can match the change rate of different states.

[0041] At present, some scholars have tried to use adaptive filtering or wavelet transform to extract the time-frequency features of ERP, but most of them still use a unified strategy to process the entire signal and cannot distinguish the trend of feature transformation in different intervals. Designing time windows based on comprehensive indicators such as mean or variance is difficult to reflect the subtle differences in EEG patterns of individual subjects in specific cognitive tasks. In general, the existing methods lack the modeling of the differences between EEG signals in the steady state and the excited state, and have not achieved targeted optimization of feature extraction strategies.

[0042] To solve the above problems, the present invention provides a visual event detection method for extracting optimized features in a stable state. By constructing a dynamic function of a stable interval and an optimized fixed interval of a prominent interval, the problem of insufficient window function design in the current method is solved, adaptive interval adjustment is achieved, and the stable features of EEG signals in a stable state and the prominent features of EEG corresponding to visual events are extracted. Compared with the prior art, this method can distinguish the EEG change patterns under different brain states, and set the optimal expression of prominent features with the assistance of stable features, providing a new idea for the subsequent improvement of psychological assessment based on EEG.

[0043] Among them, visual events refer to external visual stimuli or prompts that cause obvious EEG responses in subjects during a psychological assessment or cognitive task. Typical visual events include movements such as opening eyes, blinking, turning heads, and EEG activation caused by viewing images and text visual content. These visual events cause significant changes in the subjects' EEG patterns. If the same strategy is used to model them as steady-state EEG signals, it is impossible to accurately detect and express the cognitive or emotional changes caused by visual events.

[0044] Please refer to Figure 1, Figure 1 The flowchart of a method for detecting visual events of psychological assessment based on EEG signals provided in an embodiment of the present application is shown in FIG. The method for detecting visual events of psychological assessment based on EEG signals in an embodiment of the present application can be applied to computer devices, including but not limited to smart phones, laptops, tablet computers, desktop computers, physical servers, cloud servers and other devices. Figure 1 As shown, the method for detecting visual events for psychological assessment based on EEG signals in this embodiment includes steps S101 to S107, which are described in detail as follows:

[0045] Step S101, obtaining the user's brain wave images at multiple moments, and constructing an original brain wave time series signal based on the multiple brain wave images.

[0046] Specifically, the original EEG time series signal is formed by collecting EEG images of the user who is the subject at different times (the subject and the user refer to the same object in the whole text). The EEG acquisition device is used to collect the EEG signals of the subjects when performing visual tasks, and convert them into a series of EEG image sequences. Each EEG image reflects the distribution of electrical activity in the brain at a specific time point. The acquisition frequency of the EEG image is set to 500Hz. Let the collected EEG image sequence be represented as {I(t)}, t=1,2,...,N, where t represents the time point and N is the total number of time points.

[0047] In order to construct the original EEG time series signal X(t), each two-dimensional image I(t) needs to be converted into a one-dimensional vector. The specific method is: all elements of each image matrix are expanded and spliced ​​row by row to form a long vector, and then all vectors are arranged in time order to form a matrix X, where the t-th row vector X(t,:) corresponds to the EEG image I(t) at time t. The conversion process can be expressed as: X(t,:) = f(I(t)), where f is the function that maps the image I(t) to a one-dimensional vector. The matrix is ​​straightened, that is, all elements of the image matrix are expanded and spliced ​​row by row into a long vector. In this way, the original two-dimensional EEG image sequence is converted into a one-dimensional time series signal X(t).

[0048] Step S102, obtaining a first reference feature signal of each two adjacent brain wave images in the original brain wave time series signal, obtaining a second reference feature signal corresponding to each two adjacent first reference feature signals, and obtaining a third reference feature signal corresponding to each two adjacent second reference feature signals.

[0049] Specifically, the first energy change between adjacent images is extracted as the first reference feature signal, the energy change between adjacent first reference feature signals is extracted as the second reference feature signal, and the energy change between adjacent second reference feature signals is extracted as the third reference feature signal. At the same time, if the accuracy of subsequent model training is to be improved, the same method can be used to extract the fourth, fifth, ... reference feature signals, and this application does not limit the number of extractions.

[0050] In some embodiments, the obtaining of the first reference characteristic signal of each two adjacent brain wave images in the original brain wave time series signal, the obtaining of the second reference characteristic signal corresponding to each two adjacent first reference characteristic signals, and the obtaining of the third reference characteristic signal corresponding to each two adjacent second reference characteristic signals include: extracting the first energy change corresponding to each two adjacent brain wave images, and using the first energy change as the first reference characteristic signal; extracting the second energy change corresponding to each two adjacent first reference characteristic signals, and using the second energy change as the second reference characteristic signal; extracting the third energy change corresponding to each two adjacent second reference characteristic signals, and using the third energy change as the third reference characteristic signal.

[0051] Next, it is necessary to extract the energy change between adjacent EEG images as the first reference characteristic signal E1(t). The specific calculation formula is: E1(t) = ||X(t,:) - X(t+1,:)||, where ||.|| represents the Frobenius norm of the matrix, that is, the square root of the sum of the squares of all elements. Here, the Euclidean distance is used as the distance measure between images, which can better reflect the degree of difference between the pixel values ​​of the two images. When the two images are exactly the same, the distance is 0, and the greater the difference, the greater the distance. Through the above calculation, the first reference characteristic signal E1(t) is obtained, which reflects the degree of energy change between EEG images at adjacent moments.

[0052] After obtaining the E1(t) sequence, it is necessary to further extract the energy changes between adjacent values ​​in the E1(t) sequence as the second reference feature signal E2(t). The calculation formula is: E2(t) = ||E1(t) - E1(t+1)||, and the Euclidean distance is still used as the distance measurement between adjacent first reference features. The E2(t) sequence can further characterize the change trend of the EEG signal and reflect the change of energy changes at adjacent moments. If the E2(t) value is small, it means that the energy change is relatively stable at adjacent moments; conversely, if the E2(t) value is large, it means that the energy change has violent fluctuations.

[0053] Similar to extracting E2(t), it is also necessary to extract the third reference feature signal E3(t) to measure the energy change between adjacent second reference feature signals E2. The calculation formula is: E3(t) = ||E2(t) - E2(t+1)||, and the Euclidean distance is also used as the metric. The E3(t) sequence reflects the change rate of the subject's EEG energy change, and can further capture the high-order detail features of the EEG signal change.

[0054] It should be noted that in order to eliminate the influence of noise interference, the three sequences E1(t), E2(t) and E3(t) can be smoothed by moving average filtering. The specific method is: for each value in the sequence, the arithmetic mean of several adjacent values ​​before and after it is replaced. The window size of the moving average can be set according to actual needs, usually 5 to 11 points. The smoothed E1'(t), E2'(t) and E3'(t) sequences replace the original sequences and participate in subsequent calculations.

[0055] Step S103, calculating a first difference between the first reference characteristic signal and the second reference characteristic signal at the same time and a second difference between the second reference characteristic signal and the third reference characteristic signal.

[0056] Specifically, the first difference signal D1(t) is calculated, which reflects the degree of difference between the first reference characteristic signal E1(t) and the second reference characteristic signal E2(t). The absolute difference is used as the difference metric. The specific calculation formula is: D1(t)=|E1(t)-E2(t)|. Here, |.| represents the absolute value symbol. When the absolute difference between E1(t) and E2(t) is larger, it means that the deviation between the first reference characteristic signal E1 and the second reference characteristic signal E2 at the time t is larger, reflecting a larger signal fluctuation; on the contrary, when the absolute difference is smaller, it means that the two reference characteristic signals are relatively close at the time, and the signal fluctuation is relatively gentle.

[0057] Secondly, the second difference signal D2(t) is calculated to reflect the difference between the second reference characteristic signal E2(t) and the third reference characteristic signal E3(t). The calculation formula is: D2(t)=|E2(t)-E3(t)|, and the absolute difference is also used as the difference metric. A larger D2(t) value indicates that E2(t) and E3(t) are very different at this moment, indicating that the signal has changed dramatically at this moment; a smaller D2(t) value means that the signal is relatively stable. Since the E3(t) sequence reflects the change in the rate of change of energy change, D2(t) can further capture the changes in the high-order instantaneous characteristics of the signal. Its corresponding physical meaning is the change in the second-order derivative of the signal, which can more sensitively detect the mutation point of the signal.

[0058] To help understand the calculation process of this step, the following specific numerical example is given: Assuming that the three reference feature sequences E1, E2 and E3 are obtained in the above steps, at the time point t=100, the values ​​of the three sequences are E1(100)=2.5, E2(100)=1.8, E3(100)=3.2, then it can be calculated according to the formula: D1(100)=|E1(100)-E2(100)|=|2.5-1.8|=0.7, D2(100)=|E2(100)-E3(100)|=|1.8-3.2|=1.4. It can be seen that at the moment t=100, the D1 value is small and the D2 value is large, indicating that there is a large deviation between the energy change of the EEG signal and the rate of change of energy change, and the change in the second-order derivative of the signal at this moment is also large, which may be due to the sudden stimulation of visual events. It is necessary to focus on analyzing and processing the signal fragments near this moment in subsequent steps.

[0059] For the two difference signal sequences D1(t) and D2(t) obtained by calculation, in order to reduce the influence of noise, it is necessary to perform smoothing processing such as moving average filtering. Specifically, moving average filtering is used, and its smoothing principle is to replace the value with the arithmetic mean of several adjacent values ​​before and after each value in the sequence. Assuming the smoothing window size is L (L is a positive odd number), the calculation formulas for smoothed D1'(t) and D2'(t) are as follows:

[0060] D1'(t) = (1 / L)*Σ(i=tL / 2 to t+L / 2)D1(i) D2'(t) = (1 / L)*Σ(i=tL / 2 to t+L / 2)D2(i)

[0061] Where Σ represents the summation symbol. In the above formula, L / 2 takes the integer part, and the window size L usually takes a small odd value such as 5, 7 or 9. The specific value needs to be optimized based on the statistical characteristics of the actual data. Through smoothing, the high-frequency noise components in the D1(t) and D2(t) sequences can be effectively reduced to obtain a smoother difference signal sequence.

[0062] After the above calculation and smoothing steps, we finally obtained two smoothed difference signals D1'(t) and D2'(t), which respectively reflect the degree of difference between the EEG signal and its first-order and second-order derivatives. Generally speaking, if D1'(t) and D2'(t) take large values ​​at the same time, it means that the EEG signal has experienced drastic fluctuations at that moment, which may correspond to the prominent response stimulated by the visual event; on the contrary, if the two difference signals take small values ​​at the same time, it means that the signal is relatively stable at that moment, which may correspond to the baseline state of the subject.

[0063] Step S104, extracting a first stationary signal set and a second stationary signal set from the original brain wave time series signal according to the first difference and the second difference respectively.

[0064] Specifically, the above differences are compared to determine the first stable interval and the second stable interval of the EEG signal; and the EEG images within the stable interval are extracted as the first stable signal set and the second stable signal set.

[0065] In some embodiments, the extracting of a first stationary signal set and a second stationary signal set from the original brain wave time series signal respectively according to the first difference and the second difference includes: obtaining a first stationary interval corresponding to the first difference; obtaining a second stationary interval corresponding to the second difference; extracting a first stationary signal set from the original brain wave time series signal according to the first stationary interval; extracting a second stationary signal set from the original brain wave time series signal according to the second stationary interval.

[0066] First, two thresholds θ1 and θ2 are set to judge the size of the D1'(t) and D2'(t) sequence values, so as to distinguish the steady state from the excited state. When D1'(t)<θ1 and D2'(t)<θ2, the signal corresponding to the moment t is considered to be in a steady state; conversely, when D1'(t)≥θ1 or D2'(t)≥θ2, the signal corresponding to the moment is considered to be in an excited state. The setting of thresholds θ1 and θ2 needs to be optimized in combination with the statistical characteristics of the actual data. Usually, the mean of the D1'(t) and D2'(t) sequences plus a certain multiple of the standard deviation can be taken as the initial threshold, and then fine-tuned according to the classification effect.

[0067] Secondly, based on the above threshold judgment, the original EEG signal is segmented. The specific method is: starting from the starting point of the time series, each moment t is scanned sequentially. If multiple consecutive moments simultaneously satisfy D1'(t)<θ1 and D2'(t)<θ2, the signal segments corresponding to these moments are determined as stable intervals; conversely, if there is any moment D1'(t)≥θ1 or D2'(t)≥θ2, the signal segments corresponding to these moments are determined as prominent intervals. In this way, the entire time series can be divided into several non-overlapping stable intervals and prominent intervals. It should be noted that in order to avoid excessive subdivision, the minimum duration of the stable interval and the prominent interval can be set in actual operation, such as 10 time points, and the small intervals below this duration can be merged into the adjacent larger interval.

[0068] Next, from all the stationary intervals determined in the previous step, the corresponding EEG image sequences are extracted respectively to construct the first stationary signal set R1 and the second stationary signal set R2. The specific method is: for each stationary interval [t_start, t_end], a subsequence X(t_start:t_end) is extracted from the original EEG time series X(t), and the two-dimensional image sequence {I(t)}, t=t_start,...,t_end corresponding to the subsequence X(t_start:t_end) is spliced ​​together as an element in R1 or R2. In this way, two stationary signal sets R1 and R2 can be obtained, which contain the EEG image sequences corresponding to the subjects in the rational thinking state and intuitive thinking state in the visual task, respectively.

[0069] To help understand the implementation process of this step, the following specific example is given: Assuming that two smoothed difference signal sequences D1'(t) and D2'(t) are obtained in the above steps, after statistical analysis, 1.5 times the mean of the D1'(t) sequence is taken as the threshold θ1=1.2, and 2 times the mean of the D2'(t) sequence is taken as the threshold θ2=0.8. Starting from the time point t=1, the values ​​of D1'(t) and D2'(t) are scanned in sequence. If multiple consecutive moments simultaneously meet D1'(t)<1.2 and D2'(t)<0.8, the signal segments corresponding to these moments are determined as stable intervals, otherwise they are determined as prominent intervals. Assume that after scanning, in the time periods [50,150] and [200,300], D1'(t) and D2'(t) both continuously meet the threshold conditions, then the signal segments X(50:150) and X(200:300) corresponding to these two time periods are determined as stationary intervals, and their corresponding two-dimensional image sequences {I(t)}, t=50,...,150 and {I(t)}, t=200,...,300 are extracted as two elements in R1 and R2 respectively.

[0070] Through the above segmentation and extraction process, the original EEG signal is successfully divided into stable intervals and prominent intervals, and the first stable signal set R1 and the second stable signal set R2 are extracted from the stable intervals. These two stable signal sets reflect the EEG patterns of the subjects in different cognitive states. R1 corresponds to the EEG image sequence of rational thinking, and R2 corresponds to the EEG image sequence of intuitive thinking. At the same time, the signal fragments corresponding to the remaining prominent intervals may contain prominent response features stimulated by visual events.

[0071] Step S105, removing the first stationary signal set and the second stationary signal set from the original brain wave time series signal to obtain the first characteristic signal set and the second characteristic signal set.

[0072] Specifically, in the above steps, X(t) has been divided into several stable intervals and prominent intervals, and the first stable signal set R1 and the second stable signal set R2 are extracted from the stable intervals. Now it is necessary to extract the corresponding first characteristic signal set T1 and the second characteristic signal set T2 from the remaining prominent intervals, which reflect the EEG prominent response of the subjects to the visual events in the rational thinking and intuitive thinking states in the visual task.

[0073] In order to obtain T1 and T2, the following steps can be used: First, review the segmentation results in the above steps, locate the start and end time points of all prominent intervals from X(t), and record them as {[t1_start, t1_end], [t2_start, t2_end], ..., [tM_start, tM_end]}. Where M is the total number of prominent intervals. Then, for each prominent interval, extract the corresponding signal segment from X(t) and construct the elements in T1 and T2 respectively. The specific method is: for the i-th prominent interval [ti_start, ti_end], extract the X(ti_start: ti_end) subsequence, and use its corresponding two-dimensional image sequence {I(t)}, t=ti_start, ..., ti_end as a new element in T1 or T2. To determine which category (rational thinking or intuitive thinking state) the prominent interval belongs to, it can be determined based on the segmentation thresholds θ1 and θ2 and the values ​​of the difference signals D1'(t) and D2'(t). If there is any time t in [ti_start, ti_end] such that D1'(t) ≥ θ1, then the signal segment corresponding to this interval is added to T1; otherwise, if there is any time t such that D2'(t) ≥ θ2, then this signal segment is added to T2. In this way, the signal segments corresponding to all prominent intervals can be successfully divided into T1 and T2.

[0074] It should be noted that in order to obtain more robust T1 and T2 sets, in actual operation, the start and end time points of each prominent interval can be appropriately extended, that is, a few time points can be extended to both sides based on [ti_start, ti_end]. This ensures that the prominent response is fully included and key information is not lost due to boundary truncation. The extended time length can be set according to actual conditions, usually 5 to 20 time points. In addition, to avoid over-subdivision, a minimum duration threshold of the prominent interval can be set. If the small interval is lower than the threshold (such as 10 time points), it will be eliminated or merged into the adjacent larger interval.

[0075] Assume that after the above processing, two sets T1={S11,S12,...,S1P} and T2={S21,S22,...,S2Q} are finally obtained, where P and Q are the number of elements (i.e., image sequences) in T1 and T2 respectively. It can be seen that the elements in T1 correspond to the prominent EEG responses of the subjects to visual events in the rational thinking state, while the elements in T2 correspond to the prominent responses in the intuitive thinking state. From the construction method, T1 and T2 are extracted from the remaining part after removing the stationary signal part from X(t), so it can be considered that they contain the key EEG information stimulated by the visual event.

[0076] To facilitate subsequent feature extraction and classification, the image sequences in T1 and T2 need to be processed uniformly, such as interpolating to make each sequence have the same length, or using dynamic time warping (DTW) to align different sequences in time. The processing method can be determined according to the specific task requirements, with the goal of making all elements in T1 and T2 consistent in dimension and time scale, which is convenient for the calculation of feature vectors and model training. Assume that after processing, each element in T1 and T2 is converted into a one-dimensional vector of length N, that is, T1={V11,V12,...,V1P}, T2={V21,V22,...,V2Q}, where each Vij (i=1,2; j=1,...,P or Q) is a column vector of length N.

[0077] Finally, all the vectors in T1 and T2 are concatenated in order to obtain the first characteristic signal set F1 and the second characteristic signal set F2, which reflect the subjects' complete EEG responses to visual events under different cognitive states. Specifically expressed as:

[0078] F1 = [V11, V12, ..., V1P] (P×N matrix) F2 = [V21, V22, ..., V2Q] (Q×N matrix).

[0079] Each row of F1 is a feature vector, with a total of P rows; each row of F2 is also a feature vector, with a total of Q rows. It is worth noting that since F1 and F2 are the prominent response parts directly derived from the original EEG signal X(t), they can be considered to contain the most critical EEG feature information stimulated by visual events.

[0080] Let's take an example to illustrate the implementation process of the above steps: Assume that the original EEG time series X(t) has been divided into multiple stable intervals and prominent intervals in the above steps, and two stable signal sets R1 and R2 are extracted from the stable intervals. Now we need to obtain T1 and T2 from the remaining prominent intervals. According to the segmentation results of the above steps, assume that a total of 5 prominent intervals are detected, with time ranges of [100,200], [250,320], [380,420], [500,570] and [620,680] respectively. First, extract these 5 signal segments from X(t), namely X(100:200), X(250:320), X(380:420), X(500:570) and X(620:680).

[0081] Next, it is necessary to determine which cognitive state (rational thinking or intuitive thinking) each signal segment corresponds to, so as to add it to T1 or T2. Assuming that in the time period [100,200], there are some moments t that make the difference signal D1'(t) ≥ θ1 (such as the threshold θ1=1.2 set in the above step), then the image sequence {I(t)}, t=100,...,200 corresponding to X(100:200) is added to T1. Similarly, in the time period [250,320], if there are some moments t that make D2'(t) ≥ θ2 (such as θ2=0.8 set in the above step), then {I(t)}, t=250,...,320 is added to T2. And so on, the initial element sets of T1 and T2 can be obtained in the end.

[0082] To ensure that the prominent response is fully included, each time period can be appropriately extended, such as extending 10 time points on both sides based on [100, 200], that is, the image sequence corresponding to [90, 210] is used as a new element of T1. In addition, if the duration of the prominent interval is detected to be lower than the set threshold (such as 10 time points), it will be removed or merged into an adjacent larger interval. After these processes, it is assumed that T1={S11, S12, S13, S14} and T2={S21, S22, S23} are obtained, where each Sij is an image sequence.

[0083] Then, the image sequences in T1 and T2 are processed uniformly, such as interpolating each sequence to a length of 500 (i.e., N=500), so as to obtain T1={V11, V12, V13, V14} and T2={V21, V22, V23}, where Vij is a 500-dimensional column vector. Finally, all vectors in T1 and T2 are concatenated in order to obtain the first feature signal set F1 (4×500 matrix) and the second feature signal set F2 (3×500 matrix).

[0084] Step S106, performing feature fusion on the first stationary signal set, the second stationary signal set, the first characteristic signal set and the second characteristic signal set to obtain a composite feature sample.

[0085] Specifically, the next key is to effectively fuse these four types of features. Since the stationary signal features and visual event features respectively reflect the EEG patterns of the subjects in different cognitive states, merging them together helps improve the discrimination ability of subsequent classification. The specific fusion strategy needs to weigh the contribution of each type of feature to the classification and determine a reasonable fusion weight. This application adopts an adaptive weighting method based on sample cohesion so that the weight value can automatically match the intrinsic distribution characteristics of the data.

[0086] In some embodiments, the feature fusion of the first stationary signal set, the second stationary signal set, the first feature signal set and the second feature signal set includes: respectively obtaining the first stationary signal and the second stationary signal corresponding to the first stationary signal set and the second stationary signal set, respectively obtaining the first visual event feature and the second visual event feature corresponding to the first feature signal set and the second feature signal set; feature fusion of the first stationary signal, the second stationary signal, the first visual event feature and the second visual event feature to obtain the composite feature sample.

[0087] Exemplarily, the step of respectively obtaining the first stationary signal and the second stationary signal corresponding to the first stationary signal set and the second stationary signal set includes: respectively obtaining the first dynamic window function and the second dynamic window function corresponding to the first stationary signal set and the second stationary signal set; extracting the first stationary signal from the first stationary signal set according to the first dynamic window function, and extracting the second stationary signal from the second stationary signal set according to the second dynamic window function.

[0088] It should be noted that, in some embodiments, respectively obtaining the first visual event feature and the second visual event feature corresponding to the first feature signal set and the second feature signal set includes: respectively calculating the energy features and stability features of the first stationary signal set, the second stationary signal set, the first feature signal set, and the second feature signal set, and generating an adjustment coefficient based on the multiple energy features and stability features; respectively optimizing the first dynamic window function and the second dynamic window function based on the adjustment coefficient to obtain a first optimization window and a second optimization window; extracting the first visual event feature from the first feature signal set based on the first optimization window, and extracting the second visual event feature from the second feature signal set based on the second optimization window.

[0089] For the first stationary signal set and the second stationary signal set, the statistical characteristics of their internal signal change rates are analyzed, and the first dynamic window function and the second dynamic window function are adaptively determined according to the change rates; then the first dynamic window function and the second dynamic window function are used to extract features of the two types of stationary signals. (Note: Although stationary signals fluctuate less than prominent signals, there are still certain subtle change patterns inside them. If fixed windows are used for feature extraction, these subtle differences may be masked or averaged, thereby affecting the accuracy of subsequent classification. The dynamic window function can adaptively adjust the window size and shape according to the local changes of the signal, so that the window can closely match the change trend of the signal, thereby better capturing the subtle changes inside the stationary signal and improving the effect of feature extraction.)

[0090] Next, an embodiment is used to illustrate a specific embodiment corresponding to the above content:

[0091] First, each element in R1 and R2 (i.e., the stationary EEG image sequence) needs to be transformed to extract its first-order derivative sequence D1'(t) and second-order derivative sequence D2'(t). These two derivative sequences reflect the rate of change of the stationary signal at different orders, and larger derivative values ​​correspond to intervals with more drastic changes. Next, statistics are calculated for each D1'(t) and D2'(t), including matrix norms such as mean μ, standard deviation σ, kurtosis κ, and skewness γ. These statistics can better characterize the distribution characteristics of the rate of change of the signal at different orders, such as the mean reflects the overall degree of change, the standard deviation reflects the fluctuation range, the kurtosis characterizes the frequency of mutation, and the skewness reflects the directionality of mutation. Taking D1'(t) as an example, let its mean be μ1, standard deviation be σ1, kurtosis be κ1, and skewness be γ1; similarly, the statistics corresponding to D2'(t) are recorded as μ2, σ2, κ2, and γ2.

[0092] With the above statistics, the present application can design adaptive dynamic window functions W1(t) and W2(t) to extract the features of R1 and R2. Among them, W1(t) is used for R1, and W2(t) is used for R2. The design of dynamic window function should follow the following principles: 1) The window size can be adaptively adjusted to match the change rate of the signal at the current moment; 2) A larger change rate corresponds to a smaller window, and a smaller change rate corresponds to a larger window; 3) A smooth window (such as a Gaussian window) is used near the mutation point to avoid excessive transition changes.

[0093] Specifically, W1(t) and W2(t) can be generated by the following parameterized functions:

[0094] W1(t) = a1exp(-b1|D1'(t)|) + c1exp(-d1|D2'(t)|) + f1gausswin(L1);

[0095] W2(t) =a2exp(-b2*|D1'(t)|) + c2exp(-d2|D2'(t)|) + f2gausswin(L2);

[0096] Among them, a1, b1, c1, d1, f1 and a2, b2, c2, d2, f2, f2 are the adaptive parameters of W1(t) and W2(t), which need to be estimated by the optimization algorithm; gausswin(L) is the standard Gaussian window function, and the window length L is between 5 and 11; |.| represents the absolute value symbol. It can be seen that the dynamic windows W1(t) and W2(t) are composed of three parts: the first two items are exponential functions, and their power exponents are determined by the absolute values ​​of D1'(t) and D2'(t). The larger the rate of change, the faster the window decays and the smaller the window range; the third item is a smooth Gaussian window, which is used to process the transition area near the mutation point to avoid the transition process being too steep. The linear superposition of the three makes the shape of the entire window better match the local change characteristics of the signal.

[0097] In order to obtain the optimal parameter combinations a1, b1, c1, d1, f1 and a2, b2, c2, d2, f2, f2, this application needs to design an objective function and use optimization algorithms (such as simulated annealing, particle swarm, etc.) for parameter estimation. The design principle of the objective function is to make the feature vector sequences V1(t) and V2(t) extracted by the dynamic windows W1(t) and W2(t) have the greatest cohesion, that is, the similarity between feature vectors of the same category is the highest. The specific approach is:

[0098] 1) Initialize parameters a1, b1, c1, d1, f1 and a2, b2, c2, d2, f2, f2 to small positive values; 2) For each stationary sequence in R1, extract the feature vector sequence V1(t) based on the current W1(t); 3) For each stationary sequence in R2, extract the feature vector sequence V2(t) based on the current W2(t); 4) Calculate the cohesion scores S1 and S2 of V1(t) and V2(t) as the objective function value of optimization; 5) Use algorithms such as simulated annealing to iteratively optimize the above parameters and maximize S1 and S2; 6) When S1 and S2 converge, output the optimal W1(t) and W2(t) parameter combination.

[0099] Among them, the specific calculation formulas of cohesion scores S1 and S2 are as follows:

[0100] S1 = Σ(k=1 to K1) (1 / N1k) * Σ(p=1 to N1k,q=1 to N1k) exp(-||V1kp - V1kq||^2 / 2σ1^2);

[0101] S2 = Σ(k=1 to K2) (1 / N2k) * Σ(p=1 to N2k,q=1 to N2k) exp(-||V2kp - V2kq||^2 / 2σ2^2);

[0102] Where K1 and K2 are the number of elements (stationary sequences) in R1 and R2, respectively; N1k and N2k are the lengths of the kth R1 and R2 sequences, respectively; V1kp and V2kp are the pth feature vectors extracted from the kth R1 and R2 sequences using W1(t) and W2(t), respectively; σ1 and σ2 are the average Euclidean distances of feature vectors in R1 and R2, which are used for normalization. It can be seen that S1 and S2 are actually the sum of the intra-class compactness of all feature vectors in R1 and R2. The larger the value, the more concentrated the vectors of the same category are, and the better the cohesion of the feature set. Therefore, by maximizing S1 and S2, the dynamic windows W1(t) and W2(t) can capture the most representative local change features in R1 and R2, respectively, thereby improving the accuracy of subsequent classification.

[0103] After the above parameter optimization process, the adaptive dynamic windows W1(t) and W2(t) are finally obtained. Then they are applied to each stationary sequence in R1 and R2 respectively to extract the corresponding feature vector sequences, which are the first stationary signal feature set and the second stationary signal feature set. The specific method is: for each stationary EEG sequence I1(t) in R1, calculate the convolution of W1(t)*I1(t) to obtain the corresponding feature sequence F1(t). All F1(t) are spliced ​​together to form the first stationary signal feature set FP1, with a dimension of K1×(N1-L1+1). K1 is the number of elements (stationary sequences) in R1, N1 is the length of each stationary sequence, and L1 is the window length of W1.

[0104] Similarly, for the sequence I2(t) in R2, calculate the convolution of W2(t)*I2(t) to obtain the feature sequence F2(t). All F2(t) are concatenated to form the second stationary signal feature set FP2, with a dimension of K2×(N2-L2+1). Here, K2, N2, and L2 correspond to the number of elements in R2, the sequence length, and the window length of W2, respectively. Among them, * represents the convolution operation.

[0105] Through this window convolution method, the first stationary signal feature and the second stationary signal feature were successfully extracted from R1 and R2 respectively. These features not only retain the basic pattern of the EEG signal in the stable state, but also capture the subtle changes in the signal, providing effective feature support for subsequent visual event classification.

[0106] At the same time, the statistical differences of the two types of signals (the first stable signal set and the second stable signal set, the first characteristic signal set and the second characteristic signal set) in the first energy feature, the first stability index, the second energy feature, and the second stability index are calculated; the first adjustment coefficient and the second adjustment coefficient are generated;

[0107] The physical meanings of these four indicators are as follows: the first energy feature reflects the overall energy level of the signal, which can be used to distinguish high energy states from low energy states; the first stability index describes the smoothness of signal fluctuations, and the smaller the value, the more stable the signal; the second energy feature is a local energy index that can capture the instantaneous energy changes of the signal; the second stability index reflects the changes in the second-order derivative (acceleration) of the signal, which can be used to identify mutation points. By comparing the statistical differences of different signal sets on these four indicators, their respective characteristic patterns can be discovered, thereby guiding the subsequent window optimization strategy.

[0108] First, the above four statistical indicators need to be extracted from R1, R2, F1 and F2 respectively. The specific method is: for the first stationary signal set R1, assume that it contains K1 elements (stationary EEG sequence), recorded as {V11, V12, ..., V1K1}, where each Vij (j=1, ..., K1) is a row vector of length N. Then the first energy feature of R1 can be defined as the sum of the two norms of all vectors, that is: E1_R1 = Σ(j=1 to K1) ||Vij||; where ||.|| represents the two norm of the vector. The first stability indicator can be described by the variance of the vector sequence, and the calculation formula is as follows: S1_R1 = Σ(j=1 to K1) VAR(Vij) / K1; here VAR(.) is a function for calculating the variance of the vector, that is, the variance is calculated for all elements in the vector. The second energy feature is defined as the mean of the second-order norms of all vectors, which can characterize the instantaneous energy level of the element sequence in R1: E2_R1 = Σ(j=1 to K1) ||Vij'||^2 / K1; where Vij' is the first-order derivative of Vij, and ||.||^2 means the norm after square. The second stability index is described by the mean of the acceleration norm of the vector sequence, which can reflect the mutation frequency of the sequence in R1: S2_R1 = Σ(j=1 to K1) ||Vij''|| / K1; where Vij'' is the second-order derivative of Vij, and ||.|| is the second norm of the vector.

[0109] In a similar way, the four indicators E1_R2, S1_R2, E2_R2, S2_R2 and E1_F1, S1_F1, E2_F1, S2_F1 and E1_F2, S1_F2, E2_F2, S2_F2 corresponding to R2, F1 and F2 can be calculated. It should be noted that for the feature vector sequences in F1 and F2, since they may have different lengths due to different events, when calculating the above indicators, each sequence can be interpolated first to make them have the same length N.

[0110] With the values ​​of R1, R2, F1 and F2 in the above four indicators, this application can calculate the statistical differences between them as the basis for determining the adjustment coefficient. Specifically, the strategy of pairwise comparison is adopted to calculate the following 6 difference values:

[0111] diff_E1 = |E1_R1 - E1_F1| + |E1_R2 - E1_F2|;

[0112] diff_S1 = |S1_R1 - S1_F1| + |S1_R2 - S1_F2|;

[0113] diff_E2 = |E2_R1 - E2_F1| + |E2_R2 - E2_F2|;

[0114] diff_S2 = |S2_R1 - S2_F1| + |S2_R2 - S2_F2|;

[0115] diff_EP = |E1_R1 - E1_R2| + |E1_F1 - E1_F2|;

[0116] diff_SP = |S1_R1 - S1_R2| + |S1_F1 - S1_F2|;

[0117] Among them, diff_E1 and diff_S1 are the differences between the first energy feature and the first stability index in the stationary signal and the characteristic signal respectively; diff_E2 and diff_S2 are the differences between the second energy feature and the second stability index in the two types of signals; diff_EP and diff_SP reflect the differences between the first energy feature and the first stability index in the stationary signal and the characteristic signal respectively. The size of these six difference values ​​can better characterize the differences between the stationary signal and the characteristic signal in the above four statistical indicators.

[0118] Next, these six difference values ​​are normalized and used as weights to determine the first adjustment coefficient α and the second adjustment coefficient β:

[0119] w1 = diff_E1 / (diff_E1 + diff_S1 + diff_E2 + diff_S2 + diff_EP +diff_SP);

[0120] w2 = diff_S1 / (diff_E1 + diff_S1 + diff_E2 + diff_S2 + diff_EP +diff_SP);

[0121] w3 = diff_E2 / (diff_E1 + diff_S1 + diff_E2 + diff_S2 + diff_EP +diff_SP);

[0122] w4 = diff_S2 / (diff_E1 + diff_S1 + diff_E2 + diff_S2 + diff_EP +diff_SP);

[0123] w5 = diff_EP / (diff_E1 + diff_S1 + diff_E2 + diff_S2 + diff_EP +diff_SP);

[0124] w6 = diff_SP / (diff_E1 + diff_S1 + diff_E2 + diff_S2 + diff_EP +diff_SP);

[0125] Among them, w1~w6 are the normalized weights corresponding to the 6 difference values, and w1+w2+w3+w4+w5+w6=1. These 6 weights reflect the relative importance of the four statistical indicators and the internal / external differences of the stationary / characteristic signals to the window adjustment.

[0126] With the above weights, the first adjustment coefficient α and the second adjustment coefficient β can be generated:

[0127] α = w1E1_R1 / E1_F1 + w2S1_R1 / S1_F1 + w3E2_R1 / E2_F1 + w4S2_R1 / S2_F1 +w5E1_R1 / E1_R2 + w6S1_R1 / S1_R2;

[0128] β = w1E1_R2 / E1_F2 + w2S1_R2 / S1_F2 + w3E2_R2 / E2_F2 + w4S2_R2 / S2_F2 +w5E1_R2 / E1_R1 + w6S1_R2 / S1_R1;

[0129] It can be seen that α and β are weighted ratios of the four statistical indicators between the stationary signal and the characteristic signal, and also integrate the difference information inside the stationary signal and the characteristic signal. The size of these two adjustment coefficients reflects the degree to which the window function needs to be stretched or compressed in the future. If α>1, it means that the first optimization window needs to be expanded to capture more stationary signal features; on the contrary, if α<1, the window needs to be narrowed to suppress some redundancy; similarly, the adjustment of β to the second optimization window also follows a similar strategy.

[0130] The first adjustment coefficient and the second adjustment coefficient are respectively multiplied with the preset initial window size to generate the first optimization window and the second optimization window; specifically, the initial window size W0 needs to be determined first, which is an empirical value, usually depending on the acquisition frequency of the EEG image sequence being analyzed and the minimum time scale feature that needs to be captured. Generally speaking, the value range of W0 is between 5 and 25 time points. The smaller the value, the more detailed features can be captured, but it is also more susceptible to noise interference; on the contrary, the larger the value, the more stable overall features can be extracted, but some instantaneous change information may be lost. Therefore, the specific value of W0 needs to be determined according to the needs of the actual task, and can also be tuned by methods such as cross-validation.

[0131] Assume that the initial window size W0 has been determined, for example, set to 15 time points. Then, according to the two adjustment coefficients α and β obtained in the above steps, the first optimization window W1 and the second optimization window W2 can be generated: W1 = α * W0 W2 = β * W0.

[0132] Among them, when α>1, the size of W1 will be larger than the initial window W0, which means that the window range needs to be expanded to capture more stationary signal features; on the contrary, when α<1, the range of W1 will be smaller than W0, so that the compressed window suppresses some redundancy. Similarly, the size of β will also determine the degree of stretching or compression of W2 relative to W0. Through this adaptive adjustment strategy, W1 and W2 can match the intrinsic change characteristics of the first stationary signal set R1 and the second stationary signal set R2 respectively, improving the effect of subsequent feature extraction.

[0133] It should be noted that in order to ensure the rationality of W1 and W2, some restrictions can be placed on their value ranges. For example, a maximum window length Wmax is set. If the calculated W1 or W2 exceeds this length, it is set equal to Wmax to avoid over-stretching. Similarly, a minimum window length Wmin can be set. If W1 or W2 is less than this value, it is set equal to Wmin to prevent information loss due to over-compression. The specific values ​​of Wmax and Wmin also need to be tuned according to the actual task. Usually Wmax is between 50100 points and Wmin is between 515 points.

[0134] The first feature signal set F1 and the second feature signal set F2 are respectively extracted using the first optimization window and the second optimization window to extract the first visual event feature and the second visual event feature;

[0135] Specifically, F1 reflects the EEG response to visual events in the subject's rational thinking state, while F2 corresponds to the response in the intuitive thinking state. This application hopes to capture the most representative visual event features from F1 and F2 through W1 and W2, respectively, so as to distinguish these two different cognitive states.

[0136] First, let's review the composition of F1 and F2. In the above steps, the prominent response part of the original EEG time series X(t) after removing the stable interval is extracted, and two matrices F1 and F2 are constructed respectively, where F1 contains P rows of feature vectors, each row is an N-dimensional vector V1j (j=1,...,P); F2 contains Q rows of N-dimensional feature vectors V2j (j=1,...,Q). These feature vectors may come from the stimulation of different visual events, and their lengths may not be exactly the same. In order to facilitate window operations, this application needs to normalize all vectors of F1 and F2 first so that they have the same dimension N. Direct interpolation or dynamic time warping (DTW) and other methods can be used to stretch or compress the original sequence to equal lengths.

[0137] Assume that after unified processing, F1 is converted to a P×M matrix and F2 is converted to a Q×M matrix, where M is the new feature dimension and M≥N. Next, the first optimization window W1 and the second optimization window W2 can be used to filter and extract features from F1 and F2. The specific method is: for each row vector V1j (j=1,...,P) in F1, calculate its convolution with W1:

[0138] C1j = V1j * W1. Where * represents a one-dimensional convolution operation, C1j is the output vector of the convolution, with a length of M-L+1, and L is the window length of W1. This is equivalent to using W1 as a filter to slide on V1j and calculate the inner product point by point to obtain a new feature sequence. The convolution operation can well capture local features at different time scales, and the length of W1 determines the refinement of the acquired features. By performing similar convolutions on all vectors in F1, P convolution output sequences can be obtained, forming a (P×(M-L+1))-dimensional matrix FE1, denoted as: FE1 = [C11; C12; ...; C1P].

[0139] Each row vector of FE1 corresponds to a new feature sequence obtained after convolution of V1j and W1, which can be regarded as the first visual event feature set extracted from F1.

[0140] For the feature vector sequence {V2j} in F2, the second optimized window W2 can also be used for convolution and feature extraction in a similar manner: C2j = V2j * W2; FE2 = [C21; C22; ...; C2Q].

[0141] Here, the length of W2 is set to K, then FE2 is a (Q×(M-K+1))-dimensional matrix, and each row vector is the corresponding visual event feature extracted from F2. FE2 can be regarded as the second visual event feature set. It should be noted that since the lengths of W1 and W2 are generally different (i.e., L≠K), the row vector lengths of FE1 and FE2 are also different. However, in subsequent fusion, the row vectors can be made equal in length.

[0142] Through the above filtering and convolution calculations, the key EEG features FE1 and FE2 corresponding to visual events in rational thinking and intuitive thinking states were successfully extracted from F1 and F2, respectively. It is worth mentioning that since W1 and W2 are generated through adaptive optimization strategies in the above steps, the features contained in FE1 and FE2 can well match the intrinsic change patterns of EEG signals in different cognitive states, thereby improving the subsequent event classification and detection capabilities.

[0143] To help understand the above process, the following specific example is given: Assume that after unified processing, F1 is a 10×128-dimensional matrix, in which each row is a 128-dimensional feature vector, containing the EEG responses of 10 visual events; F2 is a 12×128-dimensional matrix, containing the response features of another 12 visual events. In the above steps, based on the statistical difference between the stationary signal and the feature signal, the first optimization window W1 (length 15) and the second optimization window W2 (length 21) are generated.

[0144] Then for the first eigenvector V11 (1×128 dimension) in F1, the convolution output C11 with W1 can be calculated according to formula (1): C11 = V11 * W1, where * is the convolution operation. Since the length of W1 is 15, C11 is a 1×114 dimensional vector. Similar convolution operations are performed on the remaining 9 eigenvectors in F1, and all outputs are concatenated according to formula (2) to obtain the FE1 matrix, which is a 10×114 dimensional matrix.

[0145] Similarly, for the first eigenvector V21 of F2 (1×128 dimension), we calculate C21 = V21 * W2, where the length of W2 is 21, so C21 is a 1×108 dimensional vector. After similar processing of all 12 vectors in F2 and concatenation according to formula (4), we can get the FE2 matrix with a dimension of 12×108.

[0146] Finally, FE1 and FE2 contain the corresponding visual event features under the two states of rational thinking and intuitive thinking respectively, providing effective feature support for subsequent fusion and classification.

[0147] In the above steps, the first stationary signal feature and the second stationary signal feature are extracted; in the above steps, the first visual event feature and the second visual event feature are extracted. The two types of features are fused to construct a composite feature sample corresponding to the visual event.

[0148] First, since the row vector dimensions of FP1, FP2, FE1, and FE2 may not be exactly the same, they need to be dimensionally unified so that all row vectors have the same length. Assume that after equalization, the row vector dimensions of the above four feature matrices become N1, N2, N3, and N4, respectively. For ease of representation, this application re-records FP1 as a (K1×N1) matrix, FP2 as a (K2×N2) matrix, FE1 as a (P×N3) matrix, and FE2 as a (Q×N4) matrix.

[0149] The next key is to effectively fuse these four types of features. Since the stationary signal features and visual event features reflect the EEG patterns of the subjects in different cognitive states, merging them together helps improve the discrimination ability of subsequent classification. The specific fusion strategy needs to weigh the contribution of each type of feature to the classification and determine a reasonable fusion weight. This application adopts an adaptive weighting method based on sample cohesion, so that the weight value can automatically match the intrinsic distribution characteristics of the data.

[0150] First, define the sample cohesion scoring function J, which represents the closeness between samples of the same category:

[0151] J(X) = Σ(i=1 to N) Σ(j=1 to N) exp(-||Xi - Xj||^2 / 2σ^2) (1).

[0152] Where X = {X1, X2, ..., XN} is a sample set, each Xi is a D-dimensional feature vector, ||.|| represents the vector bi-norm, and σ is the root mean square distance between all vectors in X. It can be seen that J(X) is actually the sum of the similarities between all vectors in X, and the larger the value, the higher the cohesion.

[0153] The goal now is to find a set of optimal weights w1, w2, w3, w4, so that the weighted fused feature set F = w1FP1 + w2FP2 + w3FE1 + w4FE2 achieves the maximum value on J(F), that is, it has the highest cohesion. Here * represents the multiplication of the corresponding elements of the matrix. Since the number of samples contained in FP1, FP2, FE1, and FE2 may be different, they need to be concatenated into sample sequences of equal length first, and then the cohesion J(F) after fusion is calculated. Assuming that the length of the concatenated sample sequence is N, the objective function can be expressed as: max J(F) = max Σ(i=1 to N) Σ(j=1 to N) exp(-||Fi - Fj||^2 / 2σ^2) w1,w2,w3,w4 (2) st w1 + w2 + w3 + w4 = 1; w1,w2,w3,w4 >= 0.

[0154] Where Fi is the i-th sample vector in F. The constraint of this optimization problem is that the sum of the weights is 1 and non-negative. The Lagrange multiplier method can be used to solve this constrained optimization problem. The specific method is to construct the Lagrangian function:

[0155] L(w1,w2,w3,w4,λ,μ1,μ2,μ3,μ4) = -J(F) + λ(w1+w2+w3+w4-1) - μ1w1 - μ2w2- μ3w3 - μ4w4. Where λ,μ1,μ2,μ3,μ4 are Lagrange multipliers. Let the partial derivative of L with respect to w1,w2,w3,w4 be 0, we can obtain the following system of equations:∂L / ∂w1 = 0 ∂L / ∂w2 = 0 ∂L / ∂w3 = 0 ∂L / ∂w4 = 0 w1 + w2 + w3 + w4= 1.

[0156] Substituting the specific form of J(F) into the above formula and solving the values ​​of w1, w2, w3, and w4, the optimal weights can be obtained. With these weights, the fused composite feature set F can be generated according to the following formula: F = w1FP1 + w2FP2 + w3FE1 +w4FE2; F contains K1+K2+P+Q samples, each of which is an N-dimensional feature vector. It combines the stationary signal features and visual event features, reflecting the differences in EEG patterns of subjects in different cognitive states. It is worth mentioning that the above method for solving the optimal weights is an unsupervised strategy that is completely based on the characteristics of the sample distribution itself and does not rely on label information, so it has strong generalization ability.

[0157] To help understand the above process, the following specific example is given: Assume that the four matrices FP1, FP2, FE1, and FE2 extracted in the above steps are: FP1 (10×20), FP2 (15×30), FE1 (20×50), and FE2 (25×40). Then we need to unify their dimensions first. Assume that after unification, they become FP1 (10×60), FP2 (15×60), FE1 (20×60), and FE2 (25×60), that is, the length of all row vectors is 60.

[0158] Next, we concatenate these four matrices to obtain a sample sequence F of length 10+15+20+25=70, where the first 10 samples come from FP1, the next 15 come from FP2, and so on. According to formulas (1)(2)(3)(4), we can solve for the optimal weights w1=0.2, w2=0.3, w3=0.3, and w4=0.2. Substituting these weights into formula (5), we can generate the fused composite feature set F, which is a (70×60) matrix that combines stationary signal features and visual event features.

[0159] Step S107, completing the training of the visual event classification model to be trained according to the composite feature samples, and the trained visual event classification model detects visual events.

[0160] Specifically, the composite feature samples are used to train the visual event classification model, and an EEG signal classifier with optimized window parameters set for visual events is established, which can effectively identify visual events.

[0161] In some embodiments, the visual event classification model includes a deep convolutional neural network model; the training of the visual event classification model to be trained based on the composite feature samples includes: inputting the vector corresponding to the composite feature sample into the convolution layer of the deep convolutional neural network model, outputting the predicted visual event and the corresponding predicted probability information; obtaining the standard visual event corresponding to the composite feature sample; calculating the loss function corresponding to the predicted visual event, predicted probability information and standard visual event; optimizing the weight parameters of the deep convolutional neural network model according to the loss function based on the back propagation algorithm to complete the training of the visual event classification model.

[0162] The deep convolutional neural network (CNN) is used as the classification model. The CNN structure can effectively capture the temporal and spatial feature patterns in the EEG signals. First, the composite feature sample F is divided into a training set Ftrain and a test set Ftest. Among them, Ftrain contains N samples {(x1, y1), (x2, y2),..., (xN, yN)}. Each xi is a sample vector in F with a dimension of D, and yi is its corresponding label, taking values of 1 (rational thinking state) or 2 (intuitive thinking state). The input layer of the DCNN model accepts a D-dimensional vector, and the output layer contains two neurons corresponding to the two types of visual event labels. The hidden layer consists of several convolutional layers and pooling layers.

[0163] The first convolutional layer performs a one-dimensional convolutional operation on the D-dimensional input vector to extract local feature patterns. Suppose this layer contains K1 convolutional kernels, each kernel has a length of L1, and a stride of S1. Let W1 ∈ R^(K1×L1) be the convolutional kernel weight matrix, and b1 ∈ R^(K1×1) be the bias term. Then the output feature map of the first layer is: X1 = σ(W1x + b1) ∈ R^(K1×((D - L1) / S1 + 1)). Here, represents the one-dimensional convolutional operation, and σ is the activation function (such as ReLU, etc.). The first pooling layer performs a Max-Pooling operation on X1, with a pooling kernel size of P1 and a stride of Q1, and the output is X1' ∈ R^(K1×(((D - L1) / S1 + 1 - P1) / Q1 + 1)).

[0164] And so on, the output of the l-th layer is Xl' ∈ R^(Kl×(((D - Σ(i = 1 to l - 1)(Li - Pi) / Πi = 1 to l - 1Si + 1 - Pl) / Ql + 1))). Among them, Kl is the number of convolutional kernels in this layer, Ll is the kernel length, Sl is the stride, Pl is the pooling kernel size, and Ql is the pooling stride. Finally, a fully connected layer maps the output Xl' of the last convolutional layer to two neurons, corresponding to the probability values y'1 and y'2 of the two types of visual events.

[0165] Given a training sample (x, y), its loss function is: L(y, y') = -ylog(y') - (1 - y)log(1 - y'). Here, y' = [y'1, y'2] is the output of the CNN model, y is the actual label, when y = 1 it represents the rational thinking state, and y = 2 represents the intuitive thinking state. Taking the average of the loss functions of all samples, the loss of the entire model is obtained: Loss = 1 / N∑i = 1 to NL(yi, y'i). During the training process, the backpropagation algorithm is used to optimize and adjust all the weight parameters of the CNN (including the convolutional kernel weights, bias terms, and fully connected layer weights, etc.) to minimize Loss. Optimization methods can use Stochastic Gradient Descent (SGD), Adam, etc. And adjust the hyperparameters (such as learning rate, batch size, etc.) according to the loss curve to prevent overfitting.

[0166] Let the trained CNN model be fCNN(x), and its output be [y'1,y'2]. For the new test sample x*, the method to determine its category is: y*=argmax(y'1,y'2). That is, the visual event category corresponding to x* is determined to be the one with the larger CNN output probability value. During the training and testing phases, regularization terms (such as L1 / L2 norms, etc.) can also be introduced to constrain the CNN model parameters to further improve the generalization ability. The performance of the model is evaluated on the test set Ftest. Common indicators include classification accuracy acc, precision prec, recall recall, and F1 score.

[0167] In order to improve the classification accuracy, the above CNN model can be optimized. One method is to add a temporal convolution layer before the CNN input layer to encode the original sample signal. Assuming the sample signal length is T, the word embedding dimension is M, the temporal convolution kernel length is TK, and the step size is TS, the temporal convolution output is: Xt∈R^(M×(T-TK) / TS+1). Among them, the weight matrix Wt∈R^(M×TK) of the convolution kernel is obtained through training and learning. Xt encoded by the temporal convolution layer is used as the input of CNN, which can effectively capture the temporal dynamic characteristics of the signal. Another optimization method is to use residual connection to add the input and output of the convolution layer: Xl'=Xl'+Xl. This residual structure is conducive to deepening the network depth and obtaining higher-level abstract features.

[0168] In addition, if there is time series label information, a long short-term memory network (LSTM) layer can be superimposed on top of CNN to capture the time-dependent pattern of the sample sequence. Assume that the feature map of the last layer of CNN is X'∈R^(K×T'), T' is the number of time steps, then the LSTM output is: h_t=σ(W_hX't+U_hh(t-1)+b_h), where σ is a nonlinear activation function, W_h, U_h, and b_h are the input weight matrix, recursive weight matrix, and bias of LSTM respectively. Finally, the last hidden state of LSTM is mapped to two classification probability values ​​through a fully connected layer.

[0169] CNN model parameter example: The number of convolution kernels in the first convolution layer is K1=64, the length is L1=5, and the step size is S1=1; the first pooling kernel size is P1=4, and the step size is Q1=2. The number of convolution kernels in the second convolution layer is K2=128, the length is L2=5, and the step size is S2=1; the second pooling kernel size is P2=4, and the step size is Q2=2. The word embedding dimension of the temporal convolution layer is M=32, the kernel length is TK=3, and the step size is TS=1. The number of hidden units in the LSTM layer is 128. The output dimension of the fully connected layer is 2, corresponding to two types of visual events. Use ReLU activation function, Adam optimizer, learning rate of 0.001, and batch size of 32. Introduce L2 norm regularization term, and the weight decay coefficient is 0.0005. The model is trained on a synthetic dataset containing 10,000 samples, and the test accuracy can reach 95.7%.

[0170] Through the above CNN classification model, the cognitive state of the subject can be automatically identified from the composite feature samples of the EEG signal, that is, the rational thinking or intuitive thinking corresponding to the visual event, objectively identify the cognitive activity state of the subject, capture the instantaneous brain dynamics during task execution, and have a more detailed characterization and evaluation of cognitive function. For example, in some situations where major decisions need to be made, it is very important to be able to balance the use of rational analysis and intuitive judgment. Through EEG analysis, if the subject's brain mainly stays in the rational thinking state, the left brain area is continuously activated, showing more logical reasoning and careful analysis, but some intuitive clues and overall grasp may be ignored, resulting in one-sided or complicated decision-making; on the contrary, if the subject's brain maintains an intuitive thinking mode for a long time, and the right brain area is continuously highly activated, it may produce overly subjective and straightforward judgments, lack of rational analysis as support, and the decision-making results may have major omissions or defects. Therefore, accurate identification of the subject's current cognitive state through EEG analysis technology can provide unprecedented physiological reference data for psychological assessment, so that the assessment results no longer rely solely on behavioral measurements or subjective reports, but can directly peek into the brain's operating mechanism, thereby comprehensively and objectively evaluating the subject's various cognitive abilities and providing more valuable guidance for individual psychological development and cognitive training.

[0171] Compared with the prior art, this application has at least the following beneficial effects:

[0172] 1. A strategy of stable-salient fusion modeling is proposed to achieve autonomous optimization and adjustment of feature extraction intervals, which can match the EEG transformation rules under different cognitive states and capture key features under stable and excited states, so that subsequent models based on this strategy can better describe and predict visual events. The adaptive systematic nature of this strategy also has expanded application value for other types of event detection.

[0173] 2. Steady EEG signals assist in salient feature extraction, using the difference between the two states to set individualized time window parameters, avoiding the uncertainty of subjective assumptions and empirical estimates, and making the extraction of visual event-related features more robust. At the same time, stable features are incorporated into classification judgments as new sample attributes, enriching EEG-based behavioral detection and psychological assessment models.

[0174] 3. Compared with the direct source EEG modeling method, the staged modeling using the stationary-salient difference has higher computational efficiency, lower equipment requirements, and a wider range of applications. It has greater potential for reducing computational and usage costs.

[0175] In order to implement the detection method of visual events for psychological assessment based on EEG signals corresponding to the above method embodiment, so as to achieve corresponding functions and technical effects. Figure 2 , Figure 2 The structure block diagram of a detection device 200 for a psychological assessment visual event provided in an embodiment of the present application is shown. For ease of description, only the parts related to the present embodiment are shown. The detection device 200 for a psychological assessment visual event provided in an embodiment of the present application includes:

[0176] An image acquisition module 201 is used to acquire brain wave images of the user at multiple moments, and to construct an original brain wave time series signal based on the multiple brain wave images;

[0177] A reference acquisition module 202 is used to acquire a first reference characteristic signal of each two adjacent brain wave images in the original brain wave time series signal, acquire a second reference characteristic signal corresponding to each two adjacent first reference characteristic signals, and acquire a third reference characteristic signal corresponding to each two adjacent second reference characteristic signals;

[0178] A difference calculation module 203 is used to calculate a first difference between the first reference feature signal and the second reference feature signal and a second difference between the second reference feature signal and the third reference feature signal at the same time;

[0179] A signal extraction module 204, configured to extract a first stationary signal set and a second stationary signal set from the original brain wave time series signal according to the first difference and the second difference;

[0180] A feature acquisition module 205 is used to remove the first stationary signal set and the second stationary signal set from the original brain wave time series signal to obtain a first feature signal set and a second feature signal set;

[0181] A signal fusion module 206, configured to perform feature fusion on the first stationary signal set, the second stationary signal set, the first characteristic signal set, and the second characteristic signal set to obtain a composite characteristic sample;

[0182] The training completion module 207 is used to complete the training of the visual event classification model to be trained according to the composite feature sample, and the trained visual event classification model detects visual events.

[0183] The above-mentioned device 200 for detecting psychological assessment visual events can implement the method for detecting psychological assessment visual events based on electroencephalogram signals of the above-mentioned method embodiment. The optional items in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here. The rest of the contents of the embodiment of the present application can refer to the contents of the above-mentioned method embodiment and will not be described in detail in this embodiment.

[0184] Figure 3 This is a schematic diagram of the structure of a computer device provided in one embodiment of the present application. Figure 3 As shown, the computer device 3 of this embodiment includes: at least one processor 30 ( Figure 3 Only one is shown in the figure), a memory 31 and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, wherein the processor 30 implements the steps of any of the above method embodiments when executing the computer program 32.

[0185] The computer device 3 may be a computing device such as a smart phone, a tablet computer, a desktop computer, a cloud server, etc. The computer device may include but is not limited to a processor 30 and a memory 31. Those skilled in the art will understand that Figure 3 It is only an example of computer device 3 and does not constitute a limitation on computer device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.

[0186] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0187] In some embodiments, the memory 31 may be an internal storage unit of the computer device 3, such as a hard disk or memory of the computer device 3. In other embodiments, the memory 31 may also be an external storage device of the computer device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the computer device 3. The memory 31 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 31 may also be used to temporarily store data that has been output or is to be output.

[0188] In addition, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0189] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device implements the steps in the above-mentioned method embodiments when executing the computer device.

[0190] In several embodiments provided in the present application, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.

[0191] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0192] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A method for detecting visual events based on EEG signals, characterized in that: include: Acquire brain wave images of the user at multiple times, and form an original brain wave time series signal according to the multiple brain wave images; Acquire a first energy change of each two adjacent brain wave images in the original brain wave time series signal as a first reference characteristic signal, acquire a second energy change corresponding to each two adjacent first reference characteristic signals as a second reference characteristic signal, and acquire a third energy change corresponding to each two adjacent second reference characteristic signals as a third reference characteristic signal; Calculating a first difference between the first reference feature signal and the second reference feature signal at the same time, and a second difference between the second reference feature signal and the third reference feature signal; extracting a first stationary signal set and a second stationary signal set from the original brain wave time series signal according to the first difference and the second difference respectively; Removing the first stationary signal set and the second stationary signal set from the original brain wave time series signal to obtain a first characteristic signal set and a second characteristic signal set; Performing feature fusion on the first stationary signal set, the second stationary signal set, the first characteristic signal set, and the second characteristic signal set to obtain a composite characteristic sample; The training of the visual event classification model to be trained is completed according to the composite feature samples, and the trained visual event classification model detects visual events.

2. The method according to claim 1, characterized in that The extracting a first stationary signal set and a second stationary signal set from the original brain wave time series signal according to the first difference and the second difference respectively includes: Obtaining a first stable interval corresponding to the first difference; Obtaining a second stable interval corresponding to the second difference; Extracting a first stationary signal set from the original brain wave time series signal according to the first stationary interval; A second stationary signal set is extracted from the original brain wave time series signal according to the second stationary interval.

3. The method according to claim 1, characterized in that The performing feature fusion on the first stationary signal set, the second stationary signal set, the first characteristic signal set, and the second characteristic signal set comprises: Respectively obtain a first steady signal and a second steady signal corresponding to the first steady signal set and the second steady signal set; Respectively acquiring a first visual event feature and a second visual event feature corresponding to the first feature signal set and the second feature signal set; The first stationary signal, the second stationary signal, the first visual event feature and the second visual event feature are subjected to feature fusion to obtain the composite feature sample.

4. The method according to claim 3, characterized in that The step of respectively acquiring the first steady signal and the second steady signal corresponding to the first steady signal set and the second steady signal set comprises: Respectively obtain a first dynamic window function and a second dynamic window function corresponding to the first stationary signal set and the second stationary signal set; A first stationary signal is extracted from the first stationary signal set according to the first dynamic window function, and a second stationary signal is extracted from the second stationary signal set according to the second dynamic window function.

5. The method according to claim 4, characterized in that The step of respectively acquiring the first visual event feature and the second visual event feature corresponding to the first feature signal set and the second feature signal set comprises: respectively calculating energy features and stability features of the first stable signal set, the second stable signal set, the first characteristic signal set, and the second characteristic signal set, and generating adjustment coefficients according to the plurality of energy features and stability features; Optimize the first dynamic window function and the second dynamic window function respectively according to the adjustment coefficient to obtain a first optimization window and a second optimization window; A first visual event feature is extracted from the first feature signal set according to the first optimization window, and a second visual event feature is extracted from the second feature signal set according to the second optimization window.

6. The method according to claim 1, characterized in that The visual event classification model includes a deep convolutional neural network model; the training of the visual event classification model to be trained according to the composite feature sample includes: Inputting the vector corresponding to the composite feature sample into the convolution layer of the deep convolutional neural network model, and outputting the predicted visual event and the corresponding predicted probability information; Obtaining a standard visual event corresponding to the composite feature sample; Calculating the loss function corresponding to the predicted visual event, the predicted probability information and the standard visual event; Based on the back propagation algorithm, the weight parameters of the deep convolutional neural network model are optimized according to the loss function to complete the training of the visual event classification model.

7. A detection device for psychological assessment of visual events, characterized in that: include: An image acquisition module, used to acquire the user's brain wave images at multiple times, and form an original brain wave time series signal based on the multiple brain wave images; A reference acquisition module, used to acquire a first energy change of each two adjacent brain wave images in the original brain wave time series signal as a first reference characteristic signal, acquire a second energy change corresponding to each two adjacent first reference characteristic signals as a second reference characteristic signal, and acquire a third energy change corresponding to each two adjacent second reference characteristic signals as a third reference characteristic signal; a difference calculation module, used to calculate a first difference between the first reference feature signal and the second reference feature signal and a second difference between the second reference feature signal and the third reference feature signal at the same time; A signal extraction module, configured to extract a first stationary signal set and a second stationary signal set from the original brain wave time series signal according to the first difference and the second difference respectively; A feature acquisition module, used for removing the first stationary signal set and the second stationary signal set from the original brain wave time series signal to acquire a first feature signal set and a second feature signal set; A signal fusion module, used for performing feature fusion on the first stationary signal set, the second stationary signal set, the first characteristic signal set and the second characteristic signal set to obtain a composite characteristic sample; The training completion module is used to complete the training of the visual event classification model to be trained according to the composite feature sample, and the trained visual event classification model detects visual events.

8. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the steps of the method for detecting visual events for psychological assessment based on EEG signals as described in any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, enables the processor to implement the steps of the method for detecting visual events for psychological assessment based on electroencephalogram signals according to any one of claims 1 to 6.