Training method and device for credit evaluation model of specific person, medium and equipment
By acquiring and quantifying the personal data of specific people, using large language models and credit evaluation models, the problems of strong subjectivity and low efficiency when manually evaluating credit are solved, and more accurate credit evaluation is achieved.
Patent Information
- Application Number
- CN202411735292.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-28
Smart Images

Figure CN119722099A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of deep learning technology, and in particular to a training method, device, medium and equipment for a credit assessment model for a specific person. Background Art
[0002] The management of certain specific people has always been an important issue in social governance. By evaluating the behavior of specific people and giving them positive incentives, we can encourage them to abide by laws and regulations and actively reform themselves.
[0003] In related technologies, the credit assessment of specific persons mainly relies on manual assessment, which has problems such as strong subjectivity, low efficiency, and inconsistent standards, resulting in inaccurate credit assessment. Summary of the invention
[0004] This application provides a training method, device, medium and equipment for a credit assessment model of a specific person, which is used to solve the problem of strong subjectivity, low efficiency and inconsistent standards when manually assessing the credit of a specific person, resulting in inaccurate credit assessment. The technical solution is as follows:
[0005] According to a first aspect of the present application, a method for training a credit assessment model for a specific person is provided, the method comprising:
[0006] Acquire a large amount of personal data of specific persons, wherein the personal data includes direct quantitative data and indirect quantitative data, wherein the direct quantitative data includes at least one of demographic data, family and social background data, and economic data; and the indirect quantitative data includes at least one of social data, specific behavior data, psychological and cognitive data, and management performance data;
[0007] quantizing the directly quantized data into corresponding features according to a preset quantization relationship;
[0008] quantizing the indirect quantization data into corresponding features using a large language model;
[0009] The credit assessment model is used to obtain feature thresholds of each dimension, and the features of each dimension are divided into positive samples and negative samples according to the feature thresholds. The WOE value of each dimension and the IV values of all dimensions are calculated according to the positive samples and the negative samples, and the feature thresholds of each dimension corresponding to the maximum IV value are used as model parameters of the credit assessment model.
[0010] In a possible implementation, the step of using a large language model to quantize the indirect quantization data into corresponding features includes:
[0011] Obtaining the collected data and prompt words of each dimension in the indirect quantitative data;
[0012] Inputting the collected data and the prompt words corresponding to the dimension into a large language model;
[0013] The collected data is processed according to the prompt word using the large language model to obtain features corresponding to the dimension.
[0014] In a possible implementation, the acquiring of the collected data and prompt words of each dimension in the indirect quantitative data includes:
[0015] Obtaining collected data of each dimension in the indirect quantitative data;
[0016] The personnel type information and dimension information of the specific personnel are obtained, and the personnel type information and dimension information are added to a preset prompt word template to obtain a prompt word corresponding to the dimension.
[0017] In a possible implementation, dividing the features of each dimension into positive samples and negative samples according to the feature threshold includes:
[0018] For each dimension of the feature, compare the size of the feature with the feature threshold;
[0019] If the feature is greater than or equal to the feature threshold, the feature is determined as a positive sample;
[0020] If the feature is smaller than the feature threshold, the feature is determined as a negative sample.
[0021] In a possible implementation, calculating the WOE value of each dimension and the IV values of all dimensions according to the positive sample and the negative sample includes:
[0022] For each dimension, count the number of positive samples and negative samples in the dimension, input the number of positive samples and negative samples into the WOE calculation formula, and obtain the WOE value of the dimension;
[0023] Add up the WOE values of all dimensions to get the IV value.
[0024] In a possible implementation manner, quantizing the directly quantized data into corresponding features according to a preset quantization relationship includes:
[0025] For the collected data of each dimension in the directly quantized data, obtaining a quantization relationship corresponding to the dimension, wherein the quantization relationship includes a mapping relationship between different collected data and different features;
[0026] The features corresponding to the collected data are searched in the quantitative relationship.
[0027] In a possible implementation, the method further includes:
[0028] Obtaining personal data of the specific person to be evaluated, the personal data including direct quantitative data and indirect quantitative data, the direct quantitative data including demographic data, family and social background data, economic data; the indirect quantitative data including social data, specific behavioral data, psychological and cognitive data, management performance data;
[0029] quantizing the directly quantized data into corresponding features according to a preset quantization relationship;
[0030] quantizing the indirect quantization data into corresponding features using a large language model;
[0031] The credit assessment model is used to obtain the feature thresholds of each dimension after training, the features of each dimension are divided into positive samples and negative samples according to the feature thresholds, and the WOE value of each dimension and the IV values of all dimensions are calculated according to the positive samples and the negative samples;
[0032] The credit score of the specific person is determined based on the IV value.
[0033] According to a second aspect of the present application, a training device for a credit assessment model of a specific person is provided, the device comprising:
[0034] An acquisition module, for acquiring a large amount of personal data of specific persons, wherein the personal data includes direct quantitative data and indirect quantitative data, wherein the direct quantitative data includes at least one of demographic data, family and social background data, and economic data; and the indirect quantitative data includes at least one of social data, specific behavior data, psychological and cognitive data, and management performance data;
[0035] A quantization module, used for quantizing the directly quantized data into corresponding features according to a preset quantization relationship;
[0036] The quantization module is further used to quantize the indirect quantization data into corresponding features using a large language model;
[0037] A training module is used to use the credit assessment model to obtain feature thresholds of each dimension, divide the features of each dimension into positive samples and negative samples according to the feature thresholds, calculate the WOE value of each dimension and the IV values of all dimensions according to the positive samples and the negative samples, and use the feature thresholds of each dimension corresponding to the maximum IV value as model parameters of the credit assessment model.
[0038] According to a third aspect of the present application, a computer-readable storage medium is provided, in which at least one instruction is stored. The at least one instruction is loaded and executed by a processor to implement the training method of the credit assessment model for a specific person as described above.
[0039] According to a fourth aspect of the present application, a computer device is provided, wherein the computer device includes a training device for the credit assessment model of the specific person mentioned above.
[0040] The beneficial effects of the technical solution provided by this application include at least:
[0041] For the personal data of a specific person, a large language model can be used to quantify the indirect quantitative data into corresponding features, thereby realizing the quantification of data that cannot be directly quantified. The model parameters of the credit assessment model are the feature thresholds of each dimension. In order to train the credit assessment model, the features of each dimension can be divided into positive samples and negative samples according to the preset feature thresholds, and then the WOE value of each dimension and the IV value of all dimensions are calculated based on the positive and negative samples. Finally, the feature thresholds of each dimension corresponding to the maximum IV value are used as model parameters, thereby improving the accuracy of the credit assessment model. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 It is a flow chart of a method for training a credit assessment model for a specific person provided by an embodiment of the present application;
[0044] Figure 2 It is a flow chart of a method for training a credit assessment model for a specific person provided by an embodiment of the present application;
[0045] Figure 3 It is a flow chart of a method for using a credit assessment model for a specific person provided by an embodiment of the present application;
[0046] Figure 4 It is a structural block diagram of a training device for a credit assessment model for a specific person provided by an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0048] like Figure 1As shown, it shows a method flow chart of a method for training a credit assessment model for a specific person provided by an embodiment of the present application, and the training method for the credit assessment model for a specific person can be applied to a computer device. The training method for the credit assessment model for a specific person may include:
[0049] Step 101, obtaining a large amount of personal data of specific persons, the personal data including direct quantitative data and indirect quantitative data, the direct quantitative data including at least one of demographic data, family and social background data, and economic data; the indirect quantitative data including at least one of social data, specific behavior data, psychological and cognitive data, and management performance data.
[0050] The personal data of specific people include directly quantitative data and indirectly quantitative data. Directly quantitative data is data that can be directly quantified into corresponding features. For example, directly quantitative data can be different options, and each option corresponds to a different feature value. Indirectly quantitative data is data that cannot be directly quantified and needs to be quantified with the help of a large language model. For example, indirect quantitative data can be the content of a psychological counseling conversation or a social chat record. The large language model can be used to score the indirect quantitative data and obtain the feature value.
[0051] First, direct quantitative data of drug abusers include at least one of demographic data, family and social background data, and economic data; indirect quantitative data include at least one of social data, specific behavioral data, psychological and cognitive data.
[0052] (1) Demographic data
[0053] Gender: There may be differences in drug abuse behavior between men and women. The proportion of drug abusers of different genders, the reasons for drug abuse, and the preference for different drugs can all be used as statistical data.
[0054] Marital status: Marital status, such as single, married, divorced or widowed, may affect the psychological state and living environment of drug abusers, and thus be related to drug abuse behavior. For example, divorced or widowed people may be more likely to fall into the predicament of drug abuse due to emotional frustration and other reasons.
[0055] Educational level: People with different educational levels have different understandings of drugs, resistance, and social circles, which will affect their likelihood of drug abuse and their performance after drug abuse. For example, people with low education may be more likely to abuse drugs due to lack of relevant knowledge and correct guidance.
[0056] (2) Family and social background data
[0057] Family background: Family factors such as family income, family structure, parents’ education level, and whether there is a history of drug abuse have an important impact on individual drug abuse behavior. For example, people with financial difficulties, disharmonious parental relationships, or relatives who abuse drugs may be at higher risk of drug abuse.
[0058] Social background: Factors such as the economic development level, social and cultural environment, and drug circulation in different regions can lead to differences in the distribution and characteristics of drug abusers. For example, the proportion of drug abusers and the types of drug abuse may be different between economically developed and relatively backward regions, and the drug abuse situation in urban and rural areas also has its own characteristics.
[0059] (3) Economic data
[0060] Income level: There is a certain correlation between individual or family income and drug abuse. Low-income people may abuse drugs due to high life pressure and low expectations for the future, while high-income people may also use drugs due to social circles and seeking excitement. Drug abusers with different income levels will also have different types and frequencies of drug consumption.
[0061] Employment: In addition to occupation, employment status such as full-time, part-time, unemployed, and job stability are also important factors. People who are unemployed or have unstable jobs may be more likely to fall into the predicament of drug abuse, and the work pressure and environment of certain specific occupations may also be related to drug abuse behavior.
[0062] (4) Social Data
[0063] Social circle: Whether there are drug abusers among the drug abuser’s friends or relatives, as well as the location and frequency of their social activities, can reflect the impact of their social environment on drug abuse behavior. Drug abuse culture and peer pressure in the social circle may promote or hinder a person from abusing drugs.
[0064] Drug-related social relationships: such as whether the individual is involved in drug transactions, whether he or she has connections with drug dealers, etc. These relationships can indirectly reflect the depth and breadth of his or her drug abuse and are of great value in preventing drug abuse.
[0065] (5) Specific behavior data
[0066] Age of first drug abuse: reflects the time when drug abusers begin to come into contact with drugs. It is of great significance for analyzing drug abuse trends, key age groups for drug abuse prevention work, etc. It can also be used as a reference factor for predicting the future development of drug abusers and the difficulty of quitting drug addiction.
[0067] Frequency of drug abuse: including the number of times of drug abuse in different time dimensions such as daily, weekly, and monthly, can reflect the degree of drug addiction of drug abusers, which in turn affects their physical condition, social function, and the difficulty and need of quitting drug addiction.
[0068] Methods of drug abuse: Different methods of drug abuse, such as oral, injection, and smoking, are not only related to the type of drug, but may also reflect the preferences, economic strength, and awareness of their own health of the drug abuser. The health risks and social hazards brought about by different methods of drug abuse are also different.
[0069] Drug addiction treatment experience: Data such as whether there has been drug addiction treatment experience, the number of times the drug addiction has been treated, the method of drug addiction treatment, and the relapse after drug addiction treatment are very important for evaluating the drug abuser's willingness to treat drug addiction, the effectiveness of drug addiction treatment, and formulating personalized drug addiction treatment plans.
[0070] (6) Psychological and cognitive data
[0071] Mental health status: Drug abusers often have psychological problems of varying degrees, such as anxiety, depression, and low self-esteem. Using professional psychological assessment tools to assess the mental health status of drug abusers and understand their psychological characteristics and problems will help analyze the psychological motivations for drug abuse and provide a basis for psychological intervention and drug addiction treatment.
[0072] Drug awareness: This includes the understanding of the harm of drugs, the knowledge of laws and regulations, etc. People with lower awareness may be more likely to try to abuse drugs, and improving their awareness of drugs is also an important part of the process of quitting drug addiction.
[0073] Second, the direct quantitative data of community management objects include at least one of demographic statistics and family and social background data, and the indirect quantitative data include at least one of specific behavioral data, psychological and cognitive data, and management performance data.
[0074] (1) Demographic data
[0075] Gender: Community management objects of different genders may differ in specific behavior types, management needs, and psychological characteristics. The ratio of men to women and the distribution of different genders in various specific behaviors can all be used as statistical data.
[0076] Marital status: Marital status such as unmarried, married, divorced or widowed will affect the life stability, family support system and psychological state of the community management objects, and thus affect the management effect. The re-specific behavioral risks of community management objects with different marital status can be analyzed.
[0077] Educational level: The level of cultural literacy is closely related to legal awareness, cognitive ability and employment opportunities. Community management subjects with lower educational levels may need more educational assistance and skills training to improve their ability to return to society. It is possible to study the characteristics of people with different educational levels in terms of specific behavior types, performance during management, etc.
[0078] (2) Family and social background data
[0079] Family income: Family economic status will affect the quality of life and psychological state of community management objects. Management objects from low-income families may face greater life pressure, which will affect their management effects and specific behavioral risks. The relationship between family income and performance during management can be analyzed.
[0080] Family structure: such as the number of family members, whether there are children, relationship with family members, etc. A stable family structure and good family relationships can provide emotional support and supervision for the community management objects, help reduce the risk of specific behaviors, otherwise it may increase the risk.
[0081] Social support network: including the number of friends, frequency of social activities, participation in community organizations or volunteer activities, etc. A rich social support network can help community management objects better integrate into society, reduce loneliness and social exclusion, and improve management effectiveness.
[0082] (3) Specific behavior data
[0083] Specific behavior types: such as drunk driving, drug abuse, intentional injury, etc. The community management objects of different specific behavior types have great differences in psychological characteristics, behavior patterns and management needs. Classification, statistics and analysis of them will help to formulate more targeted management plans.
[0084] Number of specific behaviors: Data such as the ratio of first-time offenders to repeat offenders and the frequency of specific behaviors of repeat offenders can reflect the specific behavioral tendencies and management difficulties of community management subjects. Repeat offenders may require stricter supervision and more in-depth psychological correction.
[0085] Penalty situation: including the type of penalty, duration of penalty, etc. These factors directly determine the duration and supervision requirements of community management, and will also affect the psychological pressure and management attitude of the community management objects.
[0086] (4) Psychological and cognitive data
[0087] Mental health level: Through professional psychological assessment tools, we evaluate the anxiety, depression, inferiority, aggressiveness and other psychological characteristics of the community management subjects, understand their mental health status, and provide them with corresponding psychological counseling and intervention measures. Those with more serious mental health problems may need closer attention and more professional psychotherapy.
[0088] Self-cognition: including awareness of one's own specific behaviors, understanding of one's own personality and abilities, expectations for the future, etc. Community management subjects with clear self-cognition are more likely to actively participate in management, formulate reasonable life plans, and thus better return to society.
[0089] Legal awareness: the degree of understanding of laws and regulations and the awareness of compliance. People with insufficient legal awareness may be more likely to break the law again, so legal education and publicity need to be strengthened during the management process.
[0090] (5) Manage performance data
[0091] Compliance with regulations: such as reporting on time, attendance at education and community services, and whether the various regulations of community management have been violated. These data can directly reflect the management attitude and self-discipline of the community management objects, and are of great significance for evaluating management effectiveness and deciding whether the management plan needs to be adjusted.
[0092] Educational learning outcomes: Measure learning outcomes in legal knowledge, professional skills, mental health, etc. through assessment scores, learning experiences, behavioral changes, etc., so as to timely adjust educational content and methods and improve the quality of education management.
[0093] Community service performance: including participation in community service, work attitude, interaction with community residents, etc. Community management subjects who actively participate in community service and perform well are often more likely to gain recognition and acceptance from the community, enhance their sense of social responsibility and belonging, and promote their smooth return to society.
[0094] Third, the direct quantitative data of released personnel include at least one of demographic data, family and social background data, and economic data; the indirect quantitative data include at least one of specific behavioral data, psychological and cognitive data, and management performance data.
[0095] (1) Demographic data
[0096] Gender: Released persons of different genders may differ in specific behavior types, recidivism rates, etc. For example, men account for a higher proportion of certain specific behavior types, while women also account for a certain proportion of certain economic-related specific behaviors. Analyzing gender factors helps to understand the behavioral characteristics and management needs of released persons of different genders.
[0097] Marital status: Single, married, divorced or widowed marital status has an impact on the stability of life and psychological state of released persons. Married persons may have a family support system, which helps them to better return to society; while divorced or widowed persons may face greater life pressure and psychological burden, which affects their risk of recidivism.
[0098] Educational level: Educational level is related to the cognitive level, employment opportunities and social adaptability of released persons. People with lower educational levels may face more difficulties in finding employment and integrating into society, and have a relatively higher risk of recidivism. At the same time, the need for educational assistance and skills training is more urgent.
[0099] (2) Family and social background data
[0100] Family income: Family economic conditions can affect the quality of life and psychological state of released persons, and thus their risk of recidivism. Released persons from low-income families may face greater life pressure and may be more likely to recidivate if they lack effective economic support and employment opportunities.
[0101] Family structure: Family structure factors such as the number of family members, whether there are children, and the relationship with family members have an important impact on the reintegration of released persons into society. A stable family structure and good family relationships can provide emotional support and supervision for them, reducing the risk of recidivism; on the contrary, tense or broken family relationships may increase the possibility of recidivism.
[0102] Living environment: The economic development level, public security situation, community environment and other factors of the residential area will also have an impact on the released persons. People living in economically backward and poorly public security areas may face more bad temptations and social pressures, increasing the risk of recidivism; while a good community environment and community support system will help them integrate into society and reduce recidivism.
[0103] (3) Economic data
[0104] Employment status: The employment status of released prisoners, such as whether they are employed, the type of employment, and job stability, is an important factor affecting their reintegration into society and the risk of recidivism. Stable employment can provide economic income and social recognition, reducing the risk of recidivism; while difficulty in finding a job or frequent unemployment may lead to a lack of livelihood and increase the possibility of recidivism.
[0105] Income level: An individual’s income level is closely related to their quality of life and psychological state. Released prisoners with lower incomes may face financial pressure and be unable to meet their basic living needs, which increases their motivation to reoffend. Improving their income level and economic stability will help reduce the risk of reoffending.
[0106] Vocational skills: The level of vocational skills of released personnel affects their employment opportunities and career development. People who lack vocational skills may only be able to work in low-paying, unstable jobs, or even find it difficult to find a job; improving their employability and competitiveness through vocational skills training is of great significance for their smooth return to society.
[0107] (4) Specific behavior data
[0108] Specific behavior types: such as drunk driving, intentional injury, and drug abuse. Different types of specific behaviors reflect the behavioral patterns and psychological characteristics of released personnel, and their recidivism risks and management needs are also different. For example, drug abusers have a higher risk of relapse and require more targeted drug addiction treatment and psychological counseling measures.
[0109] Number of specific behaviors: Data such as the ratio of first-time offenders to repeat offenders and the frequency of specific behaviors of repeat offenders can reflect the specific behavioral tendencies and management difficulties of released persons. Repeat offenders often have a higher risk of reoffending and may require stricter supervision and more in-depth psychological correction and social assistance.
[0110] Length of punishment: The length of punishment is related to the reform effect and recidivism risk of the released person. Generally speaking, the risk of recidivism of released persons with a short punishment period may be relatively high due to the relatively short time of reform, but this is not absolute and needs to be analyzed in combination with other factors.
[0111] (5) Psychological and cognitive data
[0112] Mental health status: released personnel often have psychological problems of varying degrees, such as anxiety, depression, inferiority, aggression, etc. Assessing their mental health status through professional psychological assessment tools helps to understand their psychological characteristics and problems, and provides a basis for the formulation of psychological intervention and management measures. Personnel with more serious mental health problems may need closer attention and more professional psychological treatment.
[0113] Self-awareness: including awareness of one’s own specific behaviors, understanding of one’s own personality and abilities, and expectations for the future. Released personnel with clear self-awareness are more likely to actively participate in management, develop reasonable life plans, and thus better return to society.
[0114] Social cognition: The cognition and attitude of released prisoners towards society will also affect their behavior. For example, negative cognition such as dissatisfaction with society and distrust of others may increase their risk of recidivism; while positive social cognition and yearning for a normal life will help them integrate into society and reduce the possibility of recidivism.
[0115] (6) Management performance data
[0116] Performance during management: including reform performance, participation in education and labor reform, etc. Released persons who perform well during management have relatively good reform results and relatively low recidivism risks; while persons with poor performance may need further strengthening of supervision and management measures.
[0117] Acceptance of support measures: whether relevant support measures have been accepted after release, such as employment guidance, psychological counseling, social security, etc., as well as the degree of acceptance and effectiveness of these support measures. Effective support measures can help released persons better adapt to society and reduce the risk of recidivism, but if the support measures are not in place or are not accepted, it may affect the effectiveness of their return to society.
[0118] Step 102: quantize the direct quantization data into corresponding features according to a preset quantization relationship.
[0119] The quantitative relationship can be set empirically.
[0120] For example, demographic data includes gender, marital status, and education level; male and female in gender correspond to different characteristic values; unmarried, married, divorced, and widowed in marital status correspond to different characteristic values; primary education, secondary education, and higher education in education level correspond to different characteristic values. After obtaining the demographic data of a specific person, the corresponding characteristic value can be determined based on the gender, marital status, and education level of the specific person.
[0121] Step 103: quantize the indirect quantization data into corresponding features using a large language model.
[0122] The large language model is a pre-trained model, and the training method of the large language model is not limited in this embodiment.
[0123] The computer device can input each indirect quantization data into the large language model, and the large language model can process the indirect quantization data and score it to obtain a corresponding feature value.
[0124] Step 104, using the credit assessment model to obtain the feature threshold of each dimension, dividing the features of each dimension into positive samples and negative samples according to the feature threshold, calculating the WOE value of each dimension and the IV value of all dimensions based on the positive samples and negative samples, and taking the feature threshold of each dimension corresponding to the maximum IV value as the model parameter of the credit assessment model.
[0125] The credit assessment model may be a scorecard model, which can be used to calculate the Weight of Evidence (WOE) value of each dimension and the Information Value (IV) value of all dimensions.
[0126] The model parameters of the credit assessment model include the feature threshold of each dimension, which is used to classify the features of the corresponding dimension into positive samples and negative samples, so as to calculate the WOE value and IV value based on the positive samples and negative samples, and determine the credit of a specific person based on the IV value. If the feature threshold is inaccurate, it will lead to inaccurate classification of positive and negative samples, which will also affect the WOE value and IV value, and ultimately affect the credit score of a specific person. Therefore, we need to select the most suitable feature threshold for each dimension through training.
[0127] Specifically, multiple feature thresholds can be set for each dimension. A feature threshold is selected for each dimension each time calculation is performed. The features of the corresponding dimension are divided into positive samples and negative samples according to each feature threshold. The WOE value of each dimension is calculated based on the positive samples and negative samples, and then the IV value is calculated based on the WOE values of all dimensions. In this way, different IV values can be obtained by combining different feature thresholds of all dimensions. The feature thresholds of each dimension when the maximum IV value is obtained are selected, and these feature thresholds are determined as model parameters of the credit evaluation model. Subsequently, the credit evaluation model can directly use this set of feature thresholds to evaluate the credit of a specific person.
[0128] In summary, the training method of the credit assessment model for a specific person provided in the embodiment of the present application can use a large language model to quantify the indirect quantitative data into corresponding features for the personal data of the specific person, thereby realizing the quantification of data that cannot be directly quantified. The model parameters of the credit assessment model are the feature thresholds of each dimension. In order to train the credit assessment model, the features of each dimension can be divided into positive samples and negative samples according to the preset feature thresholds, and then the WOE value of each dimension and the IV value of all dimensions are calculated based on the positive samples and negative samples. Finally, the feature threshold of each dimension corresponding to the maximum IV value is used as a model parameter, thereby improving the accuracy of the credit assessment model.
[0129] like Figure 2 As shown, it shows a flowchart of a method for training a credit assessment model for a specific person provided by an embodiment of the present application, and the method for training a credit assessment model for a specific person can be applied to a computer device. The method for training a credit assessment model for a specific person may include:
[0130] Step 201, obtaining a large amount of personal data of specific persons, the personal data including direct quantitative data and indirect quantitative data, the direct quantitative data including at least one of demographic data, family and social background data, and economic data; the indirect quantitative data including at least one of social data, specific behavior data, psychological and cognitive data, and management performance data.
[0131] Specific persons include at least drug abusers, community management subjects and released persons. The personal data of each type of person is detailed in the description of step 101 and will not be repeated here.
[0132] Step 202, for the collected data of each dimension in the direct quantization data, obtain the quantization relationship corresponding to the dimension, wherein the quantization relationship includes a mapping relationship between different collected data and different features; and search for features corresponding to the collected data in the quantization relationship.
[0133] Quantitative relationships can be set based on experience. For example, if the proportion of males among drug abusers is relatively high, the quantitative relationship set can be: male ~1 point, female ~2 points. For another example, divorced or widowed people may be more likely to fall into the dilemma of drug abuse due to emotional frustration, etc., so the quantitative relationship set can be: unmarried ~3 points, married ~2 points, divorced ~1 point, widowed ~1 point. For another example, people with low education may be more likely to abuse drugs due to lack of relevant knowledge and correct guidance, so the quantitative relationship set can be: higher education ~3 points, secondary education ~2 points, lower education ~1 point.
[0134] Assuming that the collected data of a specific person is male, divorced, and low education, then his characteristics = 1+1+1=3 points.
[0135] Step 203, obtaining the collected data and prompt words of each dimension in the indirect quantitative data; inputting the collected data and the prompt words corresponding to the dimension into the large language model; using the large language model to process the collected data according to the prompt words to obtain features corresponding to the dimension.
[0136] For each type of specific person, the collected data of each dimension needs to be quantified into corresponding features through a large language model. Each dimension can have multiple collected data. For example, in the dimension of psychological and cognitive data, one collected data is the mental health status, and the other collected data is the degree of drug cognition.
[0137] Specifically, obtaining the collected data and prompt words for each dimension in the indirect quantitative data may include: obtaining the collected data for each dimension in the indirect quantitative data; obtaining personnel type information and dimension information of a specific person, adding the personnel type information and dimension information to a preset prompt word template, and obtaining the prompt word corresponding to the dimension.
[0138] Among them, the prompt words can be: "Please give the mental health level of the drug abuser based on the chat record between the drug abuser and the psychologist below. 5 points are very healthy, 4 points are relatively healthy, 3 points are average, 2 points are relatively unhealthy, and 1 point is very unhealthy. The chat record is as follows: xxxxxx. What is the score given?".
[0139] Step 204, using the credit assessment model to obtain the feature threshold of each dimension, dividing the features of each dimension into positive samples and negative samples according to the feature threshold, calculating the WOE value of each dimension and the IV value of all dimensions based on the positive samples and negative samples, and taking the feature threshold of each dimension corresponding to the maximum IV value as the model parameter of the credit assessment model.
[0140] The credit assessment model can be a scorecard model, which can be used to calculate the WOE value of each dimension and the IV value of all dimensions.
[0141] The model parameters of the credit assessment model include the feature threshold of each dimension, which is used to classify the features of the corresponding dimension into positive samples and negative samples, so as to calculate the WOE value and IV value based on the positive samples and negative samples, and determine the credit of a specific person based on the IV value. If the feature threshold is inaccurate, it will lead to inaccurate classification of positive and negative samples, which will also affect the WOE value and IV value, and ultimately affect the credit score of a specific person. Therefore, we need to select the most suitable feature threshold for each dimension through training.
[0142] Specifically, multiple feature thresholds can be set for each dimension. A feature threshold is selected for each dimension each time calculation is performed. The features of the corresponding dimension are divided into positive samples and negative samples according to each feature threshold. The WOE value of each dimension is calculated based on the positive samples and negative samples, and then the IV value is calculated based on the WOE values of all dimensions. In this way, different IV values can be obtained by combining different feature thresholds of all dimensions. The feature thresholds of each dimension when the maximum IV value is obtained are selected, and these feature thresholds are determined as model parameters of the credit evaluation model. Subsequently, the credit evaluation model can directly use this set of feature thresholds to evaluate the credit of a specific person.
[0143] When dividing positive samples and negative samples, for each dimension feature, compare the size of the feature with the feature threshold; if the feature is greater than or equal to the feature threshold, the feature is determined as a positive sample; if the feature is less than the feature threshold, the feature is determined as a negative sample. For example, if the feature threshold of a dimension is 3 points, then the specific person whose feature value of the dimension is greater than or equal to 3 points can be called a positive sample, and the specific person whose feature value is less than 3 points can be called a negative sample.
[0144] When calculating the WOE value and IV value, for each dimension, count the number of positive samples and negative samples in the dimension, input the number of positive samples and negative samples into the WOE calculation formula to get the WOE value of the dimension; add the WOE values of all dimensions to get the IV value.
[0145] The calculation formula for the WOE value of the i-th dimension is: Among them, Bad i is the number of negative samples in the i-th dimension, Bad Tis the number of negative samples in all dimensions, Good i is the number of positive samples in the i-th dimension, Good T is the number of positive samples in all dimensions.
[0146] The calculation formula for the IV value of the i-th dimension is:
[0147] The calculation formula for IV values of all dimensions is: Here n is the number of all dimensions.
[0148] In summary, the training method of the credit assessment model for a specific person provided in the embodiment of the present application can use a large language model to quantify the indirect quantitative data into corresponding features for the personal data of the specific person, thereby realizing the quantification of data that cannot be directly quantified. The model parameters of the credit assessment model are the feature thresholds of each dimension. In order to train the credit assessment model, the features of each dimension can be divided into positive samples and negative samples according to the preset feature thresholds, and then the WOE value of each dimension and the IV value of all dimensions are calculated based on the positive samples and negative samples. Finally, the feature threshold of each dimension corresponding to the maximum IV value is used as a model parameter, thereby improving the accuracy of the credit assessment model.
[0149] like Figure 3 As shown, it shows a flowchart of a method for using a credit assessment model for a specific person provided by an embodiment of the present application, and the method for using the credit assessment model for a specific person can be applied to a computer device. The method for using the credit assessment model for a specific person may include:
[0150] Step 301, obtaining personal data of a specific person to be evaluated, the personal data including direct quantitative data and indirect quantitative data, the direct quantitative data including at least one of demographic data, family and social background data, and economic data; the indirect quantitative data including at least one of social data, specific behavior data, psychological and cognitive data, and management performance data.
[0151] When the specific person to be evaluated is a drug abuser, the direct quantitative data includes at least one of demographic data, family and social background data, and economic data, and the indirect quantitative data includes at least one of social data, specific behavioral data, and psychological and cognitive data.
[0152] When the specific person to be evaluated is the subject of community management, the direct quantitative data includes at least one of demographic statistics and family and social background data, and the indirect quantitative data includes at least one of specific behavioral data, psychological and cognitive data, and management performance data.
[0153] When the specific person to be evaluated is a released person, the direct quantitative data includes at least one of demographic data, family and social background data, and economic data, and the indirect quantitative data includes at least one of specific behavioral data, psychological and cognitive data, and management performance data.
[0154] Step 302: quantize the directly quantized data into corresponding features according to a preset quantization relationship.
[0155] Step 303: quantize the indirect quantization data into corresponding features using a large language model.
[0156] Step 304, using the credit assessment model to obtain the feature thresholds of each dimension after training, dividing the features of each dimension into positive samples and negative samples according to the feature thresholds, and calculating the WOE value of each dimension and the IV values of all dimensions based on the positive samples and negative samples.
[0157] The implementation process of steps 301-304 is the same as that of steps 201-204, and will not be repeated here.
[0158] Step 305, determining the credit score of the specific person according to the IV value.
[0159] After obtaining the IV value, the computer device can directly use the IV value as a credit point, or convert the IV value into a credit point according to a preset method.
[0160] like Figure 4 As shown, it shows a structural block diagram of a training device for a credit assessment model of a specific person provided by an embodiment of the present application, and the training device for the credit assessment model of a specific person can be applied to a computer device. The training device for the credit assessment model of a specific person may include:
[0161] The acquisition module 410 is used to acquire a large amount of personal data of specific persons, where the personal data includes direct quantitative data and indirect quantitative data. The direct quantitative data includes at least one of demographic data, family and social background data, and economic data; the indirect quantitative data includes at least one of social data, specific behavior data, psychological and cognitive data, and management performance data.
[0162] A quantization module 420, configured to quantize the directly quantized data into corresponding features according to a preset quantization relationship;
[0163] The quantization module 420 is further used to quantize the indirect quantization data into corresponding features using the large language model;
[0164] The training module 430 is used to obtain the feature threshold of each dimension using the credit assessment model, divide the features of each dimension into positive samples and negative samples according to the feature threshold, calculate the WOE value of each dimension and the IV value of all dimensions according to the positive samples and negative samples, and use the feature threshold of each dimension corresponding to the maximum IV value as the model parameter of the credit assessment model.
[0165] In an optional embodiment, the quantization module 420 is further configured to:
[0166] Obtain the collected data and prompt words for each dimension of the indirect quantitative data;
[0167] Input the collected data and the prompt words corresponding to the dimensions into the large language model;
[0168] The collected data is processed according to the prompt words using a large language model to obtain features corresponding to the dimensions.
[0169] In an optional embodiment, the quantization module 420 is further configured to:
[0170] Obtain the collected data for each dimension in the indirect quantitative data;
[0171] The personnel type information and dimension information of a specific person are obtained, and the personnel type information and dimension information are added to a preset prompt word template to obtain a prompt word corresponding to the dimension.
[0172] In an optional embodiment, the training module 430 is further configured to:
[0173] For each dimension of the feature, compare the size of the feature with the feature threshold;
[0174] If the feature is greater than or equal to the feature threshold, the feature is determined as a positive sample;
[0175] If the feature is less than the feature threshold, the feature is determined as a negative sample.
[0176] In an optional embodiment, the training module 430 is further configured to:
[0177] For each dimension, count the number of positive samples and negative samples in the dimension, input the number of positive samples and negative samples into the WOE calculation formula to get the WOE value of the dimension;
[0178] Add up the WOE values of all dimensions to get the IV value.
[0179] In an optional embodiment, the quantization module 420 is further configured to:
[0180] For the collected data of each dimension in the direct quantitative data, the quantitative relationship corresponding to the dimension is obtained, and the quantitative relationship includes the mapping relationship between different collected data and different features;
[0181] Find the features corresponding to the collected data in the quantitative relationship.
[0182] In an optional embodiment, the acquisition module 410 is further used to acquire personal data of the specific person to be evaluated, the personal data including direct quantitative data and indirect quantitative data, the direct quantitative data including demographic data, family and social background data, economic data; the indirect quantitative data including social data, specific behavior data, psychological and cognitive data, management performance data;
[0183] The quantization module 420 is further used to quantize the direct quantization data into corresponding features according to a preset quantization relationship;
[0184] The quantization module 420 is further used to quantize the indirect quantization data into corresponding features using the large language model;
[0185] The evaluation module is used to use the credit evaluation model to obtain the feature thresholds of each dimension after training, divide the features of each dimension into positive samples and negative samples according to the feature thresholds, calculate the WOE value of each dimension and the IV value of all dimensions according to the positive samples and negative samples, and determine the credit score of a specific person according to the IV value.
[0186] In summary, the training device of the credit assessment model for a specific person provided in the embodiment of the present application can use a large language model to quantify indirect quantitative data into corresponding features for the personal data of the specific person, thereby realizing the quantification of data that cannot be directly quantified. The model parameters of the credit assessment model are the feature thresholds of each dimension. In order to train the credit assessment model, the features of each dimension can be divided into positive samples and negative samples according to the preset feature thresholds, and then the WOE value of each dimension and the IV value of all dimensions are calculated based on the positive samples and negative samples. Finally, the feature threshold of each dimension corresponding to the maximum IV value is used as a model parameter, thereby improving the accuracy of the credit assessment model.
[0187] An embodiment of the present application provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is loaded and executed by a processor to implement the training method of the credit assessment model for a specific person as described above.
[0188] An embodiment of the present application provides a computer device, which includes a training device for a credit assessment model of any specific person mentioned above.
[0189] It should be noted that: the training device for the credit assessment model of a specific person provided in the above embodiment only uses the division of the above functional modules as an example when performing credit assessment of a specific person. In actual application, the above functional allocation can be completed by different functional modules as needed, that is, the internal structure of the training device for the credit assessment model of a specific person is divided into different functional modules to complete all or part of the functions described above. In addition, the training device for the credit assessment model of a specific person provided in the above embodiment and the training method embodiment of the credit assessment model of a specific person belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0190] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0191] The above description is not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.
Claims
1. A method for training a credit assessment model for a specific person, characterized in that: The method comprises: Acquire a large amount of personal data of specific persons, wherein the personal data includes direct quantitative data and indirect quantitative data, wherein the direct quantitative data includes at least one of demographic data, family and social background data, and economic data; and the indirect quantitative data includes at least one of social data, specific behavior data, psychological and cognitive data, and management performance data; quantizing the directly quantized data into corresponding features according to a preset quantization relationship; quantizing the indirect quantization data into corresponding features using a large language model; The credit assessment model is used to obtain feature thresholds of each dimension, and the features of each dimension are divided into positive samples and negative samples according to the feature thresholds. The WOE value of each dimension and the IV values of all dimensions are calculated according to the positive samples and the negative samples, and the feature thresholds of each dimension corresponding to the maximum IV value are used as model parameters of the credit assessment model.
2. The method for training a credit assessment model for a specific person according to claim 1, characterized in that: The using of a large language model to quantize the indirect quantization data into corresponding features includes: Obtaining the collected data and prompt words of each dimension in the indirect quantitative data; Inputting the collected data and the prompt words corresponding to the dimension into a large language model; The collected data is processed according to the prompt word using the large language model to obtain features corresponding to the dimension.
3. The method for training a credit assessment model for a specific person according to claim 2, characterized in that: The step of obtaining the collected data and prompt words of each dimension in the indirect quantitative data includes: Obtaining collected data of each dimension in the indirect quantitative data; The personnel type information and dimension information of the specific personnel are obtained, and the personnel type information and dimension information are added to a preset prompt word template to obtain a prompt word corresponding to the dimension.
4. The method for training a credit assessment model for a specific person according to claim 1, characterized in that: The step of dividing the features of each dimension into positive samples and negative samples according to the feature threshold comprises: For each dimension of the feature, compare the size of the feature with the feature threshold; If the feature is greater than or equal to the feature threshold, the feature is determined as a positive sample; If the feature is smaller than the feature threshold, the feature is determined as a negative sample.
5. The method for training a credit assessment model for a specific person according to claim 1, characterized in that: The calculating the WOE value of each dimension and the IV value of all dimensions according to the positive sample and the negative sample includes: For each dimension, count the number of positive samples and negative samples in the dimension, input the number of positive samples and negative samples into the WOE calculation formula, and obtain the WOE value of the dimension; Add up the WOE values of all dimensions to get the IV value.
6. The method for training a credit assessment model for a specific person according to claim 1, characterized in that: The step of quantizing the directly quantized data into corresponding features according to a preset quantization relationship includes: For the collected data of each dimension in the directly quantized data, obtaining a quantization relationship corresponding to the dimension, wherein the quantization relationship includes a mapping relationship between different collected data and different features; The features corresponding to the collected data are searched in the quantitative relationship.
7. The method for training a credit assessment model for a specific person according to any one of claims 1 to 6, characterized in that: The method further comprises: Obtaining personal data of the specific person to be evaluated, the personal data including direct quantitative data and indirect quantitative data, the direct quantitative data including demographic data, family and social background data, economic data; the indirect quantitative data including social data, specific behavioral data, psychological and cognitive data, management performance data; quantizing the directly quantized data into corresponding features according to a preset quantization relationship; quantizing the indirect quantization data into corresponding features using a large language model; The credit assessment model is used to obtain the feature thresholds of each dimension after training, the features of each dimension are divided into positive samples and negative samples according to the feature thresholds, and the WOE value of each dimension and the IV values of all dimensions are calculated according to the positive samples and the negative samples; The credit score of the specific person is determined based on the IV value.
8. A training device for a credit assessment model of a specific person, characterized in that: The device comprises: An acquisition module, for acquiring a large amount of personal data of specific persons, wherein the personal data includes direct quantitative data and indirect quantitative data, wherein the direct quantitative data includes at least one of demographic data, family and social background data, and economic data; and the indirect quantitative data includes at least one of social data, specific behavior data, psychological and cognitive data, and management performance data; A quantization module, used for quantizing the directly quantized data into corresponding features according to a preset quantization relationship; The quantization module is further used to quantize the indirect quantization data into corresponding features using a large language model; A training module is used to use the credit assessment model to obtain feature thresholds of each dimension, divide the features of each dimension into positive samples and negative samples according to the feature thresholds, calculate the WOE value of each dimension and the IV values of all dimensions according to the positive samples and the negative samples, and use the feature thresholds of each dimension corresponding to the maximum IV value as model parameters of the credit assessment model.
9. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the training method of the credit assessment model for a specific person as described in any one of claims 1 to 7.
10. A computer device, characterized in that: The computer device includes: a training device for the credit assessment model of a specific person as described in claim 8.
Citation Information
Patent Citations
User credit evaluation method and device, electronic device and storage medium
CN109447461A
Multi-language talent level evaluation method and system
CN109858730A
Financial product risk assessment method and device, computer equipment and storage medium
CN110135691A
Method and device for predicting default loss rate, storage medium and electronic equipment
CN110659979A
Model generation method, credit score generation method and device, equipment and storage medium
CN111695084A