Bank bad loan prediction method based on image processing technology
By using a method based on image processing technology, combining face and ID card data, extracting features and performing weighted fusion, the problem of traditional loan prediction methods ignoring unstructured data is solved, and the accuracy of loan prediction and the generalization ability of the model are improved. .
Patent Information
- Application Number
- CN202410711477.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-30
AI Technical Summary
Traditional bank loan prediction methods ignore unstructured data and cannot make full use of customer identity and credit information, resulting in insufficient comprehensive and accurate prediction results. The model has weak generalization capabilities, is difficult to adapt to data changes, and is easily affected by noise.
Using a method based on image processing technology, feature vectors are extracted from face image data through the Facenet model, combined with ID card text features, for weighted fusion, integrating historical transactions and credit scores for prediction, and adjusting the model structure and training strategy to improve recognition Accuracy and generalization ability.
It improves the accuracy and reliability of loan prediction, enhances the model's recognition ability under different lighting, angles and occlusion situations, enhances the utilization of customer identity information, and improves the adaptability and stability of the model.
Smart Images

Figure CN118569977A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a bank non-performing loan prediction method based on image processing technology. Background Art
[0002] In banking, loan prediction is a crucial task that aims to assess the credit risk of customers and thus reduce the losses of non-performing loans. However, there are some limitations in traditional loan prediction methods. Traditional methods mainly rely on structured data, such as credit records and financial data, but ignore the potential information of unstructured data, such as customer image data. In addition, traditional methods cannot fully utilize information such as customer identity, assets, and credit status, resulting in incomplete and inaccurate prediction results. At the same time, traditional models are usually modeled based on static data sets, which makes it difficult to adapt to the dynamic changes of customer data and changes in the business environment, resulting in weak generalization of the model. Finally, when faced with complex loan scenarios, the prediction accuracy of traditional methods is unstable and easily affected by noise and interference, resulting in inaccurate and unreliable prediction results. These defects and deficiencies show the limitations of current loan prediction methods, and new methods are needed to overcome these challenges and improve the accuracy and reliability of predictions. Summary of the invention
[0003] The purpose of the present invention is to provide a bank non-performing loan prediction method based on image processing technology in view of the shortcomings of the prior art.
[0004] To achieve the above object, the present invention provides a bank non-performing loan prediction method based on image processing technology, comprising:
[0005] Collect customer's facial image data and ID card image data;
[0006] Extracting a facial feature vector from the facial image data based on a Facenet model improved by a trained network structure;
[0007] Extracting text feature vectors from the ID card image data;
[0008] Performing weighted fusion on the facial feature vector and the text feature vector to obtain a comprehensive identity feature vector of the customer;
[0009] The comprehensive identity feature vector of the customer is integrated with his historical transactions and credit score, and predictions are made based on the integrated data.
[0010] Furthermore, the improvement methods of the Facenet model with improved network structure include:
[0011] Adjust the Inception block of the Facenet model based on the expected model recognition accuracy and computing resource balance;
[0012] Adjust the number of layers in the Inception block according to the expected model complexity and performance requirements;
[0013] Adjust the number of channels of each convolutional layer in the Inception block according to the expected number of model parameters and computation.
[0014] Furthermore, the Facenet model with improved network structure is trained to be qualified by the following methods:
[0015] Obtain legally authorized facial image data from a bank customer database, and perform a cleaning operation on the facial image data;
[0016] Perform enhancement operations on the cleaned face image data;
[0017] Divide the enhanced face image data into a training set, a validation set, and a test set according to a set ratio;
[0018] The Facenet model with improved network structure is trained, verified and tested in turn through the training set, verification set and test set. During the training, the training is performed based on the following learning strategy and optimizer:
[0019] Learning strategy: lr = 0.5*base_lr*(1+cos(epoch / T));
[0020] Optimizer: v t =beta1*v t-1 +(1-beta1)*grad
[0021] m t =beta2*m t-1 +(1-beta2)*grad^2
[0022] theta t =theta t-1 -lr*v t / (sqrt(m t )+epsilon).
[0023] Where base_lr is the initial learning rate, lr is the learning rate of the current training round, epoch is the number of rounds of current training, and T is the total number of training rounds; v t is the first-order moment estimate at time t, v t-1 is the first-order moment estimate at time t-1, m t is the second-order moment estimate at time t, m t-1is the second-order moment estimate at time t-1, beta1 and beta2 are exponential decay rates, grad is the gradient, epsilon is a constant, theta t is the model parameter at time t, theta t-1 is the model parameter at time t-1, qrt(m t ) is for m t Square root.
[0024] Further, the cleaning operation includes:
[0025] Checking the resolution and light conditions of the legally authorized facial image data, and if the resolution and / or light conditions are lower than a set resolution / light threshold, discarding the facial image data;
[0026] Use image processing technology to detect the blurriness of the legally authorized image, and if the blurriness is higher than a set blurriness threshold, remove the facial image data;
[0027] The occlusion in the image is detected by the image analysis algorithm. If the occlusion area is higher than the set occlusion area threshold, the face image data is discarded.
[0028] Furthermore, the enhancement operation includes:
[0029] Randomly perform rotation, scaling, shearing and brightness change operations on the face image data.
[0030] Furthermore, the rotation operation is a random rotation within a range of ±15 degrees; the scaling operation is a random scaling within a range of 0.9-1.1 times; the shearing operation is a random shearing operation on the face image data; and the brightness change operation is a random adjustment of the brightness and contrast of the image.
[0031] Furthermore, the weighted fusion method is as follows:
[0032] Comprehensive identity feature vector = α × face feature vector + (1-α) × text feature vector
[0033] Among them, α is the weighting coefficient, which is used to control the weight of the two features in the fusion.
[0034] Beneficial effects: 1. The present invention collects and cleans the facial image data in the bank customer database with legal authorization, and performs data enhancement operations such as rotation, scaling, shearing, and brightness change on the image data to increase the generalization ability of the model. Compared with traditional face recognition methods, this customized data processing and enhancement technology can effectively improve the model's recognition accuracy for faces under different lighting, angles, and occlusion conditions;
[0035] 2. The present invention selects pre-trained models such as Facenet, and customizes and optimizes the models according to the characteristics of banking business. By adjusting the network structure of the model, including increasing or decreasing the number of layers of the Inception block, adjusting the number of channels, etc., the model is more suitable for face recognition tasks in banking scenarios, thereby improving the accuracy and generalization ability of the model;
[0036] 3. The present invention performs weighted fusion of the extracted facial feature vector and text feature vector to form a comprehensive identity feature vector of the customer. This feature fusion method can make full use of the information of the facial image and ID card information, thereby improving the accuracy and reliability of the model for the customer's identity. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a flow chart of a bank non-performing loan prediction method based on image processing technology according to an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. The embodiments are implemented based on the technical solution of the present invention. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention.
[0039] like Figure 1 As shown, the embodiment of the present invention provides a bank non-performing loan prediction method based on image processing technology, including:
[0040] Collect customer's facial image data and ID card image data.
[0041] The Facenet model with improved network structure based on the qualified training extracts the face feature vector from the face image data. The face feature vector is 128-dimensional and represents the facial features of the customer. The Facenet model with improved network structure is improved in the following ways:
[0042] Adjust the Inception block of the Facenet model to fit the specific balance between recognition accuracy and computing resources according to the expected model recognition accuracy and computing resource balance. Adjust the number of layers of the Inception block according to the expected model complexity and performance requirements. Increasing the number of layers can increase the representation ability of the model and improve recognition accuracy, but it will also increase the consumption of computing resources. Adjust the number of channels of each convolutional layer in the Inception block according to the expected number of model parameters and computational effort. Increasing the number of channels can increase the representation ability of the model and improve the effect of feature extraction, but it will also increase the complexity of the model and the computational cost.
[0043] The Facenet model with the improved network structure above is trained in the following way:
[0044] Obtain legally authorized facial image data from the bank's customer database and clean the facial image data. Ensure that the data collection process complies with relevant laws, regulations and privacy protection policies, and ensure the legitimacy and security of the data. The above cleaning operations include:
[0045] Quality check: Check the resolution and lighting conditions of the legally authorized facial image data. If the resolution and / or lighting conditions are lower than the set resolution / light threshold, the facial image data will be discarded to ensure the accuracy and reliability of subsequent processing.
[0046] Blur detection: Use image processing technology to detect the blur level of the legally authorized image. If the blur level is higher than the set blur threshold, the facial image data will be discarded to avoid affecting the training and prediction effects of the model.
[0047] Occlusion detection: The occlusion in the image is detected through the image analysis algorithm. If the occlusion area is higher than the set occlusion area threshold, the face image data is removed to ensure that the face image is clearly visible.
[0048] Perform enhancement operations on the cleaned face image data to increase the generalization ability of the model. Specifically, the enhancement operations include:
[0049] Rotation operation: Randomly rotate the face image to increase the diversity and richness of the data. The rotation angle can be randomly selected within a certain range, such as ±15 degrees, to simulate shooting at different angles. The formula for the rotation operation is: rotated_image = rotate(image, angle)
[0050] Among them, rotated_image is the face image after the rotation operation, image is the original face image, angle is the rotation angle, and rotate(.) is the rotation function.
[0051] Scaling operation: The machine randomly scales the face image to simulate shooting at different distances. The scaling ratio can be randomly selected within a certain range, such as 0.9-1.1 times, to increase the diversity of the data. The formula for the scaling operation is: scaled_image = resize(image, scale_factor)
[0052] Among them, scaled_image is the image after scaling operation, image is the original face image, scale_factor is the scaling ratio, and resize(.) is the scaling function.
[0053] Cropping operation: Randomly crop the face image to simulate different cropping positions. The cropping position can be randomly selected in different areas of the face image, such as offsetting 10 pixels up, down, left, and right to increase the variability of the data. The formula for the cropping operation is: cropped_image = crop(image, x_offset, y_offset)
[0054] Among them, cropped_image is the face image before cropping, image is the original face image, x_offset and y_offset are the horizontal and vertical offsets, and crop(.) is the cropping function.
[0055] Brightness change operation: Randomly change the brightness of the face image to simulate different lighting conditions. This can be achieved by adjusting the image's brightness, contrast and other parameters to increase the richness and generalization of the data. The formula for the brightness change operation is: brightened_image = adjust_brightness(image,brightness_factor)
[0056] Among them, brightened_image is the face image after the brightness change operation, image is the original face image, brightness_factor is the brightness adjustment parameter, and adjust_brightness(.) is the brightness adjustment function.
[0057] The enhanced face image data is divided into training set, validation set and test set according to the set ratio. The ratio of training set, validation set and test set is 70:15:15.
[0058] The Facenet model with improved network structure is trained, verified and tested in turn through the training set, verification set and test set. During the training, the training is performed based on the following learning strategy and optimizer:
[0059] Learning strategy: lr = 0.5*base_lr*(1+cos(epoch / T));
[0060] Optimizer: v t =beta1*v t-1 +(1-beta1)*grad
[0061] m t =beta2*m t-1 +(1-beta2)*grad^2
[0062] theta t =theta t-1 -lr*vt / (sqrt(m t )+epsilon).
[0063] Where base_lr is the initial learning rate, lr is the learning rate of the current training round, epoch is the number of rounds of current training, and T is the total number of training rounds; v t is the first-order moment estimate at time t, v t-1 is the first-order moment estimate at time t-1, m t is the second-order moment estimate at time t, m t-1 is the second-order moment estimate at time t-1, beta1 and beta2 are exponential decay rates, grad is the gradient, epsilon is a constant, theta t is the model parameter at time t, theta t-1 represents the model parameters at time t-1, which is the parameter value before the parameter update of the current time step, that is, the model parameters before this update, qrt(m t ) is for m t The above learning rate can be set higher in the early stage to accelerate convergence, and then gradually reduced in the later stage to avoid overfitting. The optimizer is less sensitive to the initial learning rate and is suitable for complex models.
[0064] Extract text feature vectors from ID card image data. The above text feature vectors include name, ID card number, etc., which can be extracted based on Tesseract OCR or self-developed CNN-based sequence recognition model. The self-developed CNN-based sequence recognition model includes convolution layer, pooling layer, fully connected layer and Softmax classification layer, which is trained through data annotation and model training, as follows:
[0065] (1) Data labeling: Manually or semi-automatically label key areas of the ID card image, such as name, ID card number, etc. Image labeling tools or artificial intelligence-assisted tools can be used to speed up the labeling process and improve efficiency and accuracy.
[0066] (2) Training process: Use a large amount of labeled data to train the model, optimize it through the cross entropy loss function, and use the early stopping strategy to prevent overfitting. The calculation formula of the cross entropy loss function is as follows:
[0067]
[0068] Among them, loss is the loss value, N is the number of samples, y i is the true label, is the label predicted by the model, and log(.) is the logarithmic function.
[0069] The face feature vector and the text feature vector are weighted and fused to obtain the customer's comprehensive identity feature vector. The weighted fusion method is as follows:
[0070] Comprehensive identity feature vector = α × face feature vector + (1-α) × text feature vector
[0071] Among them, α is the weighting coefficient, which is used to control the weight of the two features in the fusion.
[0072] The customer's comprehensive identity feature vector is integrated with his historical transactions and credit score, and predictions are made based on the integrated data to obtain the probability of whether the customer will have a bad loan.
[0073] When deploying, you can use the Flask or Django framework combined with tools such as TensorFlow Serving and ONNX to deploy models and achieve efficient model reasoning. Use GPU acceleration, model quantization, pruning and other technologies to improve model reasoning speed and ensure that the system response time meets business needs. Ensure data transmission encryption, comply with data protection regulations such as GDPRC, and protect user privacy.
[0074] The above is only a preferred embodiment of the present invention. It should be noted that for ordinary technicians in this technical field, other parts not specifically described belong to the prior art or common knowledge. Several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention.
Claims
1. A bank non-performing loan prediction method based on image processing technology, characterized in that: include: Collect customer's facial image data and ID card image data; Extracting a facial feature vector from the facial image data based on a Facenet model improved by a trained network structure; Extracting text feature vectors from the ID card image data; Performing weighted fusion on the facial feature vector and the text feature vector to obtain a comprehensive identity feature vector of the customer; The comprehensive identity feature vector of the customer is integrated with his historical transactions and credit score, and predictions are made based on the integrated data.
2. A bank non-performing loan prediction method based on image processing technology according to claim 1, characterized in that: The improvement methods of the Facenet model with improved network structure include: Adjust the Inception block of the Facenet model based on the expected model recognition accuracy and computing resource balance; Adjust the number of layers in the Inception block according to the expected model complexity and performance requirements; Adjust the number of channels of each convolutional layer in the Inception block according to the expected number of model parameters and computation.
3. The bank non-performing loan prediction method based on image processing technology according to claim 1 is characterized in that: The Facenet model with improved network structure is trained in the following way: Obtain legally authorized facial image data from a bank customer database, and perform a cleaning operation on the facial image data; Perform enhancement operations on the cleaned face image data; Divide the enhanced face image data into a training set, a validation set, and a test set according to a set ratio; The Facenet model with improved network structure is trained, verified and tested in turn through the training set, verification set and test set. During the training, the training is performed based on the following learning strategy and optimizer: Learning strategy: lr = 0.5*base_lr*(1+cos(epoch / T)); Optimizer: v t =beta1*v t-1 +(1-beta1)*grad m t =beta2*m t-1 +(1-beta2)*grad^2 theta t =theta t-1 -lr*v t / (sqrt(m t )+epsilon)。 Where base_lr is the initial learning rate, lr is the learning rate of the current training round, epoch is the number of rounds of current training, and T is the total number of training rounds; v t is the first-order moment estimate at time t, v t-1 is the first-order moment estimate at time t-1, m t is the second-order moment estimate at time t, m t-1 is the second-order moment estimate at time t-1, beta1 and beta2 are exponential decay rates, grad is the gradient, epsilon is a constant, theta t is the model parameter at time t, theta t-1 is the model parameter at time t-1, qrt(m t ) is for m t Square root.
4. The bank non-performing loan prediction method based on image processing technology according to claim 3 is characterized in that: The cleaning operation comprises: Checking the resolution and light conditions of the legally authorized facial image data, and if the resolution and / or light conditions are lower than a set resolution / light threshold, discarding the facial image data; Use image processing technology to detect the blurriness of the legally authorized image, and if the blurriness is higher than a set blurriness threshold, remove the facial image data; The occlusion in the image is detected by the image analysis algorithm. If the occlusion area is higher than the set occlusion area threshold, the face image data is discarded.
5. The bank non-performing loan prediction method based on image processing technology according to claim 1 is characterized in that: The enhancement operations include: Randomly perform rotation, scaling, shearing and brightness change operations on the face image data.
6. A bank non-performing loan prediction method based on image processing technology according to claim 5, characterized in that: The rotation operation is a random rotation within the range of ±15 degrees; the scaling operation is a random scaling within the range of 0.9-1.1 times; the shearing operation is a random shearing operation on the face image data; and the brightness change operation is a random adjustment of the brightness and contrast of the image.
7. The bank non-performing loan prediction method based on image processing technology according to claim 1 is characterized in that: The weighted fusion method is as follows: Comprehensive identity feature vector = α × face feature vector + (1-α) × text feature vector Among them, α is the weighting coefficient, which is used to control the weight of the two features in the fusion.
