Psychological assessment methods, systems, equipment and media based on machine learning
Through machine learning-based methods, the target classification model of the psychological measurement scale is trained, the importance and similarity of test questions are determined, redundant questions are deleted, and a target test question set is formed, which solves the difficulty of assessment in large-scale psychological assessments in the existing technology. and low accuracy problems, achieving efficient and accurate psychological assessment.
Patent Information
- Application Number
- CN202410955745.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-17
AI Technical Summary
In the screening of mental health problems among large-scale populations, the existing technology uses a comprehensive multi-dimensional scale assessment method that has overlapping and repeated questions, and does not consider the correlation and redundancy between multiple scales and dimensions, making the assessment difficult. , low accuracy.
Using a psychological assessment method based on machine learning, by obtaining historical data of psychological measurement tables of different dimensions, training a target classification model, determining the Shapley value and importance of test questions, and using natural language processing technology to delete test questions with high similarity. Form a target test question set for psychological assessment.
Effectively delete test questions with a high degree of similarity between multiple psychological measurement tables of different dimensions, ensuring the reliability and validity of the target test question set, achieving the assessment of psychological characteristics with only a small number of key questions, and reducing the difficulty and difficulty of psychological assessment of large groups of people. time, improving the accuracy of assessment.
Smart Images

Figure CN118506987B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data analysis technology, and in particular to a psychological assessment method, system, device and medium based on machine learning. Background Art
[0002] Psychological assessment is a scientific and commonly used psychological measurement method, and psychological measurement scales are commonly used tools for psychological assessment. In the screening of mental health problems in large-scale populations, the existing technology adopts the following method: according to the rules of traditional scales, the population is tested in the form of a simple combination of psychological measurement scales of different dimensions. For example, to measure the anxiety, depression, stress, life satisfaction and other states of the subjects, the anxiety scale, depression scale, stress scale and life satisfaction scale are selected respectively, and these scales are asked to the subjects to answer together. This comprehensive multi-dimensional scale evaluation method of the existing technology has many overlapping and repeated questions, and does not consider the correlation and redundancy between multiple scales and multiple dimensions, and is not suitable for large-scale population evaluation. Summary of the invention
[0003] In view of this, the purpose of the present invention is to overcome the deficiencies in the prior art and provide a psychological assessment method, system, device and medium based on machine learning, aiming to reduce the difficulty of psychological assessment and improve the accuracy of large-scale psychological assessment. The present invention provides the following technical solutions:
[0004] In a first aspect, the present invention provides a psychological assessment method based on machine learning, the method comprising:
[0005] Acquire a plurality of psychological measurement tables of different dimensions, wherein the psychological measurement tables include a plurality of test questions, and each of the test questions in each of the psychological measurement tables constitutes a test question set;
[0006] Obtaining historical data of each of the psychological measurement tables, and using a machine learning method to train each of the historical data to obtain a target classification model corresponding to each of the psychological measurement tables;
[0007] Determining the Shapley value of each of the test questions according to each of the target classification models;
[0008] According to each of the Shapley values, respectively determine the importance and relative importance of each of the test questions;
[0009] Using natural language processing technology, determine the similarity between different test questions, and determine multiple test questions with similarity greater than a preset threshold as questions to be deleted;
[0010] Deleting each of the to-be-deleted questions from the test question set one by one according to their importance or relative importance from low to high, until the remaining test question set meets a preset condition, wherein the remaining test questions are the multiple test questions that have not been deleted;
[0011] Determine the remaining test question set as a target test question set;
[0012] The target test question set is used to obtain evaluation data from the subject to be tested, and the corresponding psychological evaluation results are obtained according to the evaluation data.
[0013] In one embodiment, the historical data includes historical evaluation data and classification results corresponding to the historical evaluation data, and the machine learning method is used to train each of the historical data to obtain a target classification model corresponding to each of the psychological measurement tables, including: randomly dividing the historical evaluation data and the classification results corresponding to the psychological measurement table into a training set, a test set and a validation set according to a preset ratio; determining the optimal hyperparameter combination on the training set and the test set through a grid search method; based on the optimal hyperparameter combination, obtaining an initial classification model through training with the training set and the test set; verifying the initial classification model with the validation set, and determining the verified initial classification model as the target classification model corresponding to the psychological measurement table.
[0014] In one embodiment, determining the importance of each of the test questions according to each of the Shapley values includes: sorting each of the test questions in the corresponding psychological measurement table according to each of the Shapley values; and determining the importance of the corresponding test question according to the sorting position of each of the test questions in the corresponding psychological measurement table.
[0015] In one embodiment, the determining the relative importance of each of the test questions according to each of the Shapley values includes: determining the relative importance of the corresponding test question according to the ranking position of each of the test questions in the corresponding psychological measurement table, and the calculation formula is:
[0016]
[0017] in, Indicates test questions The relative importance in the corresponding psychometric table, Indicates test questions The ranking position in the corresponding psychological measurement table, Indicates test questions The corresponding total number of questions in the psychological measurement table.
[0018] In one embodiment, the use of natural language processing technology to determine the similarity between different test questions includes: determining the vector value of each test question respectively through a pre-trained language model, and the formula is:
[0019]
[0020] in, Indicates test questions The vector value of represents the vector dimension, Indicates test questions , represents the pre-trained language model;
[0021] According to the vector values, the similarity between any two test questions is calculated, and the calculation formula is:
[0022]
[0023] in, Represents any two test questions and The similarity between .
[0024] In one embodiment, the step of deleting each of the questions to be deleted from the test question set one by one according to their importance or relative importance from low to high until the remaining test question set meets a preset condition further includes: determining whether each of the questions to be deleted belongs to the same psychological measurement table; if so, deleting each of the questions to be deleted from the test question set one by one according to their importance from low to high until the remaining test question set meets the preset condition; if not, deleting each of the questions to be deleted from the test question set one by one according to their relative importance from low to high until the remaining test question set meets the preset condition.
[0025] In one embodiment, the steps of deleting each of the to-be-deleted questions from the test question set one by one in order of importance or relative importance from low to high until the remaining test question set meets a preset condition include: deleting each of the to-be-deleted questions from the test question set one by one in order of importance or relative importance from low to high, and calculating the reliability and validity of the remaining test question set each time a to-be-deleted question is deleted; if the reliability and validity of the remaining test question set is greater than or equal to the preset reliability and validity, continuing to delete; if the reliability and validity of the remaining test question set is less than the preset reliability and validity, determining that the remaining test question set meets the preset condition.
[0026] In a second aspect, the present invention provides a psychological assessment system based on machine learning, the system comprising:
[0027] An acquisition unit, configured to acquire a plurality of psychological measurement tables of different dimensions, wherein the psychological measurement tables include a plurality of test questions, and each of the test questions in each of the psychological measurement tables constitutes a test question set;
[0028] A model training unit, used to obtain the historical data of each psychological measurement table, and use a machine learning method to train each of the historical data to obtain a target classification model corresponding to each psychological measurement table;
[0029] A first determining unit, configured to determine the Shapley value of each of the test questions according to each of the target classification models;
[0030] A second determining unit, configured to determine the importance and relative importance of each of the test questions according to each of the Shapley values;
[0031] A third determining unit is used to determine the similarity between different test questions by using natural language processing technology, and to determine the multiple test questions with similarity greater than a preset threshold as questions to be deleted;
[0032] A deleting unit, configured to delete the to-be-deleted questions one by one from the test question set according to their importance or relative importance from low to high, until the remaining test question set meets a preset condition, wherein the remaining test questions are the plurality of test questions that have not been deleted;
[0033] A fourth determining unit, configured to determine the remaining test question set as a target test question set;
[0034] The evaluation unit is used to obtain evaluation data from the subject to be tested using the target test question set, and obtain corresponding psychological evaluation results based on the evaluation data.
[0035] In a third aspect, the present invention provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, the psychological assessment method based on machine learning described in the first aspect is executed.
[0036] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, is the psychological assessment method based on machine learning as described in the first aspect.
[0037] The present invention provides a psychological assessment method, system, device and medium based on machine learning. The method comprises the following steps: obtaining a plurality of psychological measurement tables of different dimensions, wherein the psychological measurement tables include a plurality of test questions, and each of the test questions in each of the psychological measurement tables constitutes a test question set; obtaining historical data of each of the psychological measurement tables, adopting a machine learning method to respectively train each of the historical data, and obtaining a target classification model corresponding to each of the psychological measurement tables; determining the Shapley value of each of the test questions according to each of the target classification models; determining the importance and relative importance of each of the test questions according to each of the Shapley values; adopting a natural language processing technique to determine the similarity between different test questions, and determining a plurality of the test questions with a similarity greater than a preset threshold as questions to be deleted; deleting each of the questions to be deleted from the test question set one by one according to the importance or relative importance from low to high, until the remaining test question set meets a preset condition, and the remaining test questions are the plurality of test questions that have not been deleted; determining the remaining test question set as a target test question set; obtaining assessment data from a subject to be tested by using the target test question set, and obtaining a corresponding psychological assessment result according to the assessment data. It can effectively delete test questions with high similarity between multiple psychological measurement scales of different dimensions, and ensure the reliability and validity of the target test question set during the deletion process, so as to evaluate psychological characteristics with only a small number of key questions, reduce the difficulty of psychological assessment in large-scale populations, shorten the assessment time, and improve the accuracy of the assessment.
[0038] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 A schematic diagram of a process of a psychological assessment method based on machine learning provided by an embodiment of the present invention is shown;
[0041] Figure 2 Another schematic diagram of the process of the psychological evaluation method based on machine learning provided by an embodiment of the present invention is shown;
[0042] Figure 3 Another schematic diagram of a process of a psychological assessment method based on machine learning provided by an embodiment of the present invention is shown;
[0043] Figure 4A schematic diagram of the structure of a psychological assessment system based on machine learning provided by an embodiment of the present invention is shown;
[0044] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown.
[0045] Description of main component symbols:
[0046] 400 - psychological assessment system based on machine learning; 410 - acquisition unit; 420 - model training unit; 430 - first determination unit; 440 - second determination unit; 450 - third determination unit; 460 - deletion unit; 470 - fourth determination unit; 480 - assessment unit; 500 - electronic device; 501 - transceiver; 502 - processor; 503 - memory. DETAILED DESCRIPTION
[0047] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0048] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of the template are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0050] Example 1
[0051] The present invention provides a psychological assessment method based on machine learning. Figure 1 , the method includes steps S110~S180.
[0052] Step S110, obtaining a plurality of psychological measurement tables of different dimensions, wherein the psychological measurement tables include a plurality of test questions, and the test questions in the psychological measurement tables constitute a test question set.
[0053] In the prior art, in order to achieve the screening of mental health problems for a large number of people, the method often used is to simply merge multiple psychological measurement tables of different dimensions and use the merged multi-dimensional psychological measurement table to test the subjects. This test method has a large number of questions, a long time to complete the questions, and there are repeated questions, which can easily make the subjects feel bored, thus affecting the accuracy of the evaluation results.
[0054] In this embodiment, according to the test requirements, multiple psychological measurement scales of different dimensions are selected. For example, when it is necessary to measure anxiety, depression, stress, life satisfaction and other states, the anxiety measurement scale, depression measurement scale, stress measurement scale and life satisfaction measurement scale are selected respectively to obtain a test question set, and then the test question set is processed. It should be noted that each psychological measurement scale of different dimensions includes multiple test questions, and the test questions in different psychological measurement scales may be the same or different.
[0055] Step S120, obtaining the historical data of each of the psychological measurement tables, and using a machine learning method to train each of the historical data to obtain a target classification model corresponding to each of the psychological measurement tables.
[0056] In view of the fact that the extreme gradient boosting (XGBoost) method performs well in training tabular data, XGBoost is used as the machine learning algorithm of this embodiment to train each of the historical data to obtain the target classification model corresponding to each of the psychological measurement tables. It can be understood that the target classification models obtained by training the historical data of different psychological measurement tables are different.
[0057] It should be noted that XGBoost is a gradient boosting algorithm that iteratively trains multiple weak classifiers and adjusts parameters based on the errors of the previous classifiers each time a new classifier is trained, thereby gradually improving the performance of the model and obtaining the final classification model.
[0058] In one embodiment, the historical data includes historical evaluation data and classification results corresponding to the historical evaluation data, see Figure 2 The method of using a machine learning method to train each of the historical data respectively to obtain a target classification model corresponding to each of the psychological measurement tables includes steps S121 to S124.
[0059] In this embodiment, the historical evaluation data includes the original data of multiple testers during the test process and the corresponding classification results. For example, when using an anxiety test scale to test the anxiety value of a subject, the anxiety value of the subject can be classified into severe anxiety, moderate anxiety, mild anxiety, etc. according to the original data filled in by the subject.
[0060] Step S121, randomly dividing the historical evaluation data and the classification results corresponding to the psychological measurement table into a training set, a test set and a validation set according to a preset ratio.
[0061] In this embodiment, taking the training of a target classification model of a psychological measurement table as an example, the historical evaluation data and classification results of the psychological measurement table are first randomly divided into a training set, a test set, and a validation set according to a preset ratio, for example, 6:2:2, and based on the training set, the test set, and the validation set, the XGBoost algorithm is used for model training.
[0062] Step S122, determine the optimal hyperparameter combination on the training set and the test set through a grid search method.
[0063] Grid search is a hyperparameter tuning method used to determine the optimal hyperparameters in a machine learning model.
[0064] In this embodiment, a grid search method is used to traverse all possible hyperparameter combinations. For each hyperparameter combination, the model is iteratively trained on the training set, and the performance of the model is evaluated on the test set. The hyperparameter combination with the best model performance on the test set is determined as the optimal hyperparameter combination.
[0065] Step S123: Based on the optimal hyperparameter combination, an initial classification model is obtained by training the training set and the test set.
[0066] In this embodiment, the optimal hyperparameter combination determined in step S122 is used to iteratively train the model using the data on the training model and the test set to obtain an initial classification model.
[0067] It should be noted that retraining the model based on the optimal hyperparameter combination using the training set and test set can optimize the performance and generalization ability of the model, making the model perform better when solving practical problems.
[0068] Step S124, using the verification set to verify the initial classification model, and determining the initial classification model that passes the verification as the target classification model corresponding to the psychological measurement table.
[0069] In this embodiment, using the data on the validation set to validate the initial classification model can help evaluate the performance and generalization ability of the model, thereby optimizing the model and selecting the final target classification model.
[0070] Step S130, determining the Shapley value of each of the test questions according to each of the target classification models.
[0071] In this embodiment, the contribution rate of each test question on the corresponding target classification model is determined according to the target classification model, and the Shapley value of the corresponding test question is determined according to the contribution rate of each test question.
[0072] The Shapley value is a concept used in cooperative game theory to measure the value contributed by each element in a cooperative game. In Python, the shap package is generally used to input the test question set data and the target classification model determined in step S124 to obtain the Shapley value of each test question.
[0073] Step S140, determining the importance and relative importance of each of the test questions according to each of the Shapley values.
[0074] In this embodiment, the ranking position of each test question in the corresponding psychological measurement table is determined according to the Shapley value of each test question, and the importance and relative importance of the corresponding test question are determined according to the ranking position.
[0075] In one embodiment, determining the importance of each of the test questions according to each of the Shapley values includes: sorting each of the test questions in the corresponding psychological measurement table according to each of the Shapley values; and determining the importance of the corresponding test question according to the sorting position of each of the test questions in the corresponding psychological measurement table.
[0076] In this embodiment, for example, there is a test question a corresponding to a Shapley value of 1.45, a test question b corresponding to a Shapley value of 1.2, a test question c corresponding to a Shapley value of 1.3, a test question d corresponding to a Shapley value of 1.15, and a test question e corresponding to a Shapley value of 0.8, among which test question a, test question b and test question c belong to psychological measurement table A, and test question d and test question e belong to psychological measurement table B.
[0077] According to the corresponding Shapley values of each test question, the test questions are sorted in the corresponding psychological measurement table from high to low, and the ranking of each test question in psychological measurement table A is obtained: a, c, b, and the ranking of each test question in psychological measurement table B is: d, e. According to the sorting position, it can be determined that in psychological measurement table A, test question a has the highest importance, test question c has the second highest importance, and test question b has the lowest importance; in psychological measurement table B, test question d has the highest importance, and test question e has the lowest importance. It can be understood that the higher the ranking, the higher the importance.
[0078] In one embodiment, the determining the relative importance of each of the test questions according to each of the Shapley values includes: determining the relative importance of the corresponding test question according to the ranking position of each of the test questions in the corresponding psychological measurement table, and the calculation formula is:
[0079]
[0080] in, Indicates test questions The relative importance in the corresponding psychometric table, Indicates test questions The ranking position in the corresponding psychological measurement table, Indicates test questions The corresponding total number of questions in the psychological measurement table.
[0081] In this embodiment, for example, there are psychological measurement table A and psychological measurement table B, wherein the order of each test question in psychological measurement table A is: a, c, b, and the order of each test question in psychological measurement table B is: d, e, then it can be determined that the relative importance of test question a is 1 / 3, the relative importance of test question c is 2 / 3, the relative importance of test question b is 1, the relative importance of test question d is 1 / 2, and the importance of test question e is 1. It can be understood that the smaller the relative importance value, the higher the relative importance.
[0082] Step S150, using natural language processing (NLP) technology to determine the similarities between different test questions, and determine multiple test questions with similarities greater than a preset threshold as questions to be deleted.
[0083] Natural language processing technology can help analyze and process large amounts of text data, and analyze and calculate the similarities between each piece of text data.
[0084] In this embodiment, a pre-trained language model is used to identify the similarity between the test questions, so as to determine a plurality of questions to be deleted from the test question set. The pre-trained language model may be a Sentence Bidirectional Encoder Representations from Transformers (Sentence-BERT) model suitable for text similarity measurement.
[0085] In one embodiment, the use of natural language processing technology to determine the similarity between different test questions includes: determining the vector value of each test question respectively through a pre-trained language model, and the formula is:
[0086]
[0087] in, Indicates test questions The vector value of represents the vector dimension, Indicates test questions , represents the pre-trained language model;
[0088] According to the vector values, the similarity between any two test questions is calculated, and the calculation formula is:
[0089]
[0090] in, Represents any two test questions and The similarity between .
[0091] In this embodiment, each of the test questions is input into a pre-trained language model, such as Sentence-BERT, and each of the test questions is mapped to the same standard to obtain a vector value corresponding to each of the test questions. Then, based on the vector values of any two test questions, the similarity between any two test questions is calculated.
[0092] Step S160, deleting each of the to-be-deleted questions from the test question set one by one according to importance or relative importance from low to high, until the remaining test question set meets a preset condition, and the remaining test questions are the multiple test questions that have not been deleted.
[0093] In this embodiment, it can be understood that for each question to be deleted, the question to be deleted with the lowest importance or relative importance is deleted from the test question set in turn, so as to delete repeated and unimportant questions.
[0094] It should be noted that, if there are multiple test questions with the same importance or relative importance, one of them is selected and deleted from the test question set.
[0095] In one embodiment, the step of deleting each of the questions to be deleted from the test question set one by one according to their importance or relative importance from low to high until the remaining test question set meets a preset condition further includes: determining whether each of the questions to be deleted belongs to the same psychological measurement table; if so, deleting each of the questions to be deleted from the test question set one by one according to their importance from low to high until the remaining test question set meets the preset condition; if not, deleting each of the questions to be deleted from the test question set one by one according to their relative importance from low to high until the remaining test question set meets the preset condition.
[0096] In this embodiment, if the questions to be deleted belong to the same psychological measurement table, the questions to be deleted can be directly sorted according to the importance of each question to be deleted in the corresponding psychological measurement table. If the questions to be deleted do not belong to the same psychological measurement table, in order to compare the importance of the questions to be deleted in different psychological measurement tables, it is necessary to sort the questions to be deleted using relative importance.
[0097] In one embodiment, see Figure 3 , deleting each of the to-be-deleted questions from the test question set one by one according to their importance or relative importance from low to high, until the remaining test question set meets the preset conditions, including:
[0098] In this embodiment, if all the questions to be deleted belong to the same psychological measurement table, the questions to be deleted are deleted one by one in order of importance from low to high. Each time a question to be deleted is deleted, the reliability and validity of the remaining test question set is calculated once to ensure that key test questions are retained in the process of deleting duplicate test questions, thereby ensuring the accuracy and reliability of the final target test question set.
[0099] Reliability and validity include reliability and validity. Reliability refers to the consistency and stability of a measurement tool at different times, in different occasions, or between different measurers, while validity refers to whether a measurement tool can accurately and appropriately measure the concepts or characteristics it is intended to measure.
[0100] Step S161, deleting each of the to-be-deleted questions from the test question set one by one according to their importance or relative importance from low to high, and calculating the reliability and validity of the remaining test question set once each time a to-be-deleted question is deleted;
[0101] In this embodiment, the deletion operation without replacement is performed on each question to be deleted in order of importance or relative importance from low to high, and one question to be deleted is deleted each time.
[0102] Step S162, if the reliability and validity of the remaining test question set is greater than or equal to the preset reliability and validity, continue to delete;
[0103] In this embodiment, when the reliability and validity of the remaining test question set is greater than or equal to the preset reliability and validity, it means that the remaining test question set exceeds the preset standard or requirement. At this time, in order to reduce repeated test questions, the deletion operation without replacement can be continued for the deleted questions.
[0104] Step S163: If the reliability and validity of the remaining test question set is less than the preset reliability and validity, it is determined that the remaining test question set meets the preset condition.
[0105] In this embodiment, the questions to be deleted are deleted one by one until the reliability and validity of the remaining test question set is just less than the preset reliability and validity, which means that the remaining test question set is lower than the preset standard or requirement. If the questions to be deleted continue to be deleted, the accuracy and reliability of the target test question set finally obtained cannot be guaranteed. It can be understood that when the remaining test question set is just less than the preset reliability and validity, the similar test questions in the remaining test question set have been reduced as much as possible, and the accuracy and reliability of the remaining test questions are high.
[0106] Step S170: determining the remaining test question set as a target test question set.
[0107] In this embodiment, the target test questions are a set of test questions that delete similar test questions to the greatest extent and retain key test questions.
[0108] Step S180, obtaining evaluation data from the subject using the target test question set, and obtaining corresponding psychological evaluation results based on the evaluation data.
[0109] In this embodiment, the subjects to be tested are individual subjects in a large-scale psychological population. A target test question set consisting of a small number of effective test questions is used to obtain the evaluation data of individual subjects in the large-scale population, and the psychological evaluation results of each individual are obtained based on each evaluation data, and the psychological level of the large-scale population is evaluated based on each psychological evaluation result. The target test question set deletes test questions with high similarity to the greatest extent while ensuring the accuracy and reliability of the test, reduces the difficulty of the evaluation, shortens the evaluation time, and indirectly improves the completion of the test questions in the process of psychological evaluation of large-scale populations.
[0110] The psychological assessment method based on machine learning provided in this embodiment includes: obtaining multiple psychological measurement tables of different dimensions, wherein the psychological measurement tables include multiple test questions, and each of the test questions in each of the psychological measurement tables constitutes a test question set; obtaining historical data of each of the psychological measurement tables, and using a machine learning method to train each of the historical data to obtain a target classification model corresponding to each of the psychological measurement tables; determining the Shapley value of each of the test questions according to each of the target classification models; determining the importance and relative importance of each of the test questions according to each of the Shapley values; using natural language processing technology to determine the similarity between different test questions, and determining multiple test questions with similarities greater than a preset threshold as questions to be deleted; deleting each of the questions to be deleted from the test question set one by one according to importance or relative importance from low to high, until the remaining test question set meets a preset condition, and the remaining test questions are multiple test questions that have not been deleted; determining the remaining test question set as a target test question set; using the target test question set to obtain assessment data from the subject to be tested, and obtaining a corresponding psychological assessment result according to the assessment data. The present invention effectively deletes test questions with a high degree of similarity between multiple psychological measurement tables of different dimensions and ensures the reliability and validity of the target test question set during the deletion process, thereby achieving the evaluation of psychological characteristics with only a small number of key questions, reducing the evaluation difficulty in the process of psychological evaluation of large-scale groups, shortening the evaluation time, and improving the accuracy of the evaluation.
[0111] Example 2
[0112] The present invention also provides a psychological assessment system based on machine learning. Figure 4 , the psychological assessment system 400 based on machine learning comprises:
[0113] An acquisition unit 410 is used to acquire a plurality of psychological measurement tables of different dimensions, wherein the psychological measurement tables include a plurality of test questions, and each of the test questions in each of the psychological measurement tables constitutes a test question set;
[0114] A model training unit 420 is used to obtain the historical data of each of the psychological measurement tables, and use a machine learning method to train each of the historical data to obtain a target classification model corresponding to each of the psychological measurement tables;
[0115] A first determining unit 430 is used to determine the Shapley value of each of the test questions according to each of the target classification models;
[0116] A second determining unit 440 is used to determine the importance and relative importance of each of the test questions according to each of the Shapley values;
[0117] The third determining unit 450 is used to determine the similarity between different test questions by using natural language processing technology, and determine the multiple test questions with similarity greater than a preset threshold as questions to be deleted;
[0118] A deleting unit 460, configured to delete the to-be-deleted questions one by one from the test question set according to their importance or relative importance from low to high, until the remaining test question set meets a preset condition, wherein the remaining test questions are the plurality of test questions that have not been deleted;
[0119] A fourth determining unit 470, configured to determine the remaining test question set as a target test question set;
[0120] The evaluation unit 480 is used to obtain evaluation data from the subject to be tested using the target test question set, and obtain corresponding psychological evaluation results according to the evaluation data.
[0121] The psychological assessment system 400 based on machine learning provided in the embodiment of the present invention can execute the psychological assessment method based on machine learning provided in the above method embodiment 1, which will not be described again here to avoid repetition.
[0122] The psychological assessment system based on machine learning provided by the embodiment of the present invention obtains multiple psychological measurement tables of different dimensions through an acquisition unit, wherein the psychological measurement tables include multiple test questions, and each test question in each psychological measurement table constitutes a test question set; a model training unit obtains historical data of each psychological measurement table, and uses a machine learning method to train each historical data respectively to obtain a target classification model corresponding to each psychological measurement table; a first determination unit determines the Shapley value of each test question according to each target classification model; a second determination unit determines the importance and relative importance of each test question according to each Shapley value; a third determination unit uses natural language processing technology to determine the similarity between different test questions, and selects multiple test questions whose similarity is greater than a preset threshold. The test questions are respectively determined as questions to be deleted; the deleting unit deletes each of the questions to be deleted from the test question set one by one according to the importance or relative importance from low to high, until the remaining test question set meets the preset conditions, and the remaining test questions are multiple test questions that have not been deleted; the fourth determining unit determines the remaining test question set as the target test question set; the evaluation unit obtains evaluation data from the test object using the target test question set, obtains corresponding psychological evaluation results according to the evaluation data, effectively deletes test questions with high similarity between multiple psychological measurement tables of different dimensions, and ensures the reliability and validity of the target test question set during the deletion process, so as to achieve the evaluation of psychological characteristics with only a small number of key questions, reduce the evaluation difficulty in the process of psychological evaluation of large-scale groups, shorten the evaluation time, and improve the accuracy of the evaluation.
[0123] Example 3
[0124] In addition, an embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, it executes the psychological assessment method based on machine learning provided in Example 1.
[0125] For details, see Figure 5The electronic device 500 includes: a transceiver 501, a bus interface and a processor 502, wherein the processor 502 is used to obtain a plurality of psychological measurement tables of different dimensions, wherein the psychological measurement tables include a plurality of test questions, and each test question in each psychological measurement table constitutes a test question set; obtain historical data of each psychological measurement table, and use a machine learning method to train each historical data to obtain a target classification model corresponding to each psychological measurement table; determine the Shapley value of each test question according to each target classification model; and determine the target classification model of each test question according to each Shapley value. importance and relative importance of the test questions; using natural language processing technology to determine the similarity between different test questions, and respectively determine multiple test questions with similarity greater than a preset threshold as questions to be deleted; deleting each of the questions to be deleted from the test question set one by one according to their importance or relative importance from low to high, until the remaining test question set meets the preset conditions, and the remaining test questions are the multiple test questions that have not been deleted; determining the remaining test question set as the target test question set; using the target test question set to obtain evaluation data from the subject to be tested, and obtaining corresponding psychological evaluation results according to the evaluation data.
[0126] In the embodiment of the present invention, the electronic device 500 further includes a memory 503. Figure 5 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 502 and memory represented by memory 503. The bus architecture may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 501 may be a plurality of components, i.e., including a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 502 is responsible for managing the bus architecture and general processing, and the memory 503 may store data used by the processor 502 when performing operations.
[0127] The electronic device 500 provided in the embodiment of the present invention can execute the psychological assessment method based on machine learning provided in the above method embodiment 1, which will not be described again here to avoid repetition.
[0128] Example 4
[0129] In addition, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the psychological assessment method based on machine learning provided in Example 1 is implemented.
[0130] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0131] The computer-readable storage medium provided in this embodiment can implement the psychological assessment method based on machine learning provided in Example 1. To avoid repetition, it will not be described here.
[0132] In all examples shown and described herein, any specific values should be interpreted as merely exemplary and not as limiting, and thus other examples of the exemplary embodiments may have different values.
[0133] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0134] 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 present invention. It should be pointed out that for ordinary technicians in this field, several modifications 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.
Claims
1. A psychological assessment method based on machine learning, characterized in that: The method comprises: Acquire a plurality of psychological measurement tables of different dimensions, wherein the psychological measurement tables include a plurality of test questions, and each of the test questions in each of the psychological measurement tables constitutes a test question set; Obtaining historical data of each of the psychological measurement tables, and using a machine learning method to train each of the historical data to obtain a target classification model corresponding to each of the psychological measurement tables; Determine, according to each of the target classification models, the contribution rate of each of the test questions on the corresponding target classification model, and determine, according to the contribution rate of each of the test questions, the Shapley value of the corresponding test question; According to each of the Shapley values, respectively determine the importance and relative importance of each of the test questions; Using natural language processing technology, determine the similarity between different test questions, and determine multiple test questions with similarity greater than a preset threshold as questions to be deleted; Deleting each of the to-be-deleted questions from the test question set one by one according to their importance or relative importance from low to high, until the remaining test question set meets a preset condition, wherein the remaining test questions are the multiple test questions that have not been deleted; Determine the remaining test question set as a target test question set; Acquiring evaluation data from the subject using the target test question set, and obtaining corresponding psychological evaluation results according to the evaluation data; The historical data includes historical evaluation data and classification results corresponding to the historical evaluation data, and the machine learning method is used to train each of the historical data to obtain a target classification model corresponding to each of the psychological measurement tables, including: randomly dividing the historical evaluation data and the classification results corresponding to the psychological measurement table into a training set, a test set and a validation set according to a preset ratio, and using the XGBoost algorithm to perform model training based on the training set, the test set and the validation set; determining the optimal hyperparameter combination on the training set and the test set through a grid search method; obtaining an initial classification model based on the optimal hyperparameter combination by using the training set and the test set to train; and verifying the initial classification model using the validation set, and determining the initial classification model that has passed the verification as the target classification model corresponding to the psychological measurement table. Determining the importance of each test question according to each Shapley value includes: sorting each test question in the corresponding psychological measurement table according to each Shapley value; determining the importance of the corresponding test question according to the sorting position of each test question in the corresponding psychological measurement table; Determining the relative importance of each of the test questions according to each of the Shapley values includes: determining the relative importance of the corresponding test question according to the ranking position of each of the test questions in the corresponding psychological measurement table, and the calculation formula is: in, Indicates test questions The relative importance in the corresponding psychometric table, Indicates test questions The ranking position in the corresponding psychological measurement table, Indicates test questions The total number of questions in the corresponding psychological measurement table; The adopting of natural language processing technology to determine the similarity between different test questions includes: determining the vector value of each test question respectively through a pre-trained language model, the formula is: in, Indicates test questions The vector value of represents the vector dimension, Indicates test questions , represents the pre-trained language model; According to the vector values, the similarity between any two test questions is calculated, and the calculation formula is: in, Represents any two test questions and The similarity between .
2. The psychological assessment method based on machine learning according to claim 1, characterized in that: The step of deleting the questions to be deleted one by one from the test question set according to their importance or relative importance from low to high until the remaining test question set meets the preset conditions further includes: Determine whether the questions to be deleted belong to the same psychological measurement table; If yes, then the to-be-deleted questions are deleted one by one from the test question set in order of importance from low to high, until the remaining test question set meets the preset condition; If not, then the questions to be deleted are deleted one by one from the test question set according to their relative importance from low to high, until the remaining test question set meets the preset conditions.
3. The psychological assessment method based on machine learning according to claim 2, characterized in that: The step of deleting the questions to be deleted one by one from the test question set according to their importance or relative importance from low to high, until the remaining test question set meets the preset conditions, includes: Deleting each of the to-be-deleted questions from the test question set one by one according to their importance or relative importance from low to high, and calculating the reliability and validity of the remaining test question set once each time a to-be-deleted question is deleted; If the reliability and validity of the remaining test question set is greater than or equal to the preset reliability and validity, continue to delete; If the reliability and validity of the remaining test question set is less than the preset reliability and validity, it is determined that the remaining test question set meets the preset condition.
4. A psychological assessment system based on machine learning, characterized in that: The system comprises: An acquisition unit, configured to acquire a plurality of psychological measurement tables of different dimensions, wherein the psychological measurement tables include a plurality of test questions, and each of the test questions in each of the psychological measurement tables constitutes a test question set; A model training unit, used to obtain the historical data of each psychological measurement table, and use a machine learning method to train each of the historical data to obtain a target classification model corresponding to each psychological measurement table; A first determining unit, configured to determine the Shapley value of each of the test questions according to each of the target classification models; A second determining unit, configured to determine the importance and relative importance of each of the test questions according to each of the Shapley values; A third determining unit is used to determine the similarity between different test questions by using natural language processing technology, and to determine the multiple test questions with similarity greater than a preset threshold as questions to be deleted; A deleting unit, configured to delete the to-be-deleted questions one by one from the test question set according to their importance or relative importance from low to high, until the remaining test question set meets a preset condition, wherein the remaining test questions are the plurality of test questions that have not been deleted; A fourth determining unit, configured to determine the remaining test question set as a target test question set; An evaluation unit, configured to obtain evaluation data from the subject to be tested using the target test question set, and obtain corresponding psychological evaluation results according to the evaluation data; The historical data includes historical evaluation data and classification results corresponding to the historical evaluation data. The model training unit is further used to randomly divide the historical evaluation data and the classification results corresponding to the psychological measurement table into a training set, a test set and a validation set according to a preset ratio, and use the XGBoost algorithm to perform model training based on the training set, the test set and the validation set; determine the optimal hyperparameter combination on the training set and the test set through a grid search method; obtain an initial classification model based on the optimal hyperparameter combination by using the training set and the test set for training; verify the initial classification model using the validation set, and determine the initial classification model that has passed the verification as the target classification model corresponding to the psychological measurement table; The second determination unit is further configured to sort each of the test questions in the corresponding psychological measurement table according to each of the Shapley values; and determine the importance of the corresponding test question according to the sorting position of each of the test questions in the corresponding psychological measurement table; The second determination unit is further used to determine the relative importance of the corresponding test questions according to the ranking position of each test question in the corresponding psychological measurement table, and the calculation formula is: in, Indicates test questions The relative importance in the corresponding psychometric table, Indicates test questions The ranking position in the corresponding psychological measurement table, Indicates test questions The total number of questions in the corresponding psychological measurement table; The third determination unit is further used to determine the vector value of each test question by using the pre-trained language model, and the formula is: in, Indicates test questions The vector value of represents the vector dimension, Indicates test questions , represents the pre-trained language model; According to the vector values, the similarity between any two test questions is calculated, and the calculation formula is: in, Represents any two test questions and The similarity between .
5. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is run on the processor, the psychological assessment method based on machine learning described in any one of claims 1 to 3 is executed.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the psychological assessment method based on machine learning described in any one of claims 1 to 3 is implemented.
