A method for mining abnormal psychological latent variables
The auto-encoding model is used to compress the characteristics of psychological scale data, and construct an auto-encoding and anomaly model of psychological latent variables, which solves the problem of difficulty in quantitative perception of dynamic changes in psychological latent variables, realizes dynamic monitoring of psychological states and abnormal identification, and improves analysis accuracy of results.
Patent Information
- Application Number
- CN202410917757.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-10
AI Technical Summary
It is difficult to quantitatively perceive the dynamic changes of psychological latent variables with existing technology, resulting in inaccurate analysis results.
The auto-encoding model is used to compress the features of psychological scale data. By constructing a psychological latent variable auto-encoding model and an abnormality model, the state changes of the psychological latent variables are detected to achieve dynamic quantitative perception of psychological state and abnormal early warning.
Using the autoencoding model to compress the features of psychological scale items can accurately represent the state of psychological latent variables, achieve dynamic change monitoring and abnormal identification of psychological states, and improve the accuracy of analysis results.
Smart Images

Figure CN118471538B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of data mining, and in particular relates to a method for mining abnormal psychological latent variables. Background Art
[0002] Psychological latent variables refer to abstract psychological states or characteristics that cannot be directly observed or measured in psychological research, but have potential variables that affect individual psychology and behavior. These variables may include individual personality traits, emotional states, cognitive styles, motivation levels, etc. These variables are usually reflected indirectly through a series of explicit variables, so they have important theoretical and application value in practical research.
[0003] In psychology, psychological latent variables are often used to explain and predict individual psychological characteristics, behaviors, and psychological processes. For example, in personality psychology, researchers may use latent variable models to explore the associations and interactions between different personality traits; in cognitive psychology, researchers may use latent variable models to understand individual cognitive processes and decision-making processes.
[0004] Psychological latent variables are widely used in many fields. For example, in the study of shared bicycle travel choice behavior, psychological latent variables such as perceived usefulness, perceived risk, and environmental awareness were considered to enhance the explanatory power of the model.
[0005] In psychological research, latent variables usually need to be measured and analyzed indirectly. For example, through questionnaire surveys, behavioral observations, experimental design and other methods, the data of explicit variables related to latent variables are collected, and then statistical analysis or other data analysis techniques are used to infer the existence and characteristics of latent variables.
[0006] In the existing technology, psychological assessment of personnel is usually based on psychological scales and interviews. With the development of AI, there are many methods that use machine learning and artificial intelligence to deeply mine previous data and accurately identify psychological states. There are also many technologies that use multimodal methods such as dialogues and pictures to detect psychological states. However, it is difficult for current methods to quantify the dynamic changes of hidden psychological states, resulting in inaccurate analysis results. Summary of the invention
[0007] The purpose of the present invention is to provide a method for mining abnormal psychological latent variables, which compresses the features of personnel scale questions through an autoencoder model. The compressed features can be expressed as the psychological latent variable state of the personnel, and the psychological state warning is performed by detecting the change of the psychological latent variable state. This solves the technical problems of the lack of quantitative perception of the dynamic changes of psychological latent variables and inaccurate analysis results in the prior art.
[0008] In order to solve the above technical problems, a psychological latent variable abnormal mining method of the present invention comprises the following steps:
[0009] Step S1: Collect personnel scale data and record it as ,in is the number of scales collected, X i =[ x 1 i , x 2 i ,…, x M i ] , For the collection scale data as the input scale for mining abnormal psychological latent variables; among them, is the number of scale questions, and the set of scale questions is ; For the The first scale question option of the scale; at the same time, obtain Neutron Set The label data of whether there is psychological abnormality is recorded as ;
[0010] Step S2: construct a psychological latent variable autoencoding model, which consists of an encoder and a decoder; the input scale is compressed by the encoder to obtain the psychological latent variable, and the psychological latent variable is restored by the decoder to obtain the output scale;
[0011] Step S3: Collecting personnel scale data , train the psychological latent variable autoencoder model;
[0012] Step S4: construct a psychological latent variable abnormal model, and use a classifier to train the scale data to obtain the psychological latent variable abnormal model;
[0013] Step S5: When mining the abnormality of psychological latent variables of the persons to be tested, first collect the scale data of the persons to be tested, input the scale data into the trained psychological latent variable autoencoder model to obtain the psychological latent variables, and input the psychological latent variables into the trained psychological latent variable abnormality model to output the probability of psychological abnormality.
[0014] Furthermore, the encoder and the decoder are respectively composed of four linearizers and three linear rectification functions; the encoder and the decoder alternately pass through the linearizer and the linear rectification function, i.e., linearizer->linear rectification function->linearizer->linear rectification function->linearizer->linear rectification function->linearizer.
[0015] Furthermore, the input scale After feature compression by the encoder, the psychological latent variable is obtained. The psychological latent variable state is expressed as , the feature compression of the encoder is achieved by the following formula:
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024] in, , , , is the output of the data after passing through different linearizers, , , is the output of the data after the linear rectification function; Represents a 32* The matrix parameters of The number of latent variable dimensions set by the user, Represents the fourth offset vector parameter, Represents a 64*32 matrix parameter, Represents the third offset vector parameter, Represents a 128*64 matrix parameter, Represents the second offset vector parameter, Indicates a *128 matrix parameters, Represents the first offset vector parameter; , , , , , , , Need to learn through training.
[0025] Furthermore, the psychological latent variables are decoded by the decoder to obtain the output scale, which is expressed as , which is achieved through the following formula:
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034] in, , , , is the output of the data after passing through different linearizers, , , is the output of the data after the linear rectification function; Represents a 128* The matrix parameters of Represents the 8th offset vector parameter, Represents a 64*128 matrix parameter, Represents the 7th offset vector parameter, Represents a 32*64 matrix parameter, Represents the sixth offset vector parameter, Indicates a * 32 matrix parameters, Represents the fifth offset vector parameter; , , , , , , , Need to learn through training.
[0035] Furthermore, the loss function for training the autoencoder model is:
[0036]
[0037] in, Represents the modulo 2 norm.
[0038] Furthermore, it also includes measuring the dynamic quantitative changes of psychological latent variables, which is achieved by the following methods:
[0039] Ask users to complete a set of questionnaires on their first visit Fill in the questionnaire Static Question Set Dynamic Question Set ,get ;
[0040] The encoder using the psychological latent variable autoencoder model will Converted into psychological latent variables, the psychological latent variable state is recorded as , Y 1 =[ y 1 1 ,…, y i 1 …, y K 1 ] , is the first psychological latent variable state of the user's first visit. For users visiting for the first time psychological latent variable state, For users visiting for the first time A psychological latent variable state;
[0041] When the user visits for the t-1th time, the user is asked to complete the dynamic set of questions in the scale set again. , and combined with the static question set of the first visit to form the t-1th data ; The encoder using the psychological latent variable autoencoder model will Converted into psychological latent variables, the psychological latent variable state is recorded as , Y t-1 =[ y 1 t-1 ,…, y i t-1 …, y K t-1 ] , is the first psychological latent variable state of the user's t-1th visit. Similarly is the user's t-1th visit psychological latent variable state, is the user's t-1th visit A psychological latent variable state;
[0042] When the user visits for the tth time, the tth data is generated , the encoder using the psychological latent variable autoencoder model will Converted into psychological latent variables, the psychological latent variable state is recorded as , Y t =[ y 1 t ,…, y i t …, y K t ] , is the first psychological latent variable state of the user's t-th visit. Similarly, The tth visit of the user psychological latent variable state, The tth visit of the user A psychological latent variable state;
[0043] Will and Compare the elements, and the absolute difference is the quantitative value of the change in the psychological latent variable state. When the quantitative value of the change in the psychological latent variable state is greater than the preset minimum change perception value , then it is included in the quantitative value of the change in the state of the psychological latent variable In the case of a fire, an early warning is given;
[0044] e i t = y i t - y i t-1 ,i∈[1,K]
[0045]
[0046] ;
[0047] in, The tth visit of the user The psychological latent variable state is related to the user's t-1th visit The quantitative value of the change in the state of a psychological latent variable; It is the quantitative value of the change in the state of the user's psychological latent variables between the user's t-th visit and the t-1-th visit.
[0048] Furthermore, the psychological latent variables are input into the trained psychological latent variable abnormal model to output the probability of psychological abnormality, and an early warning is issued when there is an abnormality.
[0049] Compared with the prior art, the present invention has the following beneficial technical effects: the present invention compresses the features of personnel scale questions through an autoencoding model, and the compressed features can be expressed as the psychological latent variable state of the personnel, and abnormality identification can be achieved by using the psychological latent variable abnormality model; the present invention can also monitor the abnormality of the psychological state by detecting the changes in the psychological latent variable state. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0051] Figure 1 It is a schematic diagram of the psychological latent variable autoencoding model of the present invention.
[0052] Figure 2 It is a schematic diagram of the abnormal psychological latent variable model of the present invention.
[0053] Figure 3 It is a schematic diagram of the dynamic quantitative detection of psychological latent variables of the present invention. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] The present invention proposes a method for mining abnormal psychological latent variables, comprising the following steps:
[0056] Step S1: Collect enough personnel scale data ,in is the number of scales collected, X i =[ x 1 i , x 2 i ,…, x M i ] , For the collection scale data as the input scale for mining abnormal psychological latent variables; among them, is the number of scale questions, and the set of scale questions is ; For the At the same time, get Neutron Set The label data of whether there is psychological abnormality is recorded as .
[0057] Step S2: Construct a psychological latent variable autoencoder model, which consists of an encoder and a decoder, such as Figure 1 The input scale is compressed by the encoder to obtain the psychological latent variable, and the psychological latent variable is restored by the decoder to obtain the output scale.
[0058] Specifically, the encoder and the decoder are respectively composed of four linearizers and three linear rectification functions; the encoder and the decoder alternately pass through the linearizer and the linear rectification function, that is, linearizer->linear rectification function->linearizer->linear rectification function->linearizer->linear rectification function->linearizer.
[0059] After the input scale is compressed by the encoder, the psychological latent variables are obtained by the following method:
[0060] Input scale First, an input from the encoder The linearizer outputs a vector of length 128 and a vector of length 128. The output after the linearizer is:
[0061]
[0062] in, Indicates a *128 matrix parameters are parameters that need to be learned through training. Represents the first offset vector parameter, which is a parameter that needs to be learned through training.
[0063] Then it passes through a linear rectification function, and the output after the linear rectification function is:
[0064]
[0065] Then pass through a linearizer that inputs a 128-length vector and outputs a 64-length vector. The output after the linearizer is:
[0066]
[0067] in, Represents a 128*64 matrix parameter, which is a parameter that needs to be learned through training. Represents the second offset vector parameter, which is a parameter that needs to be learned through training.
[0068] Then it passes through a linear rectification function, and the output after the linear rectification function is:
[0069]
[0070] Then pass through a linearizer that inputs a 64-length vector and outputs a 32-length vector. The output after the linearizer is:
[0071]
[0072] in, Represents a 64*32 matrix parameter, which is a parameter that needs to be learned through training. Represents the third offset vector parameter, which is a parameter that needs to be learned through training.
[0073] Then it passes through a linear rectification function, and the output after the linear rectification function is:
[0074]
[0075] Then pass through an input 32 length vector and output The linearizer of the length vector, the output after the linearizer is:
[0076]
[0077] in, Represents a 32* The matrix parameters are the parameters that need to be learned through training. The number of latent variable dimensions set by the user, Represents the fourth offset vector parameter, which is a parameter that needs to be learned through training.
[0078] Input scale After feature compression by the encoder, the psychological latent variable is obtained, and the psychological latent variable state is expressed as Indicates that the feature compression of the encoder is achieved by the following formula:
[0079]
[0080] The psychological latent variable state obtained after each scale is compressed by the encoder is expressed as: Y i =[ y 1 i , y 2 i ,…, y K i ] ,in, is the number of dimensions of latent variables, Much smaller than , that is, the number of dimensions of latent variables is much smaller than the number of scale questions. For the The first psychological latent variable state of the scale, similarly For the The second psychological latent variable state of the scale is For the The first A psychological latent variable state.
[0081] The psychological latent variable is output through the decoder to obtain the output scale, which is expressed as Obtained by:
[0082] The psychological latent variable first passes through an input of the decoder The linearizer has a length vector and outputs a 32-length vector. The output after the linearizer is:
[0083]
[0084] in, Indicates a *The matrix parameters of 32 are the parameters that need to be learned through training. Represents the fifth offset vector parameter, which is a parameter that needs to be learned through training.
[0085] Then it passes through a linear rectification function, and the output after the linear rectification function is:
[0086]
[0087] Then pass through a linearizer that inputs a 32-length vector and outputs a 64-length vector. The output after the linearizer is:
[0088]
[0089] in, Represents a 32*64 matrix parameter, which is a parameter that needs to be learned through training. Represents the sixth offset vector parameter, which is a parameter that needs to be learned through training.
[0090] Then it passes through a linear rectification function, and the output after the linear rectification function is:
[0091]
[0092] Then pass through a linearizer that inputs a 64-length vector and outputs a 128-length vector. The output after the linearizer is:
[0093]
[0094] in, Represents a 64*128 matrix parameter, which is a parameter that needs to be learned through training. Represents the seventh offset vector parameter, which is a parameter that needs to be learned through training.
[0095] Then it passes through a linear rectification function, and the output after the linear rectification function is:
[0096]
[0097] Then after an input 128 length vector, output The linearizer of the length vector, the output after the linearizer is:
[0098]
[0099] in, Represents a 128* The matrix parameters are the parameters that need to be learned through training. Represents the 8th offset vector parameter, which is a parameter that needs to be learned through training.
[0100] The psychological latent variables are decoded by the decoder to obtain the output scale, and the implementation formula is as follows:
[0101]
[0102] Step S3: Collecting personnel scale data , train the psychological latent variable autoencoder model.
[0103] The loss function for training is:
[0104]
[0105] in, represents the modulo 2 norm; Is the guaranteed input scale Can be compressed into a hidden variable state The output scale that can be recovered by the decoder Try to be equal to the input scale , is the psychological latent variable state after expectation compression It can conform to the normal distribution with a mean of 0.5 as much as possible, that is, Through training, we can extract the psychological latent variable state Encoder .
[0106] Step S4: Construct a psychological latent variable abnormal model, such as Figure 2 As shown, the classifier is used to train the scale data to obtain the psychological latent variable abnormality model.
[0107] Specifically, obtain the scale data Subset data , subset data After compression by the encoder, the psychological latent variable state is obtained , the corresponding label of whether there is psychological abnormality is , use any classification model for training to obtain a psychological latent variable abnormal model. The classification models used in the present invention are SVM (Support Vector Machine), logistic regression, MLP (Multilayer Perceptron), and RF (Random Forest).
[0108] Step S5: When mining the abnormality of psychological latent variables of the persons to be tested, first collect the scale data of the persons to be tested, input the scale data into the trained psychological latent variable autoencoder model to obtain the psychological latent variables, and input the psychological latent variables into the trained psychological latent variable abnormality model to output the probability of psychological abnormality.
[0109] Specifically, the input scale After feature compression by the encoder, the psychological latent variable is obtained, and the psychological latent variable state Input the trained psychological latent variable anomaly model to obtain the probability of psychological anomaly .
[0110] The following is a specific example to illustrate the measurement of the dynamic quantitative change of the psychological latent variable state. Figure 3 shown.
[0111] Ask users to complete a set of questionnaires on their first visit Fill in the questionnaire Divided into static question sets such as personality Dynamic question sets such as recent performance ,get .
[0112] if If there is a null value in , use To fill missing values, you can choose any missing value filling method that can ensure consistency with the original data specifications, such as majority filling, KNN filling, but mean filling cannot be used.
[0113] The encoder using the psychological latent variable autoencoder model will Converted into psychological latent variables, the psychological latent variable state is recorded as , Y 1 =[ y 1 1 ,…, y i 1 …, y K 1 ] , is the first psychological latent variable state of the user's first visit. For users visiting for the first time psychological latent variable state, For users visiting for the first time A psychological latent variable state.
[0114] When the user visits for the t-1th time, the user is asked to complete the dynamic set of questions in the scale set again. , and combined with the static question set of the first visit to form the t-1th data , the encoder using the psychological latent variable autoencoder model will Converted into psychological latent variables, the psychological latent variable state is recorded as , Y t-1 =[ y 1 t-1 ,…, y i t-1 …, y K t-1 ] , is the first psychological latent variable state of the user's t-1th visit. Similarly is the user's t-1th visit psychological latent variable state, is the user's t-1th visit A psychological latent variable state.
[0115] When the user visits for the tth time, the tth data is generated , the encoder using the psychological latent variable autoencoder model will Converted into psychological latent variables, the psychological latent variable state is recorded as , Y t =[ y 1 t ,…, y i t …, y K t ] , is the first psychological latent variable state of the user's t-th visit. Similarly, The tth visit of the user psychological latent variable state, The tth visit of the user A psychological latent variable state.
[0116] Will and Compare the elements, and the absolute difference is the quantitative value of the change in the psychological latent variable state. When the quantitative value of the change in the psychological latent variable state is greater than the preset minimum change perception value , then it is included in the quantitative value of the change in the state of the psychological latent variable In, give early warning.
[0117] e i t = y i t - y i t-1 ,i∈[1,K]
[0118]
[0119] .
[0120] in, The tth visit of the user The psychological latent variable state is related to the user's t-1th visit The quantitative value of the change in the state of a psychological latent variable; It is the quantitative value of the change in the state of the user's psychological latent variables between the user's t-th visit and the t-1-th visit.
[0121] In addition, the present invention can also convert the psychological latent variable state The psychological latent variable abnormality model is input and the probability of psychological abnormality is output, and an early warning is issued when there is an abnormality.
[0122] The present invention collects psychological scale data from personnel, and collects more than 6,000 copies in total, of which about 300 people have experienced events that clearly affect psychological changes. The 6,000 scales are used to train the psychological latent variable encoder. The MSE of the test set under different latent variable dimensions is shown in Table 1:
[0123] Table 1 MSE table of test set under different latent variable dimensions
[0124] Hidden variable dimension#timg# Test set MSE effect 2 0.316959 4 0.280858 8 0.271321 16 0.268697 32 0.268033
[0125] Then, the scale data of 300 people who had clear psychological changes and the scale data of 300 randomly selected people who had no clear psychological changes were used to train the psychological latent variable abnormal model. The classifier of the psychological latent variable abnormal model selected logistic regression / SVM / random forest / MLP. The effect of the psychological latent variable abnormal model under different classifier models is shown in Table 2:
[0126] Table 2 Effects of psychological latent variable abnormal model under different classifier models
[0127]
[0128] The present invention compares and analyzes each classification model from the five performance indicators of accuracy (ACC), recall rate (R), F1 value (F1), ROC curve (ROC), and precision (P). It can be seen from Table 2 that when the classifier of the psychological latent variable abnormal model uses logistic regression, the number of latent variable dimensions is When it is 8, it achieves better performance than using the original scale for prediction; the number of latent variable dimensions The prediction performance is best when it is 16. When the classifier of the psychological latent variable abnormal model uses SVM (Support Vector Machine), the number of latent variable dimensions is When it is 4, it achieves better performance than using the original scale for prediction; the number of latent variable dimensions The prediction performance is best when it is 8. When the classifier of the psychological latent variable abnormal model uses random forest, the number of latent variable dimensions is When it is 2, it achieves better performance than using the original scale for prediction; the number of latent variable dimensions When the prediction performance is the best when it is 4. When the classifier of the psychological latent variable abnormal model uses MLP (Multilayer Perceptron), the number of latent variable dimensions is When it is 4, it achieves better performance than using the original scale for prediction; the number of latent variable dimensions When the value is 16, the prediction performance is the best.
[0129] The present invention compresses the features of personnel scale questions through an auto-encoding model. The compressed features can be expressed as the psychological latent variable state of the personnel. Abnormality identification can be achieved using the psychological latent variable abnormality model. The present invention can also monitor abnormal psychological states by detecting changes in the psychological latent variable states.
[0130] It is to be understood that the present invention is described by some embodiments, and it is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the scope of protection of the present invention.
Claims
1. A psychological latent variable abnormality mining method, characterized in that: The steps include: Step S1: Collect personnel scale data and record it as X N , where N is the number of scales collected, X i The i-th scale data collected is used as the input scale for mining abnormal psychological latent variables; where M is the number of scale questions, and the set of scale questions is T; is the option of the first scale question of the i-th scale; at the same time, obtain X N Neutron Set X N′ The label data of whether there is psychological abnormality is recorded as Z N′ ; Step S2: construct a psychological latent variable autoencoding model, which consists of an encoder and a decoder; the input scale is compressed by the encoder to obtain the psychological latent variable, and the psychological latent variable is restored by the decoder to obtain the output scale; Step S3: Collect the personnel scale data X N , train the psychological latent variable autoencoder model; Step S4: construct a psychological latent variable abnormal model, and use a classifier to train the scale data to obtain the psychological latent variable abnormal model; Step S5: when mining the abnormality of the psychological latent variables of the tested persons, first collect the scale data of the tested persons, input the scale data into the trained psychological latent variable autoencoder model to obtain the psychological latent variables, input the psychological latent variables into the trained psychological latent variable abnormality model to output the probability of psychological abnormality; The encoder and decoder are composed of four linearizers and three linear rectifier functions respectively; the encoder and decoder pass through the linearizer and the linear rectifier function alternately, i.e., linearizer->linear rectifier function->linearizer->linear rectifier function->linearizer->linear rectifier function->linearizer; Input scale X i After feature compression by the encoder, the psychological latent variable is obtained. The psychological latent variable state is represented by Y i , the feature compression of the encoder is achieved by the following formula: Y i =F(X i )=H7 H6=max(0,H5) H4=max(0,H3) H2=max(0,H1) Among them, H7, H5, H3, and H1 are the outputs of the data after passing through different linearizers, and H6, H4, and H2 are the outputs of the data after passing through the linear rectification function; Represents a 32*K matrix parameter, K is the number of hidden variable dimensions set by the user, B4 represents the fourth offset vector parameter, Represents a 64*32 matrix parameter, B3 represents the third offset vector parameter, Represents a 128*64 matrix parameter, B2 represents the second offset vector parameter, Represents an M*128 matrix parameter, B1 represents the first offset vector parameter; B4, B3, B2. B1 needs to be learned through training; After the psychological latent variables are decoded by the decoder, the output scale is obtained, which is represented by X i′ , which is achieved through the following formula: X i′ =F′(Y i )=H 14 H 13 =max(0,H 12 ) H 11 =max(0,H 10 ) H9=max(0,H8) Among them, H 14 , H 12 , H 10 , H8 is the output of the data after passing through different linearizers, H 13 , H 11 , H9 is the output of the data after the linear rectification function; Represents a 128*M matrix parameter, B8 represents the 8th offset vector parameter, Represents a 64*128 matrix parameter, B7 represents the 7th offset vector parameter, Represents a 32*64 matrix parameter, B6 represents the sixth offset vector parameter, represents a K*32 matrix parameter, and B5 represents the fifth offset vector parameter; B8, B7, B6, B5 needs to be learned through training; The loss function for training the autoencoder model is: loss=||X i -X i′ || 2 +||Y i -0.5|| 2 Among them, ||·|| 2 Represents the modulo 2 norm.
2. The psychological latent variable abnormality mining method according to claim 1 is characterized in that: It also includes measuring the dynamic quantitative changes of psychological latent variables, which is achieved through the following methods: When the user visits for the first time, ask the user to complete the scale set T, which is divided into static question set T 1 and dynamic topic set T 2 , we get X 1 ; The encoder of the psychological latent variable autoencoder model converts X 1 Converted into psychological latent variables, the psychological latent variable state is recorded as Y 1 , is the first psychological latent variable state of the user's first visit. is the i-th psychological latent variable state of the user’s first visit, is the Kth psychological latent variable state of the user’s first visit; When the user visits for the t-1th time, the user is asked to complete the dynamic question set T with dynamic changes in the scale set again. 2 , and combined with the static question set of the first visit to form the t-1th data X t -1; using the encoder of the psychological latent variable autoencoder model to convert X t-1 Converted into psychological latent variables, the psychological latent variable state is recorded as Y t-1 , is the first psychological latent variable state of the user's t-1th visit. Similarly is the i-th psychological latent variable state of the user's t-1-th visit, is the Kth psychological latent variable state of the user's t-1th visit; When the user visits for the tth time, the tth data X is generated t , using the encoder of the psychological latent variable autoencoder model to convert X t Converted into psychological latent variables, the psychological latent variable state is recorded as Y t , is the first psychological latent variable state of the user's t-th visit. Similarly, is the i-th psychological latent variable state of the user's t-th visit, is the Kth psychological latent variable state of the user's tth visit; Y t With Y t-1 Compare the elements, and the absolute difference is the quantitative value of the change in the psychological latent variable state. When the quantitative value of the change in the psychological latent variable state is greater than the preset minimum change perception value ε, it is included in the quantitative value of the change in the psychological latent variable state E t In the case of a fire, an early warning is given; in, is the quantitative value of the change between the i-th psychological latent variable state of the user's t-th visit and the i-th psychological latent variable state of the user's t-1-th visit; E t It is the quantitative value of the change in the state of the user's psychological latent variables between the user's t-th visit and the t-1-th visit.
3. The psychological latent variable abnormality mining method according to claim 1 is characterized in that: Input the psychological latent variables into the trained psychological latent variable abnormal model to output the probability of psychological abnormality and issue an early warning when there is an abnormality.
