Photovoltaic customer loan risk prediction method, device, equipment and medium
Through feature extraction and power generation prediction of photovoltaic customers' corporate production data, photovoltaic equipment installation information and environmental data, the problems of low approval efficiency and insufficient risk control in traditional credit approval methods are solved, and more accurate loan risk prediction and control.
Patent Information
- Application Number
- CN202411108170.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-10-01
AI Technical Summary
The traditional credit approval method in the photovoltaic industry has problems of low approval efficiency and insufficient risk control, resulting in a long post-loan monitoring cycle, a lag in risk detection time, and a wide distribution of customers making it difficult to conduct on-site inspections.
A photovoltaic customer loan risk prediction method is adopted. By inputting enterprise production data, photovoltaic equipment installation information and environmental data into the credit risk prediction model, feature extraction and power generation prediction are performed to predict loan repayment risks and shorten the risk monitoring cycle to every day.
It improves the accuracy of loan risk prediction and can identify potential risks in advance before loan issuance, allowing financial institutions to take timely measures, such as adjusting loan limits or increasing guarantee requirements, improving the accuracy of risk control.
Smart Images

Figure CN118735674A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of financial risk management, and in particular to a method, device, equipment and medium for predicting risks of photovoltaic customer loans. Background Art
[0002] As an important part of the new energy industry, the photovoltaic industry has developed rapidly in recent years. However, the difficulty and high cost of financing for photovoltaic enterprises have always restricted the further expansion of the industry. The traditional credit approval method has problems such as low approval efficiency and insufficient risk control. Therefore, the development of an efficient and accurate photovoltaic industry credit management system is of great significance to solving the above problems. The banking industry has a lot of loan cooperation for photovoltaic projects, covering the whole country, but the post-loan monitoring of photovoltaic projects is still based on whether the borrower repays normally, the monitoring cycle is long, the risk discovery time is delayed, and there are difficulties such as the wide distribution of customers and difficulty in on-site inspections. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide a photovoltaic customer loan risk prediction method, device, equipment and medium, which can evaluate the repayment ability of photovoltaic project loan customers before the repayment stage, and accurately shorten the risk monitoring cycle from the repayment stage to a specific day. The specific scheme is as follows:
[0004] In a first aspect, the present application discloses a photovoltaic customer loan risk prediction method, comprising:
[0005] Inputting the enterprise production data, target photovoltaic equipment installation information and target environmental data with time tags of the photovoltaic customers to be evaluated into the target credit risk prediction model, so as to extract features of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data through the target credit risk prediction model, so as to obtain target photovoltaic features related to photovoltaic power generation prediction in each of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data;
[0006] Predicting photovoltaic power generation of the target photovoltaic characteristics by using the target credit risk prediction model to obtain a corresponding target photovoltaic power generation;
[0007] The target credit risk prediction model is used to predict the corresponding target income according to the target photovoltaic power generation, so as to obtain and output the risk prediction result of whether the loan repayment is completed within the loan time represented by the time tag of the photovoltaic customer to be evaluated according to the target income.
[0008] Optionally, before inputting the enterprise production data of the photovoltaic customer to be evaluated, the target photovoltaic equipment installation information and the target environmental data with time tags into the target credit risk prediction model, the method further includes:
[0009] The initial credit risk prediction model constructed based on the XGboost algorithm is trained using the photovoltaic data training set, so that the initial credit risk prediction model learns the correlation between the historical enterprise production data, photovoltaic equipment installation information, environmental data with historical time labels, and historical photovoltaic power generation under historical time in the photovoltaic data training set, so as to obtain a trained credit risk prediction model; wherein the historical time label specifically includes a historical segment label and a historical moment label;
[0010] Constructing a risk level mapping relationship between each historical income corresponding to each of the historical photovoltaic power generation and the loan risk level;
[0011] The risk level mapping relationship is embedded into the trained credit risk prediction model to obtain a target credit risk prediction model.
[0012] Optionally, before using the photovoltaic data training set to perform model training on the initial credit risk prediction model constructed based on the XGboost algorithm, the method further includes:
[0013] Collect and clean the photovoltaic enterprise's historical enterprise production data including production and operation data, financial data, credit data, photovoltaic equipment installation information, environmental data including temperature, humidity, precipitation, solar long-wave and short-wave radiation, air pressure at the photovoltaic equipment installation site and carrying corresponding historical time tags, and historical photovoltaic power generation under the historical time tags;
[0014] Performing feature selection and feature extraction on the historical enterprise production data, the photovoltaic equipment installation information, the environmental data carrying the corresponding historical time tags, and the historical photovoltaic power generation to obtain input feature information for training the model;
[0015] All the input feature information is counted to obtain a photovoltaic data training set.
[0016] Optionally, predicting the photovoltaic power generation of the target photovoltaic characteristics by using the target credit risk prediction model to obtain the corresponding target photovoltaic power generation includes:
[0017] Predicting photovoltaic power generation of the target photovoltaic characteristics through the target credit risk prediction model and according to the association relationship to obtain a corresponding target photovoltaic power generation;
[0018] Accordingly, the target credit risk prediction model is used to predict the corresponding target income according to the target photovoltaic power generation, so as to obtain and output the risk prediction result of whether the loan repayment of the photovoltaic customer to be evaluated is completed within the loan time represented by the time tag according to the target income, including:
[0019] The target credit risk prediction model is used to predict the corresponding target income according to the target photovoltaic power generation, so as to obtain and output the loan risk level represented by the time tag of the photovoltaic customer to be evaluated according to the mapping relationship between the target income and the risk level.
[0020] Optionally, the photovoltaic data training set is used to perform model training on the initial credit risk prediction model constructed based on the XGboost algorithm, including:
[0021] Setting initial model parameters of the initial credit risk prediction model, and constructing a plurality of different initial model parameter combinations based on the initial model parameters;
[0022] Dividing the photovoltaic data training set into a plurality of photovoltaic data training subsets by using a cross-validation method, so as to iteratively train each of the initial credit risk prediction models with an initial model parameter combination by using the photovoltaic data training subsets, and obtain corresponding model prediction results;
[0023] Each of the initial model parameter combinations under each of the model prediction results is traversed through grid search to obtain a model parameter combination that meets the model performance conditions as the trained model parameters of the trained credit risk prediction model.
[0024] Optionally, after the photovoltaic data training set is divided into a plurality of photovoltaic data training subsets by using a cross-validation method so as to iteratively train each of the initial credit risk prediction models with an initial model parameter combination by using the photovoltaic data training subsets and obtaining corresponding model prediction results, the method further includes:
[0025] The photovoltaic data validation set is used to verify the performance indicators of each of the initial credit risk prediction models. When it is detected in the verification results that the performance indicators have stopped improving or have a downward trend, the iterative training is stopped.
[0026] Optionally, when it is detected in the verification result that the performance indicator stops improving or the performance indicator shows a downward trend, after stopping the iterative training, the method further includes:
[0027] The importance scores of the historical enterprise production data, the photovoltaic equipment installation information, and the environmental data carrying historical time tags are calculated by using the XGboost algorithm, and the influence of the historical enterprise production data, the photovoltaic equipment installation information, and the environmental data carrying historical time tags on the model prediction are evaluated according to the importance scores, so as to obtain the weight coefficients corresponding to the historical enterprise production data, the photovoltaic equipment installation information, and the environmental data carrying historical time tags;
[0028] The trained credit risk prediction model including the weight coefficients, the trained model parameters and the embedded risk level mapping relationship is used as the target credit risk prediction model.
[0029] In a second aspect, the present application discloses a photovoltaic customer loan risk prediction device, comprising:
[0030] A feature extraction module, used to input the enterprise production data of the photovoltaic customer to be evaluated, the target photovoltaic equipment installation information and the target environmental data carrying the time tag into the target credit risk prediction model, so as to extract the features of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data through the target credit risk prediction model, so as to obtain the target photovoltaic features related to the photovoltaic power generation prediction in each of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data;
[0031] A power generation prediction module, used to predict the photovoltaic power generation of the target photovoltaic characteristics through the target credit risk prediction model to obtain the corresponding target photovoltaic power generation;
[0032] The risk prediction module is used to predict the corresponding target income according to the target photovoltaic power generation through the target credit risk prediction model, so as to obtain and output the risk prediction result of whether the loan repayment is completed within the loan time represented by the time tag of the photovoltaic customer to be evaluated according to the target income.
[0033] In a third aspect, the present application discloses an electronic device, comprising:
[0034] Memory, used to store computer programs;
[0035] The processor is used to execute the computer program to implement the steps of the photovoltaic customer loan risk prediction method disclosed above.
[0036] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned disclosed method for predicting the risk of photovoltaic customer loans are implemented.
[0037] It can be seen that the present application discloses a method for predicting the loan risk of photovoltaic customers, including: inputting the enterprise production data of the photovoltaic customer to be evaluated, the target photovoltaic equipment installation information and the target environmental data carrying a time tag into the target credit risk prediction model, so as to extract features of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data through the target credit risk prediction model, so as to obtain the target photovoltaic features related to the photovoltaic power generation prediction in each of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data; predicting the photovoltaic power generation of the target photovoltaic features through the target credit risk prediction model, so as to obtain the corresponding target photovoltaic power generation; predicting the corresponding target income through the target credit risk prediction model and according to the target photovoltaic power generation, so as to obtain and output the risk prediction result of whether the loan repayment of the photovoltaic customer to be evaluated is completed within the loan time represented by the time tag according to the target income. It can be seen that by comprehensively considering multiple factors such as enterprise production data, photovoltaic equipment installation information and environmental data, it is possible to more comprehensively and accurately evaluate photovoltaic power generation and income, thereby improving the accuracy of loan risk prediction. By predicting the repayment ability within the loan period represented by the predictive time label, potential risks can be identified in advance before the loan is issued, enabling financial institutions to take timely measures, such as adjusting loan amounts, increasing guarantee requirements, etc., to further accurately judge the repayment risk of the enterprise in advance. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0039] Figure 1 A flow chart of a photovoltaic customer loan risk prediction method disclosed in this application;
[0040] Figure 2 This is a schematic diagram of the structure of a photovoltaic industry credit management system disclosed in this application;
[0041] Figure 3 This is a schematic diagram of the structure of a photovoltaic customer loan risk prediction device disclosed in this application;
[0042] Figure 4 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0044] As an important part of the new energy industry, the photovoltaic industry has developed rapidly in recent years. However, the difficulty and high cost of financing for photovoltaic enterprises have always restricted the further expansion of the industry. The traditional credit approval method has problems such as low approval efficiency and insufficient risk control. Therefore, the development of an efficient and accurate photovoltaic industry credit management system is of great significance to solving the above problems. The banking industry has a lot of loan cooperation for photovoltaic projects, covering the whole country, but the post-loan monitoring of photovoltaic projects is still based on whether the borrower repays normally, the monitoring cycle is long, the risk discovery time is delayed, and there are difficulties such as the wide distribution of customers and difficulty in on-site inspections.
[0045] To this end, the present invention provides a photovoltaic customer loan risk prediction solution, which can evaluate the repayment ability of photovoltaic project loan customers before the repayment stage, and accurately shorten the risk monitoring cycle from the repayment stage to a specific day.
[0046] Reference Figure 1 As shown, the embodiment of the present invention discloses a method for predicting the risk of photovoltaic customer loans, comprising:
[0047] Step S11: Input the enterprise production data of the photovoltaic customer to be evaluated, the target photovoltaic equipment installation information and the target environmental data with time tags into the target credit risk prediction model, so as to extract features of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data through the target credit risk prediction model, so as to obtain the target photovoltaic features related to the prediction of photovoltaic power generation in each of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data.
[0048] In this embodiment, before evaluating the post-loan repayment risk of photovoltaic customers, a target credit risk prediction model for risk evaluation is pre-built and trained, wherein, before training the model, training data for training the model is first obtained. Specifically, before the initial credit risk prediction model constructed based on the XGboost (eXtreme Gradient Boosting, gradient boosting tree algorithm) algorithm is trained using the photovoltaic data training set, it also includes:
[0049] Collect and clean the photovoltaic enterprise's historical enterprise production data including production and operation data, financial data, credit data, photovoltaic equipment installation information, environmental data including temperature, humidity, precipitation, solar long-wave and short-wave radiation, air pressure at the photovoltaic equipment installation site and carrying corresponding historical time tags, and historical photovoltaic power generation under the historical time tags; perform feature selection and feature extraction on the historical enterprise production data, the photovoltaic equipment installation information, the environmental data carrying corresponding historical time tags, and the historical photovoltaic power generation to obtain input feature information for training the model; count all the input feature information to obtain a photovoltaic data training set. It can be understood that, if Figure 2 As shown in the figure, the data acquisition module collects relevant data of photovoltaic enterprises, including but not limited to production and operation data, financial data, credit data and other historical enterprise production data, photovoltaic equipment installation information, environmental data and corresponding historical photovoltaic power generation. These historical data are integrated from the data sources of the enterprise's internal system, external public database and third-party data providers to form a comprehensive and accurate original training data set. It should be noted that in the process of obtaining the original training data set, in addition to the environmental data needing to carry the corresponding historical time label, the historical enterprise production data must also carry the corresponding historical time label, but because the relevant historical time information is already included in the historical enterprise production data, there is no need to additionally label the historical enterprise production data. In addition, the data sources of the system are rich and diverse, including photovoltaic equipment installation information and historical power generation data provided by partners, as well as external weather data, such as temperature, humidity, precipitation, solar long-wave and short-wave radiation, air pressure, etc. The integration of these data can comprehensively reflect the various factors affecting the power generation of photovoltaic panels, providing a solid foundation for the construction of the model. For example, temperatures that are too high or too low may affect the power generation efficiency of photovoltaic panels; more precipitation will reduce solar radiation, thereby reducing power generation; and different air pressure conditions may also have an indirect impact on sunlight.
[0050] Further, the data cleaning and preprocessing function of the data acquisition module is used to clean and preprocess the original training data set. It is understandable that the integrity and accuracy of the original training data are checked. If there is duplicate data, the target original training data is cleaned and retained, and missing values and outliers are processed. Mean filling, median filling and other methods can be used to process missing values. Outliers can be eliminated or corrected by statistical methods or based on business understanding to ensure the accuracy and consistency of the data. After cleaning and data preprocessing, the feature extraction module is used to select and extract features from the cleaned training data set, where feature selection is to extract unique features related to photovoltaic companies from the cleaned training data set. In addition to conventional financial indicators and operating conditions, unique features also include: power station construction scale, technological innovation capabilities, market share, etc. These features have important reference value for predicting the credit risk of enterprises. Some non-numerical features (such as precipitation conditions) are numerically encoded to obtain a photovoltaic data training set. It should be noted that after the feature selection and extraction is completed, if the dimensionality difference between the features is large, the feature dimension can be reduced through dimensionality reduction operations to improve the generalization ability of the model.
[0051] In this embodiment, before the enterprise production data of the photovoltaic customer to be evaluated, the target photovoltaic equipment installation information and the target environmental data with time tags are input into the target credit risk prediction model, it also includes: using the photovoltaic data training set to train the initial credit risk prediction model constructed based on the XGboost algorithm, so that the initial credit risk prediction model learns the correlation between the historical enterprise production data, photovoltaic equipment installation information, environmental data with historical time tags and historical photovoltaic power generation under historical time in the photovoltaic data training set, so as to obtain the trained credit risk prediction model; wherein the historical time tag specifically includes a historical segment tag and a historical moment tag; constructing a risk level mapping relationship between each historical income corresponding to each historical photovoltaic power generation and the loan risk level; embedding the risk level mapping relationship into the trained credit risk prediction model to obtain the target credit risk prediction model. It should be noted that in XGBoost, the principle of the model is to fit the data by continuously constructing new trees, thereby reducing the loss function. It performs a second-order Taylor expansion on the loss function, optimizes the loss function using the second-order derivative information of the loss function, and greedily chooses whether to split the node according to whether the loss function is reduced. At the same time, in order to prevent overfitting, XGBoost adds regularization terms to the definition of the loss function, and also uses learning rate, column sampling, approximate optimal split points and other means. It can also limit the complexity of the model by setting some hyperparameters such as tree depth and minimum number of samples in leaf nodes. XGBoost has also made optimizations in dealing with missing values. When looking for split points in the training phase, the calculated split gain does not include samples with missing values. In terms of logical implementation, samples with missing feature values will be assigned to the left leaf node and the right leaf node respectively. After calculating the gain, the direction with a large gain is selected to classify samples with missing values. In the prediction stage, if there are no missing values in the training set and there are missing values in the test set, the default direction of the branch should be specified for the missing value, and the missing value will be automatically divided into this branch during prediction.
[0052] Specifically, the photovoltaic data training set is used to train the initial credit risk prediction model constructed based on the XGboost algorithm, including: setting the initial model parameters of the initial credit risk prediction model, and constructing multiple different initial model parameter combinations based on the initial model parameters; using the cross-validation method to divide the photovoltaic data training set into multiple photovoltaic data training subsets, so as to use the photovoltaic data training subsets to iteratively train each of the initial credit risk prediction models with the initial model parameter combination set, and obtain the corresponding model prediction results; through grid search, traverse each of the initial model parameter combinations under each of the model prediction results to obtain a model parameter combination that meets the model performance conditions as the trained model parameters of the trained credit risk prediction model. It can be understood that the XGBoost model is first created using the corresponding library (such as the xgboost library in Python) as the initial credit risk prediction model. Next, some initial model parameters of the initial credit risk prediction model are set, such as the depth, learning rate, regularization parameter, etc. of the gradient boosting decision tree, and different initial model parameter combinations are generated based on the set initial model parameters. The photovoltaic data training set is divided into multiple photovoltaic data training subsets by cross-validation method, so that the photovoltaic data training subsets can be used to iteratively train each initial credit risk prediction model with an initial model parameter combination, and obtain the corresponding model prediction results. In the process of iterative training, each time label is added to one of the conditions of model training, so that a more accurate prediction result of photovoltaic power generation can be obtained from the perspective of time. In this way, a series of possible initial model parameter combinations are traversed through grid search, such as the number of different trees, learning rate, regularization parameter, etc. After traversing the model parameter combination with the optimal model performance, the internal model parameters are used as the trained model parameters of the trained credit risk prediction model. Among them, the obtained model prediction result is used as the predicted photovoltaic power generation, and the historical photovoltaic power generation is used as the actual power generation. The (actual power generation-predicted power generation) / predicted power generation is used as the deviation ratio for calculation, which can intuitively reflect the degree of difference between the predicted value and the actual value. And further determine whether the current prediction result is accurate based on the deviation ratio. The higher the deviation ratio, the more inaccurate the current prediction result is, so as to select the model parameter combination that meets the model performance conditions according to the deviation ratio.
[0053] In this embodiment, the photovoltaic data training set is divided into a plurality of photovoltaic data training subsets by using the cross-validation method, so that the photovoltaic data training subsets are used to iteratively train each of the initial credit risk prediction models with the initial model parameter combination, and after obtaining the corresponding model prediction results, it also includes: using the photovoltaic data verification set to verify the performance indicators of each of the initial credit risk prediction models, and when it is detected that the performance indicators stop improving or the performance indicators decrease in the verification results, the iterative training is stopped. It should be noted that in the process of iterative training of each initial credit risk prediction model with different initial model parameter combinations, it is also necessary to use the photovoltaic data verification set to evaluate the model performance of each initial credit risk prediction model, so as to select the best performance parameter combination according to the evaluation results. At the same time, during the training process, the performance indicators on the photovoltaic data verification set are continuously monitored, and when the performance of the model on the photovoltaic data verification set no longer improves or begins to decrease, the training is stopped in advance to avoid overfitting. Among them, the photovoltaic data verification set is divided into the photovoltaic data training set and the photovoltaic data verification set according to a certain ratio after the feature extraction module completes the feature extraction.
[0054] In this embodiment, when it is detected that there is a performance indicator stop improving or a performance indicator decline trend in the verification result, after stopping the iterative training, it also includes: using the XGboost algorithm to calculate the importance scores of each of the historical enterprise production data, the photovoltaic equipment installation information, and the environmental data carrying the historical time label, and evaluating the influence of the historical enterprise production data, the photovoltaic equipment installation information, and the environmental data carrying the historical time label on the model prediction according to each of the importance scores, so as to obtain the weight coefficients corresponding to each of the historical enterprise production data, the photovoltaic equipment installation information, and the environmental data carrying the historical time label; the trained credit risk prediction model including each of the weight coefficients, the trained model parameters, and the embedded risk level mapping relationship is used as the target credit risk prediction model. It can be understood that after stopping the iterative training, the importance scores of each feature are calculated respectively using the method provided by XGBoost, and then the influence of each feature on the model prediction is evaluated according to the importance score. After the evaluation is completed, the corresponding weight coefficients are assigned to each feature according to the influence, and the updated model is used as the target credit risk prediction model.
[0055] Therefore, the enterprise production data of the current photovoltaic customers to be evaluated, the target photovoltaic equipment installation information and the target environmental data with time tags are input into the target credit risk prediction model. The input information is processed by feature extraction through the trained target credit risk prediction model to obtain the target photovoltaic features related to the photovoltaic power generation prediction. It should be noted that the extracted target photovoltaic features carry relevant time information, so the photovoltaic power generation in the corresponding time period or at the corresponding moment can be accurately predicted based on the time information carried.
[0056] In this way, a photovoltaic industry credit risk prediction model is constructed by training the extracted features through the model training module and using the Xgboost algorithm. By training the model, the credit risk level of photovoltaic enterprises can be predicted, providing a decision-making basis for credit approval. During the model training process, cross-validation and grid search techniques are used to optimize the model parameters to improve the prediction accuracy and stability of the model. In addition, the early stopping method is used to avoid overfitting, and feature importance analysis is used to evaluate the impact of each feature on the model prediction.
[0057] It should be noted that if Figure 2As shown in the figure, after the model training module, it also includes a credit approval module, which approves the credit application of photovoltaic enterprises according to the model prediction results and credit policy. The approval process is automated, which improves the approval efficiency. At the same time, by introducing the Xgboost model, the enterprise risk can be evaluated more scientifically and the risk control goal can be achieved. In the approval process, an intelligent decision support system is also introduced to provide real-time risk analysis and suggestions to the approval personnel, thereby improving the accuracy and reliability of the approval. In addition, the module also supports integration with the internal system of financial institutions to achieve real-time exchange and update of data. In addition, the system also includes a feedback optimization module, which continuously optimizes and adjusts the model according to the actual credit situation and historical data. By iterative training and updating model parameters, the prediction accuracy and stability of the model can be improved, thereby continuously improving the performance of the credit management system. In addition, the module also supports user feedback and system log analysis functions to monitor the operation status of the system and identify potential problems. By introducing an automated monitoring and alarm system, abnormal situations can be discovered and handled in a timely manner to ensure the stability and reliability of the system. Risk assessment module: This module conducts in-depth analysis based on the risk level output by the Xgboost model to provide financial institutions with a more detailed and in-depth risk assessment report. The report content includes but is not limited to the company's financial status, market prospects, technological innovation capabilities, and industry development trends. Through the analysis of this comprehensive information, financial institutions can have a more comprehensive understanding of the actual situation of the applicant company, so as to make more scientific and accurate credit decisions. User interface module: This module provides a friendly user interface, allowing users to operate and manage conveniently. The user interface design is concise and clear, and the functions are clearly divided, allowing users to quickly find the required functions and operate them. At the same time, the user interface also supports personalized customization to meet the needs and usage habits of different users. Security protection module: This module uses advanced security technology to ensure the safe and stable operation of the system. Including functions such as data encryption, access control, and security auditing. Through strict security measures and permission management mechanisms, the security and confidentiality of system data are ensured. At the same time, the security protection module also has real-time monitoring and early warning functions for abnormal behaviors, and timely discovers and handles security issues. System integration module: This module supports integration and data exchange with other systems. Through standardized interface design and data exchange protocols, seamless docking with other systems can be achieved. This not only improves work efficiency and data sharing, but also helps to improve the overall performance and synergy of the entire credit management system.
[0058] Step S12: predicting the photovoltaic power generation of the target photovoltaic characteristics by using the target credit risk prediction model to obtain the corresponding target photovoltaic power generation.
[0059] In this embodiment, the photovoltaic power generation of the target photovoltaic feature is predicted by the target credit risk prediction model and according to the association relationship to obtain the corresponding target photovoltaic power generation. It can be understood that the target photovoltaic power generation can be obtained in the time period or time represented by the time label in the input information by performing the corresponding photovoltaic power generation prediction on the extracted target photovoltaic feature according to the trained target credit risk prediction model.
[0060] Step S13: The target credit risk prediction model is used to predict the corresponding target income according to the target photovoltaic power generation, so as to obtain and output the risk prediction result of whether the loan repayment of the photovoltaic customer to be evaluated is completed within the loan time represented by the time tag according to the target income.
[0061] In this embodiment, the target credit risk prediction model is used to predict the corresponding target income according to the target photovoltaic power generation, so as to obtain and output the loan risk level represented by the time tag of the photovoltaic customer to be evaluated according to the mapping relationship between the target income and the risk level. It can be understood that the corresponding target income is further obtained according to the predicted target photovoltaic power generation and the unit price of electricity charges. In this way, the risk prediction result of whether the loan repayment is completed within the loan time represented by the time tag of the photovoltaic customer to be evaluated can be obtained and output according to the target income. It is possible to accurately evaluate the power generation capacity and income of a photovoltaic enterprise in a specific time period and determine whether it has sufficient funds to repay the loan. By predicting the repayment ability within the loan time, potential risks can be identified in advance before the loan is issued, so that financial institutions can take timely measures, such as adjusting the loan amount, increasing guarantee requirements, etc.
[0062] It can be seen that the present application discloses a method for predicting the loan risk of photovoltaic customers, including: inputting the enterprise production data of the photovoltaic customer to be evaluated, the target photovoltaic equipment installation information and the target environmental data carrying a time tag into the target credit risk prediction model, so as to extract features of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data through the target credit risk prediction model, so as to obtain the target photovoltaic features related to the photovoltaic power generation prediction in each of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data; predicting the photovoltaic power generation of the target photovoltaic features through the target credit risk prediction model, so as to obtain the corresponding target photovoltaic power generation; predicting the corresponding target income through the target credit risk prediction model and according to the target photovoltaic power generation, so as to obtain and output the risk prediction result of whether the loan repayment of the photovoltaic customer to be evaluated is completed within the loan time represented by the time tag according to the target income. It can be seen that by comprehensively considering multiple factors such as enterprise production data, photovoltaic equipment installation information and environmental data, it is possible to more comprehensively and accurately evaluate photovoltaic power generation and income, thereby improving the accuracy of loan risk prediction. By predicting the repayment ability within the loan period represented by the predictive time label, potential risks can be identified in advance before the loan is issued, enabling financial institutions to take timely measures, such as adjusting loan amounts, increasing guarantee requirements, etc., to further accurately judge the repayment risk of the enterprise in advance.
[0063] Reference Figure 3 As shown, the present invention also discloses a photovoltaic customer loan risk prediction device, including:
[0064] The feature extraction module 11 is used to input the enterprise production data of the photovoltaic customer to be evaluated, the target photovoltaic equipment installation information and the target environmental data carrying the time tag into the target credit risk prediction model, so as to extract the features of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data through the target credit risk prediction model, so as to obtain the target photovoltaic features related to the photovoltaic power generation prediction in each of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data;
[0065] A power generation prediction module 12 is used to predict the photovoltaic power generation of the target photovoltaic characteristics through the target credit risk prediction model to obtain the corresponding target photovoltaic power generation;
[0066] The risk prediction module 13 is used to predict the corresponding target income according to the target photovoltaic power generation through the target credit risk prediction model, so as to obtain and output the risk prediction result of whether the loan repayment is completed within the loan time represented by the time tag of the photovoltaic customer to be evaluated according to the target income.
[0067] It can be seen that the present application discloses inputting the enterprise production data of the photovoltaic customer to be evaluated, the target photovoltaic equipment installation information and the target environmental data with a time tag into the target credit risk prediction model, so as to perform feature extraction on the enterprise production data, the target photovoltaic equipment installation information and the target environmental data through the target credit risk prediction model, so as to obtain the target photovoltaic features related to the photovoltaic power generation prediction in each of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data; predicting the photovoltaic power generation of the target photovoltaic features through the target credit risk prediction model, so as to obtain the corresponding target photovoltaic power generation; predicting the corresponding target income through the target credit risk prediction model and based on the target photovoltaic power generation, so as to obtain and output the risk prediction result of whether the loan repayment of the photovoltaic customer to be evaluated is completed within the loan time represented by the time tag according to the target income. It can be seen that by comprehensively considering multiple factors such as enterprise production data, photovoltaic equipment installation information and environmental data, it is possible to more comprehensively and accurately evaluate photovoltaic power generation and income, thereby improving the accuracy of loan risk prediction. By predicting the repayment ability within the loan period represented by the predictive time label, potential risks can be identified in advance before the loan is issued, enabling financial institutions to take timely measures, such as adjusting loan amounts, increasing guarantee requirements, etc., to further accurately judge the repayment risk of the enterprise in advance.
[0068] Furthermore, the present application also discloses an electronic device. Figure 4 is a structural diagram of an electronic device 20 according to an exemplary embodiment. Figure 4 The content hereof cannot be considered as any limitation on the scope of use of this application.
[0069] Figure 4 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the photovoltaic customer loan risk prediction method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0070] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0071] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0072] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0073] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the photovoltaic customer loan risk prediction method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can also further include a computer program that can be used to complete other specific tasks. In addition to data received by the electronic device and transmitted from an external device, the data 223 can also include data collected by its own input and output interface 25, etc.
[0074] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed photovoltaic customer loan risk prediction method is implemented. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.
[0075] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0076] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. The steps of the method or algorithm described in conjunction with the embodiments disclosed herein can be implemented directly with hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory RAM (Random Access Memory), memory, read-only memory ROM (Read Only Memory), electrically programmable EPROM (Electrically Programmable Read Only Memory), electrically erasable programmable EEPROM (ElectricErasable Programmable Read Only Memory), register, hard disk, removable disk, CD-ROM (CompactDisc-Read Only Memory), or any other form of storage medium known in the technical field.
[0077] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0078] The scheme provided by the present invention is introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A photovoltaic customer loan risk prediction method, characterized in that: include: Inputting the enterprise production data, target photovoltaic equipment installation information and target environmental data with time tags of the photovoltaic customers to be evaluated into the target credit risk prediction model, so as to extract features of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data through the target credit risk prediction model, so as to obtain target photovoltaic features related to photovoltaic power generation prediction in each of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data; Predicting photovoltaic power generation of the target photovoltaic characteristics by using the target credit risk prediction model to obtain a corresponding target photovoltaic power generation; The target credit risk prediction model is used to predict the corresponding target income according to the target photovoltaic power generation, so as to obtain and output the risk prediction result of whether the loan repayment is completed within the loan time represented by the time tag of the photovoltaic customer to be evaluated according to the target income.
2. The photovoltaic customer loan risk prediction method according to claim 1 is characterized in that: Before inputting the enterprise production data of the photovoltaic customer to be evaluated, the target photovoltaic equipment installation information and the target environmental data with time tags into the target credit risk prediction model, the following steps are also included: The initial credit risk prediction model constructed based on the XGboost algorithm is trained using the photovoltaic data training set, so that the initial credit risk prediction model learns the correlation between the historical enterprise production data, photovoltaic equipment installation information, environmental data with historical time labels, and historical photovoltaic power generation under historical time in the photovoltaic data training set, so as to obtain a trained credit risk prediction model; wherein the historical time label specifically includes a historical segment label and a historical moment label; Constructing a risk level mapping relationship between each historical income corresponding to each of the historical photovoltaic power generation and the loan risk level; The risk level mapping relationship is embedded into the trained credit risk prediction model to obtain a target credit risk prediction model.
3. The photovoltaic customer loan risk prediction method according to claim 2 is characterized in that: Before the photovoltaic data training set is used to train the initial credit risk prediction model built based on the XGboost algorithm, the method further includes: Collect and clean the photovoltaic enterprise's historical enterprise production data including production and operation data, financial data, credit data, photovoltaic equipment installation information, environmental data including temperature, humidity, precipitation, solar long-wave and short-wave radiation, air pressure at the photovoltaic equipment installation site and carrying corresponding historical time tags, and historical photovoltaic power generation under the historical time tags; Performing feature selection and feature extraction on the historical enterprise production data, the photovoltaic equipment installation information, the environmental data carrying the corresponding historical time tags, and the historical photovoltaic power generation to obtain input feature information for training the model; All the input feature information is counted to obtain a photovoltaic data training set.
4. The photovoltaic customer loan risk prediction method according to claim 2 is characterized in that: The photovoltaic power generation prediction of the target photovoltaic characteristics is performed by the target credit risk prediction model to obtain the corresponding target photovoltaic power generation, including: Predicting photovoltaic power generation of the target photovoltaic characteristics through the target credit risk prediction model and according to the association relationship to obtain a corresponding target photovoltaic power generation; Accordingly, the target credit risk prediction model is used to predict the corresponding target income according to the target photovoltaic power generation, so as to obtain and output the risk prediction result of whether the loan repayment of the photovoltaic customer to be evaluated is completed within the loan time represented by the time tag according to the target income, including: The target credit risk prediction model is used to predict the corresponding target income according to the target photovoltaic power generation, so as to obtain and output the loan risk level represented by the time tag of the photovoltaic customer to be evaluated according to the mapping relationship between the target income and the risk level.
5. The photovoltaic customer loan risk prediction method according to claim 2 is characterized in that: The photovoltaic data training set is used to train the initial credit risk prediction model built based on the XGboost algorithm, including: Setting initial model parameters of the initial credit risk prediction model, and constructing a plurality of different initial model parameter combinations based on the initial model parameters; Dividing the photovoltaic data training set into a plurality of photovoltaic data training subsets by using a cross-validation method, so as to iteratively train each of the initial credit risk prediction models with an initial model parameter combination by using the photovoltaic data training subsets, and obtain corresponding model prediction results; Each of the initial model parameter combinations under each of the model prediction results is traversed through grid search to obtain a model parameter combination that meets the model performance conditions as the trained model parameters of the trained credit risk prediction model.
6. The photovoltaic customer loan risk prediction method according to claim 5 is characterized in that: The method further comprises: dividing the photovoltaic data training set into a plurality of photovoltaic data training subsets by using the cross-validation method, so as to iteratively train each of the initial credit risk prediction models with the initial model parameter combination by using the photovoltaic data training subsets, and obtaining the corresponding model prediction results. The photovoltaic data validation set is used to verify the performance indicators of each of the initial credit risk prediction models. When it is detected in the verification results that the performance indicators have stopped improving or have a downward trend, the iterative training is stopped.
7. The photovoltaic customer loan risk prediction method according to claim 6 is characterized in that: When it is detected that the performance indicator stops improving or shows a downward trend in the verification result, after the iterative training is stopped, the method further includes: The importance scores of the historical enterprise production data, the photovoltaic equipment installation information, and the environmental data carrying historical time tags are calculated by using the XGboost algorithm, and the influence of the historical enterprise production data, the photovoltaic equipment installation information, and the environmental data carrying historical time tags on the model prediction are evaluated according to the importance scores, so as to obtain the weight coefficients corresponding to the historical enterprise production data, the photovoltaic equipment installation information, and the environmental data carrying historical time tags; The trained credit risk prediction model including the weight coefficients, the trained model parameters and the embedded risk level mapping relationship is used as the target credit risk prediction model.
8. A photovoltaic customer loan risk prediction device, characterized in that: include: A feature extraction module, used to input the enterprise production data of the photovoltaic customer to be evaluated, the target photovoltaic equipment installation information and the target environmental data carrying the time tag into the target credit risk prediction model, so as to extract the features of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data through the target credit risk prediction model, so as to obtain the target photovoltaic features related to the photovoltaic power generation prediction in each of the enterprise production data, the target photovoltaic equipment installation information and the target environmental data; A power generation prediction module, used to predict the photovoltaic power generation of the target photovoltaic characteristics through the target credit risk prediction model to obtain the corresponding target photovoltaic power generation; The risk prediction module is used to predict the corresponding target income according to the target photovoltaic power generation through the target credit risk prediction model, so as to obtain and output the risk prediction result of whether the loan repayment is completed within the loan time represented by the time tag of the photovoltaic customer to be evaluated according to the target income.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the photovoltaic customer loan risk prediction method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the photovoltaic customer loan risk prediction method as described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Automated retraining of exploitability risk model based on penetration test results
US12786223B1
