Psychological testing method and system based on electroencephalogram
By initializing EEG psychological test before the psychological test, and real-time EEG data collection and process verification during the test, the problems of accuracy and reliability of EEG data in the existing technology are solved, and the accurate analysis of the subject's psychological state is achieved.
Patent Information
- Application Number
- CN202411705352.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-11-26
AI Technical Summary
When applying EEG to psychological tests in the prior art, it is difficult to determine whether the collected EEG data is accurate and reliable, and it is impossible to accurately analyze the psychological state of the subject.
By conducting initialized EEG psychological tests before conducting psychological tests, and real-time EEG data collection and process verification during the test, we ensure the accuracy and reliability of the collected EEG data.
Acquisition of accurate and reliable EEG data in psychological tests is achieved, thus providing a basis for subsequent accurate analysis of subjects' psychological state.
Smart Images

Figure CN119548136A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of psychological testing, and in particular to an electroencephalogram-based psychological testing method and system. Background Art
[0002] Psychological testing is a process that quantifies people's cognitive, behavioral, and emotional psychological activities based on certain laws and psychological principles using certain operating procedures, helping individuals and organizations to gain a deeper understanding of their psychological characteristics and abilities so that they can make more informed decisions.
[0003] When the brain is working, the movement of ions in nerve cells generates electric currents, which form weak potentials on the surface of the scalp. EEG technology is a non-invasive technology that analyzes brain activity by detecting the potential on the surface of the scalp when the brain is working.
[0004] In the prior art, the application of EEG in psychological testing is simply to provide psychological stimulation to the subject according to certain pictures, sounds and / or video data, and then collect EEG data for analysis of the psychological test. Without a verification process, it is difficult to determine whether the collected EEG data is accurate and reliable. Therefore, it is impossible to accurately analyze the psychological state of the subject. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide an EEG-based psychological testing method and system, aiming to solve the problems raised in the background technology.
[0006] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions: A psychological testing method based on electroencephalogram, the method specifically comprises the following steps: Perform initialization environment adjustment according to preset standard environment data, and perform initialization EEG psychological test according to preset standard test data to determine whether the initialization test has passed; After the initialization test is passed, psychological test data is obtained, and the psychological test data is inserted and adjusted according to the standard test data to generate adjusted test data; According to the adjusted test data, psychological test stimulation is performed on the target person, and real-time EEG data is collected during the psychological test to obtain test collection data; Preprocessing, feature extraction and classification recognition are performed on the test collection data to obtain recognition record information, and process verification is performed on the recognition record information to determine whether the process verification has passed; After the process verification is passed, the identification record information is screened, the test record information is obtained, and the test record information is directed and transmitted.
[0007] As a further limitation of the technical solution of the embodiment of the present invention, the initialization environment adjustment is performed according to the preset standard environment data, and the initialization electroencephalogram psychological test is performed according to the preset standard test data, and judging whether the initialization test is passed specifically includes the following steps: Obtain standard environmental data and standard test data; Performing initial environmental adjustments of indoor temperature, indoor humidity and indoor lighting according to the standard environmental data; According to the standard test data, an initialization psychological test of EEG is performed to obtain initialization test data; The initialization test data is verified and analyzed to determine whether the initialization test passes.
[0008] As a further limitation of the technical solution of the embodiment of the present invention, after the initialization test is passed, the psychological test data is obtained, and the psychological test data is inserted and adjusted according to the standard test data, and the generation of the adjusted test data specifically includes the following steps: After the initialization test is passed, obtain the psychological test data; Segmenting the psychological test data into a plurality of test segment data; Performing fragmentation processing on the standard test data to divide it into a plurality of test fragment data; Selecting multiple insertion positions between the multiple test fragment data; The plurality of test segment data are inserted and adjusted between the plurality of test segment data according to the plurality of insertion positions to generate adjusted test data.
[0009] As a further limitation of the technical solution of the embodiment of the present invention, the step of performing psychological test stimulation on the target person according to the adjusted test data, and collecting real-time EEG data during the psychological test, and obtaining the test collection data specifically includes the following steps: Conducting psychological testing stimulation on the target person according to the adjusted test data; During the psychological testing, the EEG amplifier was turned on; According to the order and time of psychological test stimulation, EEG data is collected and synchronized to obtain test collection data.
[0010] As a further limitation of the technical solution of the embodiment of the present invention, the preprocessing, feature extraction and classification identification of the test collection data, obtaining identification record information, performing process verification on the identification record information, and determining whether the process verification is passed specifically include the following steps: Preprocessing the test data by filtering, denoising and segmenting to obtain preprocessed data; Extracting the frequency, amplitude and phase characteristics of the preprocessed data to obtain characteristic data; Classify and identify the characteristic data to obtain identification record information; According to the standard test data and the plurality of insertion positions, the identification record information is subjected to process verification to determine whether the process verification has passed.
[0011] As a further limitation of the technical solution of the embodiment of the present invention, after the process verification is passed, screening the identification record information, obtaining the test record information, and directionally transmitting the test record information specifically includes the following steps: After the process verification is passed, the rejection and screening instructions are generated; According to the elimination and screening instructions and the plurality of insertion positions, the identification record information is eliminated and screened to obtain test record information; Get the directional transmission address; The test record information is transmitted in a directed manner according to the directed transmission address.
[0012] A psychological test system based on electroencephalogram, the system comprises a standard test judgment unit, a data insertion adjustment unit, a psychological test acquisition unit, a process verification judgment unit and an information screening and transmission unit, wherein: The standard test judgment unit is used to perform initialization environment adjustment according to the preset standard environment data, and perform initialization EEG psychological test according to the preset standard test data to judge whether the initialization test is passed; A data insertion and adjustment unit, used to obtain psychological test data after the initialization test is passed, and insert and adjust the psychological test data according to the standard test data to generate adjusted test data; A psychological test collection unit, used to perform psychological test stimulation on the target person according to the adjusted test data, and to collect real-time EEG data during the psychological test to obtain test collection data; A process verification judgment unit is used to preprocess, extract features and classify the test collection data, obtain identification record information, perform process verification on the identification record information, and determine whether the process verification is passed; The information screening and transmission unit is used to screen the identification record information, obtain the test record information, and perform directionally transmission on the test record information after the process verification is passed.
[0013] As a further limitation of the technical solution of the embodiment of the present invention, the standard test judgment unit specifically includes: A first data acquisition module, used to acquire standard environment data and standard test data; An environmental adjustment module, used to perform initial environmental adjustment of indoor temperature, indoor humidity and indoor lighting according to the standard environmental data; An initialization test module is used to perform an initialization psychological test of EEG according to the standard test data and obtain initialization test data; The verification and analysis module is used to perform verification and analysis on the initialization test data to determine whether the initialization test passes.
[0014] As a further limitation of the technical solution of the embodiment of the present invention, the data insertion adjustment unit specifically includes: A second data acquisition module is used to acquire psychological test data after the initialization test is passed; A first fragmentation processing module, used for performing fragmentation processing on the psychological test data to divide the psychological test data into a plurality of test fragments; A second fragmentation processing module, used for performing fragmentation processing on the standard test data to divide the standard test data into a plurality of test fragment data; A position selection module, used for selecting a plurality of insertion positions between a plurality of the test fragment data; The insertion adjustment module is used to insert and adjust the plurality of test segment data between the plurality of test segment data according to the plurality of insertion positions to generate adjusted test data.
[0015] As a further limitation of the technical solution of the embodiment of the present invention, the process verification judgment unit specifically includes: A data preprocessing module, used for preprocessing the test collected data by filtering, denoising and segmenting to obtain preprocessed data; A feature extraction module, used to extract the frequency, amplitude and phase features of the pre-processed data to obtain feature data; A classification and identification module, used to classify and identify the characteristic data and obtain identification record information; The process verification module is used to perform process verification on the identification record information according to the standard test data and the multiple insertion positions to determine whether the process verification is passed.
[0016] Compared with the prior art, the present invention has the following beneficial effects: The embodiment of the present invention performs initialization environment adjustment and initialization EEG psychological test according to preset standard environment data; after the initialization test is passed, the psychological test data is inserted and adjusted according to the standard test data to generate adjustment test data; psychological test stimulation is performed to obtain test acquisition data; identification record information is process-verified; after the process verification is passed, the identification record information is screened to obtain test record information, and the test record information is directionally transmitted. Before the psychological test is performed, the EEG psychological test can be initialized, and during the psychological test, the process verification can be performed. After the process verification is passed, the test record information can be screened to ensure the accuracy and reliability of the collected EEG data, thereby providing a basis for the subsequent accurate analysis of the psychological state of the subject. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.
[0018] Figure 1 A flow chart of a method provided by an embodiment of the present invention is shown.
[0019] Figure 2 The flowchart of initializing environmental adjustment and initializing EEG psychological test in the method provided by the embodiment of the present invention is shown.
[0020] Figure 3 A flow chart of generating adjustment test data in the method provided by an embodiment of the present invention is shown.
[0021] Figure 4 A flow chart of obtaining test collection data in the method provided in an embodiment of the present invention is shown.
[0022] Figure 5 A flow chart of process verification and pass judgment in the method provided by an embodiment of the present invention is shown.
[0023] Figure 6 A flow chart of obtaining test record information in the method provided in an embodiment of the present invention is shown.
[0024] Figure 7 The application architecture diagram of the system provided by the embodiment of the present invention is shown.
[0025] Figure 8 The structure block diagram of the standard test judgment unit in the system provided by the embodiment of the present invention is shown.
[0026] Fig. 9 A structural block diagram of a data insertion adjustment unit in a system provided by an embodiment of the present invention is shown.
[0027] Fig.10 The structure block diagram of the process verification judgment unit in the system provided by the embodiment of the present invention is shown. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0029] It is understandable that in the prior art, the application of EEG to psychological testing is just to provide psychological stimulation to the subjects according to certain pictures, sounds and / or video data, and then collect EEG data for analysis of the psychological test. Without a verification process, it is difficult to determine whether the collected EEG data is accurate and reliable. Therefore, it is impossible to accurately analyze the psychological state of the subjects.
[0030] To solve the above problems, the embodiment of the present invention performs initialization environment adjustment according to preset standard environment data, and performs initialization EEG psychological test according to preset standard test data to determine whether the initialization test is passed; after the initialization test is passed, psychological test data is obtained, and the psychological test data is inserted and adjusted according to the standard test data to generate adjustment test data; psychological test stimulation is performed on the target person according to the adjustment test data, and real-time EEG data collection is performed during the psychological test to obtain test collection data; preprocessing, feature extraction and classification recognition are performed on the test collection data to obtain recognition record information, and process verification is performed on the recognition record information to determine whether the process verification is passed; after the process verification is passed, the recognition record information is screened, the test record information is obtained, and the test record information is transmitted in a directional manner. Before the psychological test is performed, the initialization EEG psychological test can be performed, and process verification can be performed during the psychological test. After the process verification is passed, the test record information is screened and obtained to ensure the accuracy and reliability of the collected EEG data, thereby providing a basis for the subsequent accurate analysis of the psychological state of the subject.
[0031] Figure 1 A flow chart of a method provided by an embodiment of the present invention is shown.
[0032] Specifically, the EEG-based psychological testing method comprises the following steps: Step S101, perform initialization environment adjustment according to preset standard environment data, and perform initialization electroencephalographic psychological test according to preset standard test data to determine whether the initialization test passes.
[0033] In an embodiment of the present invention, before conducting a formal EEG psychological test, standard environmental data and standard test data are obtained, and then the indoor temperature, indoor humidity and indoor lighting of the test environment are initialized and adjusted according to the standard environmental data, so that the indoor temperature, indoor humidity and indoor lighting are adjusted to appropriate levels, and it is ensured that the environment is quiet and free of electromagnetic interference. After completing the initialization environmental adjustment, an EEG initialization psychological test is performed according to the standard test data, and the initialization test data is obtained. Then, according to the standard test results corresponding to the standard test data, the initialization test data is verified and analyzed to determine whether the initialization test passes. Specifically: if the initialization test data is the same as the standard test result, the initialization test passes; if the initialization test data is different from the standard test result, the initialization test fails.
[0034] Specifically, Figure 2 The flowchart of initializing environmental adjustment and initializing EEG psychological test in the method provided by the embodiment of the present invention is shown.
[0035] Among them, in the preferred embodiment provided by the present invention, the initialization environment adjustment is performed according to the preset standard environment data, and the initialization electroencephalogram psychological test is performed according to the preset standard test data, and judging whether the initialization test is passed specifically includes the following steps: Step S1011, obtaining standard environment data and standard test data; Step S1012, performing initialization environmental adjustment of indoor temperature, indoor humidity and indoor lighting according to the standard environmental data; Step S1013, performing an initialization psychological test of EEG according to the standard test data to obtain initialization test data; Step S1014, verify and analyze the initialization test data to determine whether the initialization test passes. The corresponding process has the following relationship: ; in, represents the probability of passing the initialization test, represents the number of test samples, Indicates n The characteristic value of the EEG test data of samples, Indicates n The characteristic value of the psychological state of samples, Indicates n The characteristic value of the environmental conditions of the samples, Respectively represent the weighting coefficients corresponding to EEG test, psychological state and environmental conditions, represents the adjustment coefficient of the standard deviation term, They represent the means of the characteristic values of EEG test data, psychological state and environmental conditions in all samples respectively; represents the attenuation coefficient used to control the exponential function, Represents an exponential function related to the sample size.
[0036] In the above process of judging whether the initialization test is passed, the present invention uses the weighted average term Different eigenvalues are combined according to their importance. The weight of each eigenvalue can be adjusted to reflect its importance to the overall test results. This allows fine-tuning the model in different test situations, thereby increasing flexibility. And the standard deviation term is introduced It can capture the stability and consistency of test data. For tests that require stable results, this term can help identify abnormal fluctuations in the data. During the calculation process, the exponential decay term can also be used to adjust the impact of the number of samples on the overall evaluation results, ensuring that the model is not overly sensitive when the number of samples is small, and not too slow when the number of samples is large.
[0037] Furthermore, the EEG-based psychological testing method further comprises the following steps: Step S102, after the initialization test is passed, psychological test data is obtained, and the psychological test data is inserted and adjusted according to the standard test data to generate adjusted test data.
[0038] In an embodiment of the present invention, after the initialization test is passed, psychological test data is obtained, and then the psychological test data is fragmented (for example: different video data, image data and / or audio data in the psychological test data are segmented to achieve fragmentation), divided into multiple test segment data, and the standard test data is fragmented (similarly, different video data, image data and / or audio data in the standard test data are segmented to achieve fragmentation), divided into multiple test segment data, and multiple insertion positions are randomly selected between the multiple test segment data, and then the multiple test segment data are inserted and adjusted according to the multiple insertion positions between the multiple test segment data to generate adjusted test data.
[0039] Specifically, Figure 3 A flow chart of generating adjustment test data in the method provided by an embodiment of the present invention is shown.
[0040] Among them, in the preferred embodiment provided by the present invention, after the initialization test is passed, the psychological test data is obtained, and the psychological test data is inserted and adjusted according to the standard test data, and the generation of the adjusted test data specifically includes the following steps: Step S1021, after the initialization test is passed, obtaining psychological test data; Step S1022, segmenting the psychological test data into multiple test segment data; Step S1023, performing segmentation processing on the standard test data to divide it into a plurality of test segment data; Step S1024, selecting multiple insertion positions between the multiple test fragment data; Step S1025, inserting and adjusting the plurality of test segment data between the plurality of test segment data according to the plurality of insertion positions to generate adjusted test data, and the corresponding process has the following relational expression: ; in, Indicates the first j Adjust the test data, Indicates the number of test fragment data, Indicates Test fragment data, Indicates the maximum value of the test fragment data. Indicates the number of test fragment data, Indicates Number of test segments, Represents the maximum absolute value of the difference between all possible insertion positions and the insertion position, Indicates The insertion position of the test fragment, Indicates The insertion position of each test segment; Represents the adjustment factor, which is used to control the degree of nonlinearity of the interpolation adjustment.
[0041] In the above process of generating the adjusted test data, the present invention normalizes each test segment data and calculates its contribution value, ensuring that the influence of each test segment data is adjusted according to its relative size, avoiding the influence of segments that are too large or too small being too significant. In addition, the adjustment value of each test segment data at the insertion position is calculated, and the relative weight of the test segment data, the normalized weight of the distance between the insertion positions, and the cosine function adjustment item are used as the determining factors of the adjustment value, ensuring that the generated adjusted test data is more realistic and diverse, so that the generated adjusted test data is closer to the actual situation.
[0042] Furthermore, the EEG-based psychological testing method further comprises the following steps: Step S103, according to the adjusted test data, psychological test stimulation is performed on the target person, and real-time EEG data is collected during the psychological test to obtain test collection data.
[0043] In an embodiment of the present invention, psychological test stimulation is performed on the target person according to the adjusted test data, and during the psychological test, the EEG amplifier is started to record the time and order of stimulus presentation to ensure synchronization between the stimulation and the EEG data, and the EEG data is collected and synchronized according to the order and time of the psychological test stimulation to obtain the test collection data.
[0044] Specifically, Figure 4 A flow chart of obtaining test collection data in the method provided in an embodiment of the present invention is shown.
[0045] Among them, in the preferred embodiment provided by the present invention, the psychological test stimulation is performed on the target person according to the adjusted test data, and real-time EEG data is collected during the psychological test, and obtaining the test collection data specifically includes the following steps: Step S1031, performing psychological test stimulation on the target person according to the adjusted test data; Step S1032, during the psychological test, starting the EEG amplifier; Step S1033, collect and synchronize EEG data according to the order and time of psychological test stimulation to obtain test collection data. The corresponding process has the following relationship: ; in, Indicates at time t The test data obtained is represents the number of psychological test stimuli, Indicates at time t The collected i EEG data signals under psychological test stimulation, Indicates i The timing of the psychological test stimulus, Represents the width control parameter of the Gaussian function; represents the Gaussian function used to weight the EEG data signal, centered at time , the width is determined by the parameter control; represents the parameter that controls the decay speed of the Gaussian function. Indicates i The intensity of the stimulus in a psychological test, represents the frequency control parameter of the sine function, represents the phase control parameter of the sine function; represents the sinusoidal function used to simulate the effect of psychological test stimulation on EEG data, with frequency given by Control, phase is determined by control; represents the Sigmoid function used to smooth the effect of psychological test stimulation on EEG data, Represents the parameter that controls the steepness of the Sigmoid function.
[0046] In the above process of obtaining the test acquisition data, the present invention uses the weighted term of the EEG data signal Each EEG data signal is weighted, and the weight is controlled by a Gaussian function, with the center at i The time point of psychological test stimulation is smoothly weighted by Gaussian function, so that the EEG data signal weight closer to the time point is larger, which increases the smoothness and reliability of the data. Simulate the impact of psychological test stimulation on EEG data and reflect the complex impact of stimulation on EEG signals. This multi-factor combination method can accurately simulate the impact of psychological test stimulation on EEG data, taking into account multiple factors such as frequency, phase, time distance and nonlinearity, and achieve accurate capture and processing of EEG signals during psychological testing.
[0047] Furthermore, the EEG-based psychological testing method further comprises the following steps: Step S104, preprocessing, feature extraction and classification recognition are performed on the test collection data, recognition record information is obtained, process verification is performed on the recognition record information, and whether the process verification is passed is determined.
[0048] In an embodiment of the present invention, the test acquisition data is pre-processed by filtering, denoising and segmenting to obtain pre-processed data, and then the pre-processed data is subjected to feature extraction of frequency, amplitude and phase (common features include alpha waves (8-13Hz), beta waves (13-30Hz) etc.) to obtain feature data, and the feature data is classified and identified to distinguish different psychological states, such as relaxation, anxiety, excitement etc., to obtain identification record information, and then, the identification record information is process-verified according to standard test data and multiple insertion positions to determine whether the process verification has passed.
[0049] Specifically, Figure 5 A flow chart of process verification and pass judgment in the method provided by an embodiment of the present invention is shown.
[0050] Among them, in the preferred embodiment provided by the present invention, the preprocessing, feature extraction and classification identification of the test collection data, obtaining identification record information, and process verification of the identification record information, and determining whether the process verification is passed specifically include the following steps: Step S1041, performing filtering, denoising and segmentation preprocessing on the test collection data to obtain preprocessed data; Step S1042, extracting the frequency, amplitude and phase features of the pre-processed data to obtain feature data; Step S1043, classify and identify the characteristic data to obtain identification record information; Step S1044, performing process verification on the identification record information according to the standard test data and the plurality of insertion positions, and determining whether the process verification passes.
[0051] Furthermore, the EEG-based psychological testing method further comprises the following steps: Step S105, after the process verification is passed, the identification record information is screened, the test record information is acquired, and the test record information is directed transmitted.
[0052] In an embodiment of the present invention, after the process verification is passed, a removal and filtering instruction is generated. At this time, according to the removal and filtering instruction, the information corresponding to multiple insertion positions in the identification record information is removed, thereby filtering and obtaining the test record information, and obtaining the directional transmission address, and then according to the directional transmission address, the test record information is directed and transmitted.
[0053] Specifically, Figure 6 A flow chart of obtaining test record information in the method provided in an embodiment of the present invention is shown.
[0054] Among them, in the preferred embodiment provided by the present invention, after the process verification is passed, the identification record information is screened, the test record information is obtained, and the test record information is directed to be transmitted, which specifically includes the following steps: Step S1051, after the process verification is passed, a rejection and screening instruction is generated; Step S1052, according to the elimination and screening instruction and the plurality of the insertion positions, the identification record information is eliminated and screened to obtain test record information; Step S1053, obtaining a directional transmission address; Step S1054: Directly transmit the test record information according to the directed transmission address.
[0055] Furthermore, Figure 7 The application architecture diagram of the system provided by the embodiment of the present invention is shown.
[0056] Among them, in another preferred embodiment provided by the present invention, the EEG-based psychological testing system includes: The standard test judgment unit 101 is used to perform initialization environment adjustment according to preset standard environment data, and perform initialization electroencephalographic psychological test according to preset standard test data to judge whether the initialization test is passed.
[0057] In an embodiment of the present invention, before conducting a formal EEG psychological test, the standard test judgment unit 101 obtains standard environmental data and standard test data, and then performs initialization environmental adjustments on the indoor temperature, indoor humidity and indoor lighting of the test environment according to the standard environmental data, so that the indoor temperature, indoor humidity and indoor lighting are adjusted to appropriate levels, and ensure that the environment is quiet and free of electromagnetic interference. After completing the initialization environmental adjustment, an EEG initialization psychological test is performed according to the standard test data, and the initialization test data is obtained. Then, according to the standard test results corresponding to the standard test data, the initialization test data is verified and analyzed to determine whether the initialization test passes. Specifically: if the initialization test data is the same as the standard test result, the initialization test passes; if the initialization test data is different from the standard test result, the initialization test fails.
[0058] Specifically, Figure 8 It shows a structural block diagram of the standard test judgment unit 101 in the system provided by the embodiment of the present invention.
[0059] Among them, in the preferred embodiment provided by the present invention, the standard test judgment unit 101 specifically includes: The first data acquisition module 1011 is used to acquire standard environment data and standard test data; The environment adjustment module 1012 is used to perform initial environment adjustment of indoor temperature, indoor humidity and indoor lighting according to the standard environment data; Initialization test module 1013, used to perform an initialization psychological test of EEG according to the standard test data and obtain initialization test data; The verification and analysis module 1014 is used to perform verification and analysis on the initialization test data to determine whether the initialization test passes.
[0060] Furthermore, the EEG-based psychological testing system also includes: The data insertion and adjustment unit 102 is used to obtain psychological test data after the initialization test is passed, and to insert and adjust the psychological test data according to the standard test data to generate adjusted test data.
[0061] In an embodiment of the present invention, after the initialization test is passed, the data insertion adjustment unit 102 obtains the psychological test data, and then performs fragmentation processing on the psychological test data (for example: different video data, image data and / or audio data in the psychological test data are segmented to achieve fragmentation processing), divided into multiple test segment data, and the standard test data is segmented (similarly, different video data, image data and / or audio data in the standard test data are segmented to achieve fragmentation processing), divided into multiple test segment data, and multiple insertion positions are randomly selected between the multiple test segment data, and then the multiple test segment data are inserted and adjusted according to the multiple insertion positions between the multiple test segment data to generate adjusted test data.
[0062] Specifically, Fig. 9 It shows a structural block diagram of the data insertion adjustment unit 102 in the system provided by an embodiment of the present invention.
[0063] Among them, in the preferred implementation manner provided by the present invention, the data insertion adjustment unit 102 specifically includes: The second data acquisition module 1021 is used to acquire psychological test data after the initialization test is passed; A first fragmentation processing module 1022, used for fragmentation processing of the psychological test data to divide the psychological test data into a plurality of test fragments; A second fragmentation processing module 1023, configured to perform fragmentation processing on the standard test data to divide the standard test data into a plurality of test fragment data; A position selection module 1024, configured to select a plurality of insertion positions between the plurality of test segment data; The insertion adjustment module 1025 is used to insert and adjust the plurality of test segment data between the plurality of test segment data according to the plurality of insertion positions to generate adjusted test data.
[0064] Furthermore, the EEG-based psychological testing system also includes: The psychological test collection unit 103 is used to perform psychological test stimulation on the target person according to the adjusted test data, and to collect real-time EEG data during the psychological test to obtain test collection data.
[0065] In an embodiment of the present invention, the psychological test acquisition unit 103 performs psychological test stimulation on the target person according to the adjusted test data, and during the psychological test, starts the EEG amplifier to record the time and sequence of stimulus presentation to ensure synchronization between the stimulation and the EEG data, and collects and synchronizes the EEG data in the sequence and time of the psychological test stimulation to obtain the test acquisition data.
[0066] The process verification judgment unit 104 is used to pre-process, extract features and classify the test collection data, obtain identification record information, perform process verification on the identification record information, and judge whether the process verification is passed.
[0067] In the embodiment of the present invention, the process verification judgment unit 104 obtains preprocessed data by filtering, denoising and segmenting the test acquisition data, and then extracts the characteristics of frequency, amplitude and phase of the preprocessed data (common characteristics include alpha waves (8-13Hz), beta waves (13-30Hz) etc.), obtains feature data, classifies and identifies the feature data to distinguish different psychological states, such as relaxation, anxiety, excitement, etc., to obtain identification record information, and then, according to the standard test data and multiple insertion positions, performs process verification on the identification record information to determine whether the process verification is passed.
[0068] Specifically, Fig.10 It shows a structural block diagram of the process verification judgment unit 104 in the system provided by the embodiment of the present invention.
[0069] Among them, in the preferred embodiment provided by the present invention, the process verification judgment unit 104 specifically includes: The data preprocessing module 1041 is used to perform filtering, denoising and segmentation preprocessing on the test collection data to obtain preprocessed data; A feature extraction module 1042 is used to extract the frequency, amplitude and phase features of the pre-processed data to obtain feature data; The classification and identification module 1043 is used to classify and identify the characteristic data and obtain identification record information; The process verification module 1044 is used to perform process verification on the identification record information according to the standard test data and the multiple insertion positions to determine whether the process verification is passed.
[0070] Furthermore, the EEG-based psychological testing system also includes: The information screening and transmission unit 105 is used to screen the identification record information, obtain the test record information, and perform directionally transmission on the test record information after the process verification is passed.
[0071] In an embodiment of the present invention, after the process verification is passed, the information filtering and transmission unit 105 generates a removal filtering instruction. At this time, according to the removal filtering instruction, the information corresponding to multiple insertion positions in the identification record information is removed, thereby filtering and obtaining the test record information, and obtaining the directional transmission address, and then according to the directional transmission address, the test record information is directed and transmitted.
[0072] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0073] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0074] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0075] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
[0076] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A psychological testing method based on electroencephalogram, characterized in that: The method specifically comprises the following steps: Perform initialization environment adjustment according to preset standard environment data, and perform initialization EEG psychological test according to preset standard test data to determine whether the initialization test has passed; After the initialization test is passed, psychological test data is obtained, and the psychological test data is inserted and adjusted according to the standard test data to generate adjusted test data; According to the adjusted test data, psychological test stimulation is performed on the target person, and real-time EEG data is collected during the psychological test to obtain test collection data; Preprocessing, feature extraction and classification recognition are performed on the test collection data to obtain recognition record information, and process verification is performed on the recognition record information to determine whether the process verification has passed; After the process verification is passed, the identification record information is screened, the test record information is obtained, and the test record information is directed and transmitted; The initialization environment adjustment is performed according to the preset standard environment data, and the initialization electroencephalogram psychological test is performed according to the preset standard test data, and judging whether the initialization test is passed specifically includes the following steps: Obtain standard environmental data and standard test data; Performing initial environmental adjustments of indoor temperature, indoor humidity and indoor lighting according to the standard environmental data; According to the standard test data, an initialization psychological test of EEG is performed to obtain initialization test data; The initialization test data is verified and analyzed to determine whether the initialization test passes.
2. The EEG-based psychological testing method according to claim 1, characterized in that: The initialization test data is verified and analyzed to determine whether the initialization test passes. The corresponding process has the following relationship: ; in, represents the probability of passing the initialization test, represents the number of test samples, Indicates n The characteristic value of the EEG test data of samples, Indicates n The characteristic value of the psychological state of samples, Indicates n The characteristic value of the environmental conditions of the samples, Respectively represent the weighting coefficients corresponding to EEG test, psychological state and environmental conditions, represents the adjustment coefficient of the standard deviation term, They represent the means of the characteristic values of EEG test data, psychological state and environmental conditions in all samples respectively; represents the attenuation coefficient used to control the exponential function, Represents an exponential function related to the sample size.
3. The EEG-based psychological testing method according to claim 2, characterized in that: After the initialization test is passed, the psychological test data is obtained, and the psychological test data is inserted and adjusted according to the standard test data. The generation of the adjusted test data specifically includes the following steps: After the initialization test is passed, obtain the psychological test data; Segmenting the psychological test data into a plurality of test segment data; Performing fragmentation processing on the standard test data to divide it into a plurality of test fragment data; Selecting multiple insertion positions between the multiple test fragment data; The plurality of test segment data are inserted and adjusted between the plurality of test segment data according to the plurality of insertion positions to generate adjusted test data.
4. The EEG-based psychological testing method according to claim 3, characterized in that: According to the plurality of insertion positions, the plurality of test segment data are inserted and adjusted between the plurality of test segment data to generate adjusted test data. The corresponding process has the following relational expression: ; in, Indicates the first j Adjust the test data, Indicates the number of test fragment data, Indicates Test fragment data, Indicates the maximum value of the test fragment data. Indicates the number of test fragment data, Indicates Number of test segments, Represents the maximum absolute value of the difference between all possible insertion positions and the insertion position, Indicates The insertion position of the test fragment, Indicates The insertion position of each test segment; Represents the adjustment factor, which is used to control the degree of nonlinearity of the interpolation adjustment.
5. The EEG-based psychological testing method according to claim 4, characterized in that: According to the adjustment test data, psychological test stimulation is performed on the target person, and real-time EEG data is collected during the psychological test. Acquiring the test collection data specifically includes the following steps: Conducting psychological testing stimulation on the target person according to the adjusted test data; During the psychological testing, the EEG amplifier was turned on; According to the order and time of psychological test stimulation, EEG data is collected and synchronized to obtain test collection data.
6. The EEG-based psychological testing method according to claim 5, characterized in that: According to the order and time of psychological test stimulation, EEG data is collected and synchronized to obtain test data. The corresponding process has the following relationship: ; in, Indicates at time t The test data obtained is represents the number of psychological test stimuli, Indicates at time t The collected i EEG data signals under psychological test stimulation, Indicates i The timing of the psychological test stimulus, Represents the width control parameter of the Gaussian function; represents the Gaussian function used to weight the EEG data signal, centered at time , the width is determined by the parameter control; represents the parameter that controls the decay speed of the Gaussian function. Indicates i The intensity of the stimulus in a psychological test, represents the frequency control parameter of the sine function, represents the phase control parameter of the sine function; represents the sinusoidal function used to simulate the effect of psychological test stimulation on EEG data, with frequency given by Control, phase is determined by control; represents the Sigmoid function used to smooth the effect of psychological test stimulation on EEG data, Represents the parameter that controls the steepness of the Sigmoid function.
7. The EEG-based psychological testing method according to claim 6, characterized in that: The preprocessing, feature extraction and classification identification of the test collection data, obtaining identification record information, performing process verification on the identification record information, and determining whether the process verification is passed specifically include the following steps: Preprocessing the test data by filtering, denoising and segmenting to obtain preprocessed data; Extracting the frequency, amplitude and phase characteristics of the preprocessed data to obtain characteristic data; Classify and identify the characteristic data to obtain identification record information; According to the standard test data and the plurality of insertion positions, the identification record information is subjected to process verification to determine whether the process verification has passed.
8. The EEG-based psychological testing method according to claim 7, characterized in that: After the process verification is passed, screening the identification record information, obtaining the test record information, and directional transmission of the test record information specifically includes the following steps: After the process verification is passed, the rejection and screening instructions are generated; According to the elimination and screening instructions and the plurality of insertion positions, the identification record information is eliminated and screened to obtain test record information; Get the directional transmission address; The test record information is transmitted in a directed manner according to the directed transmission address.
9. A psychological testing system based on EEG, characterized in that: The system applies the EEG-based psychological testing method as described in any one of claims 1 to 8 above, and the system includes a standard test judgment unit, a data insertion adjustment unit, a psychological test acquisition unit, a process verification judgment unit and an information screening and transmission unit, wherein: The standard test judgment unit is used to perform initialization environment adjustment according to the preset standard environment data, and perform initialization EEG psychological test according to the preset standard test data to judge whether the initialization test is passed; A data insertion and adjustment unit, used to obtain psychological test data after the initialization test is passed, and insert and adjust the psychological test data according to the standard test data to generate adjusted test data; A psychological test collection unit, used to perform psychological test stimulation on the target person according to the adjusted test data, and to collect real-time EEG data during the psychological test to obtain test collection data; A process verification judgment unit is used to preprocess, extract features and classify the test collection data, obtain identification record information, perform process verification on the identification record information, and determine whether the process verification is passed; The information screening and transmission unit is used to screen the identification record information, obtain the test record information, and transmit the test record information in a targeted manner after the process verification is passed.
Citation Information
Patent Citations
Brain wave analysis method and terminal
CN113180697A
Electroencephalogram signal quality detection method and device, electronic equipment and storage medium
CN113288175A
Electroencephalogram biological signal detection method and device
CN115886843A
P300 electroencephalogram processing method based on psychological expectation modulation effect
CN116392147A
Heart rate detection system based on artificial intelligence
CN118806283A