A method and device for automatically optimizing a scale based on a small data sample of an intelligent model
By automatically optimizing the scale method for small data samples through intelligent models, multiple machine learning models are used to analyze and process scale questions, which solves the problem of too many questions in the existing technology and reduces the number of questions without reducing the accuracy. The effect improves user experience and model efficiency.
Patent Information
- Application Number
- CN202011275989.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-16
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-11-16
AI Technical Summary
In the existing scale design, it is difficult to effectively select questions, resulting in too many questions, affecting user experience and enthusiasm for answering questions, and making it difficult to meet actual needs.
An intelligent model-based automatic optimization scale method for small data samples is adopted. Through initialization, preprocessing and compression steps, multiple machine learning models are used to process user response results, and questions that have a small impact or bring noise are gradually deleted to form The new scale ensures that the number of questions is reduced without reducing accuracy.
Effectively reduce the number of questions in the scale, reduce user burden, improve answering experience, and sometimes improve model accuracy to ensure questionnaire validity.
Smart Images

Figure CN113553816B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and device for automatically optimizing a scale based on a small data sample of an intelligent model. Background Art
[0002] Cognition is the process by which the human brain receives external information, processes it, and converts it into internal psychological activities, thereby acquiring or applying knowledge. It includes memory, language, visual space, execution, calculation, and understanding and judgment. Cognitive impairment refers to the impairment of one or more of the above cognitive functions, which affects the individual's daily or social abilities and can be diagnosed as dementia.
[0003] Cognitive impairment mainly includes:
[0004] (1) Perceptual disorders, such as hypersensitivity, dysesthesia, internal discomfort, sensory deterioration, sensory deprivation, pathological illusions, hallucinations, and perceptual complex disorders;
[0005] (2) memory disorders, such as hypermnesia, memory loss, and memory errors;
[0006] (3) Thinking disorders, such as abstract generalization process disorders, associative process disorders, logical thinking disorders, delusions, etc.
[0007] Neuropsychological test is a type of psychological test method developed on the basis of modern psychological test for the evaluation of brain function. It is an important method for neuropsychology to study the relationship between brain and behavior. The scope of psychology or behavior evaluated by psychological test is very wide, including sensation, perception, movement, speech, attention, memory and thinking, involving all aspects of brain function.
[0008] Neuropsychological testing is a type of psychological testing method developed on the basis of modern psychological testing for the evaluation of brain function. It is an important method for neuropsychology to study the relationship between brain and behavior. Neuropsychological testing evaluates a wide range of psychology or behavior, including sensation, perception, movement, speech, attention, memory and thinking, involving all aspects of brain function. In recent decades, neuropsychological testing has shown the characteristics of rapid development and wide application. Initially limited to psychiatry and neurology in the medical field, foreign countries have carried out in-depth and systematic research on the neurocognition of infectious diseases, and further expanded to the fields of justice, industry and education.
[0009] Machine learning is a multi-disciplinary interdisciplinary subject that has emerged in the past 20 years, involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. Machine learning theory mainly designs and analyzes some algorithms that allow computers to "learn" automatically. Machine learning algorithms are a type of algorithm that automatically analyzes and obtains patterns from data and uses the patterns to predict unknown data. Because learning algorithms involve a lot of statistical theories, machine learning is particularly closely related to statistical inference, and is also called statistical learning theory. In terms of algorithm design, machine learning theory focuses on achievable and effective learning algorithms. Many inference problems are difficult without procedures, so part of machine learning research is to develop easy-to-handle approximate algorithms.
[0010] In the prior art, it is difficult to choose the corresponding questions when designing a scale. Generally, the corresponding questions are selected based on the designer's experience. How to reflect the same result with the least number of questions is an important challenge faced by the scale. Since there are a large number of questions in the scale, the enthusiasm of the respondents is affected, resulting in increased randomness in answering questions, which greatly affects the user experience. Therefore, how to design a scale that meets actual needs and has as few questions as possible is an important challenge. Summary of the invention
[0011] In view of one or more technical defects in the above-mentioned prior art, the present invention designs special hardware and software to solve the above-mentioned technical problems and proposes the following technical solutions.
[0012] A method for automatically optimizing a scale based on a small data sample of an intelligent model, the method comprising:
[0013] Initialization step: design a scale with N questions, where each question is numbered as QI;
[0014] A preprocessing step, collecting the user's answer results to the scale through the client and processing them into a feature vector;
[0015] The compression step uses a plurality of different machine learning models to process the feature vectors and then compresses the N questions into M questions to form a new scale, wherein M≤N.
[0016] Furthermore, the operation of processing the answer results of the scale into a feature vector is: after automatic data cleaning of the survey data, the data to be collected for each question is entered into the question and answer result QI_j, where j≤N, and each question and answer result includes answer characters, answer values, answer time response, null values and missing values. The question and answer results of all questions form a data table, each column of numerical data is used as a feature, and all features constitute a feature vector, and labels are added to the users, and the labels and feature vectors are corresponded to form sample data.
[0017] Furthermore, the operation of the compression step is:
[0018] Construct K different machine learning models, and the comprehensive accuracy of the K different machine learning models is Score N For each question QI, the best five machine learning models are selected from the K different machine learning models to process the sample data, and the N-1 question QIs with the highest scores are obtained. The remaining questions are removed and combined into a new scale. The feature vectors corresponding to the N-1 question QIs are used to retrain the K different machine learning models. At this time, the comprehensive accuracy of the K different machine learning models is Score N-1 , judge Score N -Score N-1 Is it less than a threshold? Compared with the initial Score0, Score N –Score0 is also less than the threshold. If so, a new scale composed of N-1 questions is published for users to answer, and then the preprocessing step and the compression step are performed until the number of questions is compressed to M, where K≥50.
[0019] Furthermore, the operation of selecting the best five machine learning models to process the sample data is:
[0020] Calculate the important column score of the feature corresponding to the QI of the problem in each of the five optimal machine learning models;
[0021] The single item scores of the QI of the problem calculated by each model in the said optimal 5 machine learning models are sorted, wherein the score of QI is the average of the scores of the top 5 machine learning models in descending order of the scores of important columns in QI_j.
[0022] Furthermore, the threshold is 1%.
[0023] The present invention also proposes a device for automatically optimizing a scale based on a small data sample of an intelligent model, characterized in that the device comprises:
[0024] Initialize the unit and design a scale with N questions, where each question is numbered as QI;
[0025] A preprocessing unit, which collects the user's answer results to the scale through the client and processes them into a feature vector;
[0026] A compression unit processes the feature vector using a plurality of different machine learning models and compresses the N questions into M questions to form a new scale, wherein M≤N.
[0027] Furthermore, the operation of processing the answer results of the scale into a feature vector is: after automatic data cleaning of the survey data, the data to be collected for each question is entered into the question and answer result QI_j, where j≤N, and each question and answer result includes answer characters, answer values, answer time response, null values and missing values. The question and answer results of all questions form a data table, each column of numerical data is used as a feature, and all features constitute a feature vector, and labels are added to the users, and the labels and feature vectors are corresponded to form sample data.
[0028] Furthermore, the operation performed by the compression unit is:
[0029] Construct K different machine learning models, and the comprehensive accuracy of the K different machine learning models is Score N For each question QI, the best five machine learning models are selected from the K different machine learning models to process the sample data, and the N-1 question QIs with the highest scores are obtained. The remaining questions are removed and combined into a new scale. The feature vectors corresponding to the N-1 question QIs are used to retrain the K different machine learning models. At this time, the comprehensive accuracy of the K different machine learning models is Score N-1 , judge Score N -Score N-1 Is it less than a threshold? If so, a new scale composed of N-1 questions is published for users to answer, and then the preprocessing unit and the compression unit perform corresponding operations until the number of questions is compressed to M, where K≥50.
[0030] Furthermore, the operation of selecting the best five machine learning models to process the sample data is:
[0031] Calculate the important column score of the feature corresponding to the QI of the problem in each of the five optimal machine learning models;
[0032] The single item scores of the QI of the problem calculated by each model in the said optimal 5 machine learning models are sorted, wherein the score of QI is the average of the scores of the top 5 machine learning models in descending order of the scores of important columns in QI_j.
[0033] Furthermore, the threshold is 1%.
[0034] The technical effect of the present invention is that the present invention proposes a method for automatically optimizing a scale based on a small data sample of an intelligent model, the method comprising: an initialization step, designing a scale with N questions, wherein each question is numbered QI; a preprocessing step, collecting the user's answer results to the scale through the client and processing them into a feature vector; a compression step, using multiple different machine learning models to process the feature vector and then compressing the N questions into M questions to form a new scale, wherein M≤N. The present invention analyzes and processes the answer situation of the questions of the designed scale through multiple machine learning, gradually deletes the questions that have little impact on the evaluation results or bring noise, effectively reduces the number of questions in the scale, and ensures that each time a question is reduced, the decrease in accuracy caused by removing the question is minimized, and sometimes, removing some questions will improve the accuracy of the model because these questions may bring noise. The purpose of the present invention is to reduce the number of questions without reducing the effectiveness of the entire questionnaire. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Other features, objects and advantages of the present application will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings.
[0036] Figure 1 It is a flowchart of a method for automatically optimizing a scale based on a small data sample of an intelligent model according to an embodiment of the present invention.
[0037] Figure 2 It is a structural diagram of a device for automatically optimizing a scale based on a small data sample of an intelligent model according to an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0039] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0040] Figure 1 A method for automatically optimizing a scale based on a small data sample of an intelligent model of the present invention is shown, and the method comprises:
[0041] Initialization step S101, designing a scale with N questions, wherein each question is numbered QI; the scale designed by the present invention is also called a collection scale, and the data collected includes characters, numerical values, time responses, null values and missing values, and the designed N questions include graphs, survey questions, response time and other scale questions. N questions can be set according to the actual cognitive needs, such as according to the judgment of different groups or cognitive levels, that is, it is based on the cognitive business to expand to initialize the data source.
[0042] In the preprocessing step S102, the user's answer results to the scale are collected through the client and processed into a feature vector.
[0043] In one embodiment, the operation of processing the answer results of the scale into a feature vector is: after automatic data cleaning of the survey data, the data to be collected for each question is entered into the question and answer result QI_j, where j≤N, and each question and answer result includes answer characters, answer values, answer time response, null values and missing values. The question and answer results of all questions form a data table, each column of numerical data is used as a feature, and all features constitute a feature vector, and labels are added to the users, and the labels and feature vectors are corresponded to form sample data.
[0044] When pre-processing the answer results of the scale, automatic data cleaning is also performed on them. The cleaning scheme of automatic data cleaning adopted by the present invention includes "one-hot encoding", missing value filling -1, 0 / 1 encoding, and all the data collected by the scale are processed into numerical data. Processing them into numerical data is convenient for processing and has a faster processing speed.
[0045] The client used in the present invention can be a smart phone, a smart tablet, a laptop computer, etc., which is a machine device with network connection, display, and input functions.
[0046] In the compression step S103, the feature vectors are processed using a plurality of different machine learning models to compress the N questions into M questions to form a new scale, wherein M≤N.
[0047] In one embodiment, the operation of the compression step is: constructing K different machine learning models, and the comprehensive accuracy of the K different machine learning models is Score N For each question QI, the best five machine learning models are selected from the K different machine learning models to process the sample data, and the N-1 question QIs with the highest scores are obtained. The remaining questions are removed and combined into a new scale. The feature vectors corresponding to the N-1 question QIs are used to retrain the K different machine learning models. At this time, the comprehensive accuracy of the K different machine learning models is Score N-1, judge Score N -Score N-1 Is it less than a threshold? Compared with the initial Score0, Score N –Score0 is also less than the threshold, for example, the threshold is 1% or 2%. If so, a new scale composed of N-1 questions is published for users to answer, and then the preprocessing step and the compression step are performed until the number of questions is compressed to M, where K ≥ 50. Another case is that if Score N -Score N-1 If the value is not less than the threshold, it means that it is impossible to reduce N problems to N-1 problems by removing one. In this case, it is necessary to readjust the K machine learning models and retrain them until the Score is N -Score N-1 K machine learning models that are smaller than this threshold.
[0048] The model in the present invention is a model obtained by applying an automatic voting combination model, which can be a voting model composed of any multiple models of the model with the highest accuracy, the model with the highest precision, the model with the highest balanced accuracy, the highest recall rate and the highest F1 value. In an exemplary description, the 3 Top AI models used in the embodiment of the present invention have a structure as described below.
[0049] AI model 1 structure: Input→LogisticRegression, corresponding to the parameters generated by data item training: neuralLogisticRegression_op 1C.
[0050] AI model 2 structure: Input→ExtraTreesClassifier, corresponding parameters generated by data item training: neural ExtraTreesClassifier op 1n_estimators, neural ExtraTreesClassifier_op1max_leaf_nodes, neural ExtraTreesClassifier_op 1max_depth, neuralExtraTreesClassifier_op 1oob_score.
[0051] AI model 3 structure: Input→FactorAnalysis→ExtraTreesClassifier, corresponding to the parameters generated by data item training: neural FactorAnalysis_op 1n_components, neuralExtraTreesClassifier_op 2n_estimators, neural ExtraTreesClassifier_op 2max_leaf_nodes, neural ExtraTreesClassifier_op 2max_depth, neuralExtraTreesClassifier_op 2oob_score.
[0052] The machine learning model used in the present invention is a convolutional neural network model, a deep neural network model, an adversarial network model, etc., or a network model of the same type but with different structures or parameters.
[0053] In one embodiment, the operation of selecting the best five machine learning models to process the sample data is: calculating the important column score of the feature corresponding to the problem QI in each of the best five machine learning models; sorting the problem QI according to the individual scores calculated by each of the best five machine learning models, wherein the score of QI is the average of the scores of the top five machine learning models in descending order of the important column scores in QI_j.
[0054] The present invention analyzes and processes the answers to the questions in the designed scale through multiple machine learning, gradually deletes the questions that have little impact on the evaluation results or bring noise, effectively reduces the number of questions in the scale, and ensures that each time a question is reduced, the decrease in accuracy caused by removing the question is minimized, and sometimes, removing some questions will improve the accuracy of the model because these questions may bring noise. The purpose of the present invention is to reduce the number of questions without reducing the effectiveness of the entire questionnaire, which is an important invention of the present invention.
[0055] Figure 2 The present invention shows a device for automatically optimizing a scale based on a small data sample of an intelligent model, the device comprising:
[0056] Initialization unit 201 designs a scale with N questions, wherein each question is numbered QI; the scale designed by the present invention is also called a collection scale, and the data collected includes characters, numerical values, time responses, null values and missing values, and the designed N questions include graphs, survey questions, response time and other scale questions. N questions can be set according to the actual cognitive needs, such as according to the judgment of different groups or cognitive levels, that is, it is based on the cognitive business to expand to initialize the data source.
[0057] The pre-processing unit 202 collects the user's answer results to the scale through the client and processes them into a feature vector.
[0058] In one embodiment, the operation of processing the answer results of the scale into a feature vector is: after automatic data cleaning of the survey data, the data to be collected for each question is entered into the question and answer result QI_j, where j≤N, and each question and answer result includes answer characters, answer values, answer time response, null values and missing values. The question and answer results of all questions form a data table, each column of numerical data is used as a feature, and all features constitute a feature vector, and labels are added to the users, and the labels and feature vectors are corresponded to form sample data.
[0059] When pre-processing the answer results of the scale, automatic data cleaning is also performed on them. The cleaning scheme of automatic data cleaning adopted by the present invention includes "one-hot encoding", missing value filling -1, 0 / 1 encoding, and all the data collected by the scale are processed into numerical data. Processing them into numerical data is convenient for processing and has a faster processing speed.
[0060] The client used in the present invention can be a smart phone, a smart tablet, a laptop computer, etc., which is a machine device with network connection, display, and input functions.
[0061] The compression unit 203 uses a plurality of different machine learning models to process the feature vectors and then compresses the N questions into M questions to form a new scale, wherein M≤N.
[0062] In one embodiment, the operation performed by the compression unit is: constructing K different machine learning models, and the comprehensive accuracy of the K different machine learning models is Score N For each question QI, the best five machine learning models are selected from the K different machine learning models to process the sample data, and the N-1 question QIs with the highest scores are obtained. The remaining questions are removed and combined into a new scale. The feature vectors corresponding to the N-1 question QIs are used to retrain the K different machine learning models. At this time, the comprehensive accuracy of the K different machine learning models is Score N-1, judge Score N -Score N-1 Is it less than a threshold? Compared with the initial Score0, Score N –Score0 is also less than the threshold, for example, the threshold is 1% or 2%. If so, a new scale composed of N-1 questions is published for users to answer, and then the preprocessing unit and the compression unit perform corresponding operations until the number of questions is compressed to M, where K ≥ 50. Another case is that if Score N -Score N-1 If the value is not less than the threshold, it means that it is impossible to reduce N problems to N-1 problems by removing one. In this case, it is necessary to readjust the K machine learning models and retrain them until the Score is N -Score N-1 K machine learning models that are smaller than this threshold.
[0063] The model in the present invention is a model obtained by applying an automatic voting combination model, which can be a voting model composed of any multiple models of the model with the highest accuracy, the model with the highest precision, the model with the highest balanced accuracy, the highest recall rate and the highest F1 value. In an exemplary description, the 3 Top AI models used in the embodiment of the present invention have a structure as described below.
[0064] AI model 1 structure: Input→LogisticRegression, corresponding to the parameters generated by data item training: neuralLogisticRegression_op 1C.
[0065] AI model 2 structure: Input→ExtraTreesClassifier, corresponding parameters generated by data item training: neural ExtraTreesClassifier op 1n_estimators, neural ExtraTreesClassifier_op1max_leaf_nodes, neural ExtraTreesClassifier_op 1max_depth, neuralExtraTreesClassifier_op 1oob_score.
[0066] AI model 3 structure: Input→FactorAnalysis→ExtraTreesClassifier, corresponding to the parameters generated by data item training: neural FactorAnalysis_op 1n_components, neuralExtraTreesClassifier_op 2n_estimators, neural ExtraTreesClassifier_op 2max_leaf_nodes, neural ExtraTreesClassifier_op 2max_depth, neuralExtraTreesClassifier_op 2oob_score.
[0067] The machine learning model used in the present invention is a convolutional neural network model, a deep neural network model, an adversarial network model, etc., or a network model of the same type but with different structures or parameters.
[0068] In one embodiment, the operation of selecting the best five machine learning models to process the sample data is: calculating the important column score of the feature corresponding to the problem QI in each of the best five machine learning models; sorting the problem QI according to the individual scores calculated by each of the best five machine learning models, wherein the score of QI is the average of the scores of the top five machine learning models in descending order of the important column scores in QI_j.
[0069] The present invention analyzes and processes the answers to the questions in the designed scale through multiple machine learning, gradually deletes the questions that have little impact on the evaluation results or bring noise, effectively reduces the number of questions in the scale, and ensures that each time a question is reduced, the decrease in accuracy caused by removing the question is minimized, and sometimes, removing some questions will improve the accuracy of the model because these questions may bring noise. The purpose of the present invention is to reduce the number of questions without reducing the effectiveness of the entire questionnaire, which is an important invention of the present invention.
[0070] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0071] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the devices described in the various embodiments of the present application or certain parts of the embodiments.
[0072] Finally, it should be noted that the above embodiments are only intended to illustrate rather than limit the technical solutions of the present invention. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the present invention can still be modified or replaced by equivalents. Any modification or partial replacement that does not depart from the spirit and scope of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A method for automatically optimizing a scale based on a small data sample of an intelligent model, characterized in that: The method includes: Initialization step: design a scale with N questions, where each question is numbered as QI; A preprocessing step, collecting the user's answer results to the scale through the client and processing them into a feature vector, wherein the answer results include answer characters, answer values, answer time response, null values and missing values; Compression step, build K different machine learning models, the comprehensive accuracy of the K different machine learning models is Score N , for each problem QI, select the best 5 machine learning models from the models of the K different machine learning models to process the sample data, and calculate the important column score of the feature corresponding to the problem QI in each of the five best machine learning models; sort according to the single score of the problem QI calculated by each of the five best machine learning models, where the score of QI is the average of the scores of the top five machine learning models in descending order of the important column scores in QI_j; obtain the N-1 problem QIs with the highest scores, remove the rest of the problems, combine them into a new scale, and use the feature vectors corresponding to the N-1 problem QIs to retrain the K different machine learning models. At this time, the comprehensive accuracy of the K different machine learning models is Score N-1 , judge Score N -Score N-1 Is it less than a threshold? Compared with the initial Score0, Score N –Score0 is also less than the threshold. If so, a new scale composed of N-1 questions is published for users to answer, and then the preprocessing step and the compression step are performed until the number of questions is compressed to M, where K≥50 and M≤N.
2. The method according to claim 1, characterized in that The operation of collecting the user's answer results to the scale through the client and processing them into a feature vector is as follows: after automatic data cleaning of the survey data, the data to be collected for each question is entered into the question and answer result QI_j, where j≤N, and the question and answer results of all questions form a data table, each column of numerical data is used as a feature, and all features constitute a feature vector, and labels are added to the users, and the labels and feature vectors are corresponded to form sample data.
3. The method according to claim 1, characterized in that The threshold value is 1%.
4. A device for automatically optimizing a scale based on a small data sample of an intelligent model, characterized in that: The device includes: Initialize the unit and design a scale with N questions, where each question is numbered as QI; A preprocessing unit, which collects the user's answer results to the scale through the client and processes them into a feature vector, wherein the answer results include answer characters, answer values, answer time response, null values and missing values; Compression unit, constructs K different machine learning models, and the comprehensive accuracy of the K different machine learning models is Score N , for each problem QI, select the best 5 machine learning models from the models of the K different machine learning models to process the sample data, and calculate the important column score of the feature corresponding to the problem QI in each of the five best machine learning models; sort according to the single score of the problem QI calculated by each of the five best machine learning models, where the score of QI is the average of the scores of the top five machine learning models in descending order of the important column scores in QI_j; obtain the N-1 problem QIs with the highest scores, remove the rest of the problems, combine them into a new scale, and use the feature vectors corresponding to the N-1 problem QIs to retrain the K different machine learning models. At this time, the comprehensive accuracy of the K different machine learning models is Score N-1 , judge Score N -Score N-1 Is it less than a threshold? Compared with the initial Score0, Score N –Score0 is also less than the threshold. If so, a new scale composed of N-1 questions is published for users to answer, and then the preprocessing unit and the compression unit perform corresponding operations until the number of questions is compressed to M, where K≥50 and M≤N.
5. The device according to claim 4, characterized in that The operation of processing the answer results of the scale into a feature vector is as follows: after automatic data cleaning of the survey data, the data to be collected for each question is entered into the question and answer result QI_j, where j≤N, and the question and answer results of all questions form a data table, with each column of numerical data as a feature, and all features constitute a feature vector, and labels are added to the users, and the labels and feature vectors are corresponded to form sample data.
6. The device according to claim 4, characterized in that The threshold value is 1%.
