Insurance risk prediction method based on pet age and related equipment thereof
By analyzing the voiceprint and image characteristics in the historical video stream and fusing the voiceprint and image models, the accuracy of pet age assessment is solved, the accuracy and efficiency of pet insurance business is improved, and the risk of insurance fraud is reduced.
Patent Information
- Application Number
- CN202411173689.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-29
AI Technical Summary
The existing technology is difficult to accurately evaluate pet age, resulting in frequent pet insurance fraud cases and inefficient insurance business.
By analyzing the historical video stream uploaded by users, extracting voiceprint and image features, training an age prediction model based on voiceprint and image, and using an adaptive weight algorithm to fuse the two models to build a comprehensive age prediction model to improve the accuracy of pet age prediction sex.
It significantly improves the accuracy and efficiency of pet age prediction, reduces the insurance risks caused by age misjudgment, and enhances user experience and trust.
Smart Images

Figure CN119048247A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of artificial intelligence technology, and specifically relates to a method, device, computer equipment and storage medium for predicting insurance risks based on pet age. Background Art
[0002] In recent years, with the rapid increase in the number of pet owners, the profound innovation of pet-raising concepts, and the vigorous development of the pet service and commodity markets, the market value of the pet industry has broken through the major threshold of 100 billion yuan. In particular, the demand for pet medical insurance is growing, which is closely related to the increasing medical needs of pets as they age. Therefore, accurate assessment of the age of pets is crucial to controlling the risks of pet insurance. However, insurance companies currently rely mainly on basic information provided by the insured and frontal photos of the pet to judge the age, such as the pet's name, age, gender, and whether it is sterilized. Most of this information is based on the subjective statements of the insured, and there is a high integrity risk. Judging the age of a pet only by the frontal photo of the pet is not only limited in information, but also easily affected by environmental factors and lacks sufficient discrimination.
[0003] With the emergence of numerous pet insurance fraud cases, the market urgently needs to develop an algorithm that can accurately predict the age of pets in order to improve the accuracy and efficiency of insurance business. Summary of the invention
[0004] The purpose of the embodiments of the present application is to propose a method, device, computer equipment and storage medium for predicting insurance risks based on the age of pets, aiming to provide a method for predicting insurance risks based on the age of pets, an algorithm that can accurately predict the age of pets, so as to improve the accuracy and efficiency of insurance business.
[0005] In order to solve the above technical problems, the embodiment of the present application provides a method for predicting insurance risk based on pet age, which adopts the following technical solution:
[0006] A method for predicting insurance risk based on pet age, comprising:
[0007] Get the pre-collected historical video stream, which is the video data uploaded by the user when insuring the pet;
[0008] Parse the historical video stream to obtain the voice information and video information of the historical video stream;
[0009] extracting voiceprint features from the speech information, and training a first age prediction model based on the voiceprint features and a residual network, wherein the first age prediction model outputs a first age prediction result based on the voiceprint features;
[0010] extracting image features from the video information, and training a second age prediction model based on the image features and a face detection model, wherein the second age prediction model outputs a second age prediction result based on the image features;
[0011] Calculating the fusion weight of the first age prediction model and the second age prediction model based on a preset adaptive weight algorithm, and performing weighted fusion on the first age prediction model and the second age prediction model based on the fusion weight to obtain a comprehensive age prediction model;
[0012] Receive risk prediction instructions, obtain the real-time video stream of the pet to be predicted when it is insured, obtain the age prediction result of the pet to be predicted based on the real-time video stream and the comprehensive age prediction model, obtain the insurance risk prompt that matches the age prediction result, and output the insurance risk prompt.
[0013] Furthermore, voiceprint features are extracted from the speech information, and a first age prediction model is trained based on the voiceprint features and the residual network, specifically including:
[0014] The time-frequency analysis of speech information is performed through short-time Fourier transform to obtain a spectrogram;
[0015] Filter the spectrum graph to obtain the Mel spectrum;
[0016] Perform logarithm operation on the Mel spectrum, and perform discrete cosine transform on the logarithm result to obtain the Mel frequency cepstrum coefficient;
[0017] Mel frequency cepstral coefficients are used to extract voiceprint features from speech information;
[0018] Learn the voiceprint features through the residual network and output the first age prediction result;
[0019] Based on the first age prediction result, the gradient of the first prediction model network parameters is calculated by the back propagation algorithm, and the stochastic gradient descent optimization algorithm is used to update the first prediction model network parameters until the loss is minimized, thereby obtaining the first age prediction model, wherein the first prediction model is a prediction model built based on the residual network.
[0020] Furthermore, before extracting voiceprint features from the speech information and training the first age prediction model based on the voiceprint features and the residual network, it also includes:
[0021] Performing pre-processing operations on voice information;
[0022] The pre-processing operations for voice information include:
[0023] Convert the sampling rate of voice information into a preset standard sampling rate;
[0024] Performing standardization processing on the voice information after completing the frequency conversion to obtain standardized voice information;
[0025] Wavelet denoising is used to remove background noise from standardized speech information.
[0026] Furthermore, image features are extracted from the video information, and a second age prediction model is trained based on the image features and the face detection model, specifically including:
[0027] The preset convolutional neural network is used to extract the image features of the key frame images of the video information to obtain the facial features of the pet;
[0028] Perform pet face detection on the key frame image through a preset cascade classifier to determine whether there is a pet face area in the key frame image;
[0029] When there is a pet face region in the key frame image, the key point features of the pet face region are extracted by using a scale-invariant feature transformation algorithm;
[0030] Using the pet's facial features and key point features to train a preset second prediction model, and outputting a second age prediction result, wherein the second prediction model is a prediction model built based on a support vector regression algorithm;
[0031] The second prediction model is optimized and trained using the stochastic gradient descent method, and the network parameters of the second prediction model are continuously adjusted during the optimization training process until the loss is minimized to obtain the second age prediction model.
[0032] Furthermore, before extracting image features from the video information and training the second age prediction model based on the image features and the face detection model, the method further includes:
[0033] Preprocessing video information;
[0034] Preprocess the video information, including:
[0035] Extract key frames from video information to obtain key frame images of the video information;
[0036] Perform image scaling on the key frame image to obtain an image of standard size;
[0037] Normalize the pixels in the standard size image to obtain a normalized image;
[0038] The clarity of the normalized image is evaluated using Laplace transform, and the input image is screened according to the clarity evaluation result as the input of the convolutional neural network and cascade classifier.
[0039] Further, the fusion weight of the first age prediction model and the second age prediction model is calculated based on a preset adaptive weight algorithm, specifically including:
[0040] Calculate the variance of the first age prediction result to obtain the first variance;
[0041] Calculate the variance of the second age prediction result to obtain the second variance;
[0042] The inverse of the first variance is used as the first estimated confidence, and the inverse of the second variance is used as the second estimated confidence;
[0043] Calculating a first fusion weight and a second fusion weight according to the first estimated confidence and the second estimated confidence respectively;
[0044] The first fusion weight and the second fusion weight are calculated based on the following formula:
[0045]
[0046] Where W audio is the first fusion weight, that is, the fusion weight of the first age prediction model, W image is the second fusion weight, that is, the fusion weight of the second age prediction model, W audio +W image =1, C audio is the inverse of the calculated first variance, C image is the inverse of the calculated second variance.
[0047] Furthermore, the first age prediction model and the second age prediction model are weightedly fused based on the fusion weight to obtain a comprehensive age prediction model, which specifically includes:
[0048] The first fusion weight and the second fusion weight are used as model fusion parameters, and the first age prediction model and the second age prediction model are combined based on the model fusion parameters to obtain a combined prediction model, and a combined model prediction result output by the combined prediction model is obtained;
[0049] A linear weighted method is used to fuse the first age prediction result and the second age prediction result according to the ratio of the first fusion weight and the second fusion weight to obtain an age fusion prediction result;
[0050] Based on the prediction results of the combined model and the age fusion prediction results, the stochastic gradient descent method is used to optimize the combined prediction model. During the optimization training process, the ratio of the first fusion weight and the second fusion weight is continuously adjusted until the loss is minimized to obtain a comprehensive age prediction model.
[0051] In order to solve the above technical problems, the embodiment of the present application further provides an insurance risk prediction device based on pet age, which adopts the following technical solution:
[0052] A device for predicting insurance risk based on pet age, comprising:
[0053] The video stream acquisition module is used to acquire the pre-collected historical video stream, which is the video data uploaded by the user when insuring the pet;
[0054] The video stream analysis module is used to analyze the historical video stream to obtain the voice information and video information of the historical video stream;
[0055] A voiceprint prediction module, used to extract voiceprint features from speech information, and train a first age prediction model based on the voiceprint features and a residual network, wherein the first age prediction model outputs a first age prediction result based on the voiceprint features;
[0056] An image prediction module, used for extracting image features from video information, and training a second age prediction model based on the image features and a face detection model, wherein the second age prediction model outputs a second age prediction result based on the image features;
[0057] A model fusion module, used to calculate the fusion weight of the first age prediction model and the second age prediction model based on a preset adaptive weight algorithm, and perform weighted fusion on the first age prediction model and the second age prediction model based on the fusion weight to obtain a comprehensive age prediction model;
[0058] The risk prediction module is used to receive risk prediction instructions, obtain the real-time video stream when the pet to be predicted is insured, obtain the age prediction result of the pet to be predicted based on the real-time video stream and the comprehensive age prediction model, obtain the insurance risk prompt that matches the age prediction result, and output the insurance risk prompt.
[0059] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0060] A computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the insurance risk prediction method based on the age of a pet as described in any one of the above are implemented.
[0061] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0062] A computer-readable storage medium having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by a processor, implement the steps of the above-mentioned method for predicting insurance risk based on pet age.
[0063] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0064] The present application discloses a method for predicting insurance risk based on pet age and related equipment, which belongs to the field of artificial intelligence technology. First, the historical video stream uploaded by the user is analyzed, and the voiceprint and image features are extracted therefrom, and the first age prediction model based on the voiceprint and the second age prediction model based on the image are trained respectively. Subsequently, the two models are fused using an adaptive weight algorithm to construct a comprehensive age prediction model to improve the prediction accuracy. When a risk prediction instruction is received, the pet's age is quickly predicted through real-time video streams and comprehensive models, and the corresponding insurance risk prompts are matched to provide users with personalized risk assessment services. This application innovatively proposes a method for predicting insurance risk for pet age by integrating voiceprint and video information, and combining machine learning models and model fusion, which significantly improves the accuracy and efficiency of pet age prediction, effectively reduces the insurance risk caused by age misjudgment, and enhances user experience and trust. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0066] Figure 1 An exemplary system architecture diagram is shown in which the present application can be applied;
[0067] Figure 2 A flowchart of an embodiment of a method for predicting insurance risk based on pet age according to the present application is shown;
[0068] Figure 3 A schematic structural diagram of an embodiment of a device for predicting insurance risk based on pet age according to the present application is shown;
[0069] Figure 4 A schematic structural diagram of an embodiment of a computer device according to the present application is shown. DETAILED DESCRIPTION
[0070] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0071] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0072] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0073] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0074] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0075] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0076] Server 105 can be a server that provides various services, such as a background server that provides support for pages displayed on terminal devices 101, 102, and 103. The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0077] It should be noted that the insurance risk prediction method based on the pet's age provided in the embodiment of the present application is generally executed by a server, and accordingly, the insurance risk prediction device based on the pet's age is generally set in the server.
[0078] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0079] Continue to refer Figure 2 , showing a flow chart of an embodiment of the insurance risk prediction method based on pet age according to the present application. The embodiment of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0080] The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning. The insurance risk prediction method based on pet age includes the following steps:
[0081] S201, obtaining a pre-collected historical video stream, where the historical video stream is video data uploaded by a user when insuring a pet.
[0082] Specifically, the pre-collected historical video streams are obtained. The historical video streams are video data that users actively upload when insuring their pets. These video data not only record key information such as the pet's appearance characteristics and behavioral habits, but also imply factors that affect insurance assessments such as the pet's health status and age. By deeply analyzing these historical video streams, the system can have a more comprehensive understanding of the actual situation of the pet.
[0083] S202, parsing the historical video stream to obtain the voice information and video information of the historical video stream.
[0084] Specifically, the system analyzes the pre-collected historical video streams, separates and extracts two key components from the video streams: voice information and video information. The extraction of voice information helps the system capture sound clues in the video, including pet calls, interactive conversations between owners and pets, etc. This information is important for analyzing the pet's emotional state, health status, and relationship with the owner. At the same time, the analysis of video information focuses on capturing the pet's visual features, such as body shape, fur color, behavior patterns, etc. These intuitive data provide rich input materials for the subsequent age prediction model.
[0085] S203, extracting voiceprint features from the speech information, and training a first age prediction model based on the voiceprint features and a residual network, wherein the first age prediction model outputs a first age prediction result based on the voiceprint features.
[0086] Specifically, when further processing the voice information of the historical video stream, the system first extracts the voiceprint features in the voice information, which is a key step in identifying individual pets and their voice characteristics. Subsequently, these voiceprint features are used as input data for training the first age prediction model, which is built based on a residual network. The residual network includes several stacked residual blocks, each of which includes an input layer, a convolutional layer, a normalization layer, an activation function layer, and an output layer. Residual connections are used between residual blocks, which can effectively learn and predict the age of the pet from complex voiceprint features. Through this training process, the first age prediction model learns to associate voiceprint features with the age of the pet, and outputs the first age prediction result based on the voiceprint features.
[0087] S204, extracting image features from the video information, and training a second age prediction model based on the image features and a face detection model, wherein the second age prediction model outputs a second age prediction result based on the image features.
[0088] Specifically, during the in-depth analysis of the video information of the historical video stream, the system extracts image features from the video information, which contain rich visual information such as the pet's appearance, body shape, and posture. Subsequently, using the technical framework of the face detection model, the system constructs a second age prediction model, which is trained based on the extracted image features. Through this process, the second age prediction model learns to infer the pet's age from its image features and outputs the corresponding second age prediction results.
[0089] The second prediction model is a prediction model built based on the support vector regression (SVR) algorithm. Based on the extracted feature vectors and face detection results, a support vector regression model is constructed as the second age prediction model. SVR is suitable for processing regression problems and can learn the complex relationship between input features and target age.
[0090] S205, calculating the fusion weight of the first age prediction model and the second age prediction model based on a preset adaptive weight algorithm, and performing weighted fusion on the first age prediction model and the second age prediction model based on the fusion weight to obtain a comprehensive age prediction model.
[0091] Specifically, the system uses a preset adaptive weight algorithm to dynamically calculate the fusion weight of the first age prediction model and the second age prediction model based on their performance. The adaptive weight algorithm can intelligently balance the advantages of the two models to ensure that their respective effective information is utilized to the maximum extent during the weighted fusion process. Through weighted fusion, the system obtains a comprehensive age prediction model that not only integrates information from two different dimensions, voiceprint and image, but also improves the accuracy and robustness of the prediction results by optimizing weight distribution.
[0092] In an embodiment of the present application, the adaptive weight algorithm is a weight allocation algorithm based on estimated confidence. First, the variances of the prediction results of the two models are calculated respectively, and the size of the variance reflects the uncertainty or discreteness of the prediction results. Subsequently, the inverse of the variance is used as the estimated confidence, that is, the smaller the variance (indicating the more stable the prediction), the higher the estimated confidence. This method effectively quantifies the uncertainty of the prediction into confidence, providing a scientific basis for subsequent weight allocation. Finally, the fusion weights of each model are calculated based on these estimated confidences.
[0093] S206, receiving a risk prediction instruction, obtaining a real-time video stream of the pet to be predicted when it is insured, obtaining an age prediction result of the pet to be predicted based on the real-time video stream and a comprehensive age prediction model, obtaining an insurance risk prompt that matches the age prediction result, and outputting the insurance risk prompt.
[0094] Specifically, the system receives risk prediction instructions from the user and then captures the real-time video stream of the pet to be predicted when it is insured. The video stream is then input into the previously constructed comprehensive age prediction model, which combines voiceprint and image features and can quickly and accurately predict the pet's age based on the real-time video stream. After completing the age prediction, the system further matches the corresponding insurance risk prompts based on the age prediction results. These risk prompts involve the pet's health status, potential disease risks, suitable insurance product types and insurance amount recommendations, etc., aiming to help users make more informed insurance decisions.
[0095] In the embodiment of the present application, the solution of the present application can provide risk warning based on the calculated age difference. The age difference ΔAge is defined as follows:
[0096] ΔAge=|Age final -Age user |
[0097] In the formula, Age final is the pet’s age predicted by the model, Age user The age of the pet filled in by the user. By setting the age difference threshold θ, when the age difference exceeds this threshold θ, it is considered to be a risk and a risk warning is required. That is, if ΔAge>θ, there is a risk, and if ΔAge≤θ, there is no risk.
[0098] Furthermore, risk level assessment can be performed as needed, and risk thresholds of different levels can be defined, such as θ low ,θ med , and θ high , and divide the risk level: If ΔAge≤θ low , then there is no risk if θ low <ΔAge≤θ med , then there is a low risk if θmed <ΔAge≤θ high , then there is a medium risk if ΔAge>θ high , there is a high risk.
[0099] In the above embodiments, the present application discloses a method for predicting insurance risk based on pet age, which belongs to the field of artificial intelligence technology. First, the historical video stream uploaded by the user is analyzed, and the voiceprint and image features are extracted therefrom, and a first age prediction model based on voiceprint and a second age prediction model based on image are trained respectively. Subsequently, the two models are fused using an adaptive weight algorithm to construct a comprehensive age prediction model to improve the prediction accuracy. When a risk prediction instruction is received, the pet's age is quickly predicted through real-time video streams and comprehensive models, and the corresponding insurance risk prompts are matched to provide users with personalized risk assessment services. This application innovatively proposes a method for predicting insurance risk for pet age by integrating voiceprint and video information, and combining machine learning models and model fusion, which significantly improves the accuracy and efficiency of pet age prediction, effectively reduces the insurance risk caused by age misjudgment, and enhances user experience and trust.
[0100] Furthermore, voiceprint features are extracted from the speech information, and a first age prediction model is trained based on the voiceprint features and the residual network, specifically including:
[0101] The time-frequency analysis of speech information is performed through short-time Fourier transform to obtain a spectrogram;
[0102] Filter the spectrum graph to obtain the Mel spectrum;
[0103] Perform logarithm operation on the Mel spectrum, and perform discrete cosine transform on the logarithm result to obtain the Mel frequency cepstrum coefficient;
[0104] Mel frequency cepstral coefficients are used to extract voiceprint features from speech information;
[0105] Learn the voiceprint features through the residual network and output the first age prediction result;
[0106] Based on the first age prediction result, the gradient of the first prediction model network parameters is calculated by the back propagation algorithm, and the stochastic gradient descent optimization algorithm is used to update the first prediction model network parameters until the loss is minimized, thereby obtaining the first age prediction model, wherein the first prediction model is a prediction model built based on the residual network.
[0107] In this embodiment, a residual neural network model based on Mel-frequency cepstral coefficients (MFCC) is constructed to predict the age of the pet in the sound sample and optimize its performance. The residual network includes a plurality of residual blocks stacked on each other, each of which includes an input layer, a convolutional layer, a normalization layer, an activation function layer and an output layer, and residual connections are used between the residual blocks.
[0108] The input layer is used for voiceprint feature extraction. First, the sound signal is subjected to time-frequency analysis using the short-time Fourier transform (STFT) to generate a spectrogram. Then, the spectrogram is filtered using a Mel filter bank to obtain a Mel spectrum. Finally, the Mel spectrum is logarithmically processed and then a discrete cosine transform (DCT) is performed to obtain the Mel frequency cepstral coefficient (MFCC) as the voiceprint feature.
[0109] Based on the extracted MFCC features, a residual neural network model is designed and constructed. The model forms a deep structure by stacking multiple residual blocks. Each residual block contains a convolutional layer, a batch normalization layer, an activation function layer, and a residual connection to promote information flow and gradient propagation. At the end of the network (i.e., the output layer), a fully connected layer and a softmax layer are added to map the features to the probability distribution of age classification.
[0110] The cross entropy loss function is used as the optimization objective, the gradient of the network parameters is calculated through the back propagation algorithm, and the stochastic gradient descent (SGD) or its variants (such as Adam) are used as the optimization algorithm to update the network parameters according to the gradient to minimize the loss function.
[0111] Since the accuracy of age prediction varies greatly in different age ranges, the weighted age prediction loss function of the residual neural network model is designed as follows:
[0112]
[0113] Where, L voice Characterize the loss function of the residual neural network model, N sample is the number of pet samples, y i is the real age of pet i, is the age of pet i predicted by the model, w(y i ) is a weight function for the real age of pet i, which is used to adjust the importance of wrong predictions at different ages. As the age of pets increases, the risk of illness increases greatly. The model expects that the age prediction of older pets will be more accurate. The cost of wrong predictions for older pets is set to be greater. Then the weight function is: where α and β are hyperparameters.
[0114] In this embodiment, the voiceprint feature data set is reasonably divided into a training set and a validation set, and a data enhancement strategy is implemented on the training set, such as adding Gaussian noise, time stretching, etc., to increase the generalization ability of the model. The small batch stochastic gradient descent method can be used for model training, and the performance on the validation set is monitored through the early stopping strategy to avoid overfitting.
[0115] Use the validation set to evaluate model performance, calculate key indicators such as accuracy, precision, and recall, and tune model hyperparameters (such as learning rate, batch size, and number of network layers) through grid search and other methods to find the optimal configuration. Based on the tuning results, retrain the model on the complete training set to obtain the model with the best performance.
[0116] The cross-validation method was used to further evaluate the generalization ability of the model and ensure its stability under different data partitions. The prediction effect of the model on different age groups was analyzed in detail through the confusion matrix to identify potential biases or weaknesses. The final model was fully tested using an independent test set, and various evaluation indicators on the test set were calculated and reported.
[0117] In the above embodiment, the voiceprint features are effectively extracted by using the Mel frequency cepstral coefficients, and high-precision age classification prediction is achieved by combining the residual neural network. In addition, the generalization ability and stability of the model are enhanced through data enhancement, small batch training and early stopping strategy, grid search tuning ensures the optimal model parameters, and cross validation further verifies its generalization. Finally, the model shows good prediction performance on the test set.
[0118] Furthermore, before extracting voiceprint features from the speech information and training the first age prediction model based on the voiceprint features and the residual network, it also includes:
[0119] Performing pre-processing operations on voice information;
[0120] The pre-processing operations for voice information include:
[0121] Convert the sampling rate of voice information into a preset standard sampling rate;
[0122] Performing standardization processing on the voice information after completing the frequency conversion to obtain standardized voice information;
[0123] Wavelet denoising is used to remove background noise from standardized speech information.
[0124] In this embodiment, before constructing the first age prediction model based on voiceprint features and residual network, a comprehensive preprocessing process of voice information is first required. It starts with converting the sampling rate of the original voice to the preset standard sampling rate to ensure the consistency of the input data and lay the foundation for subsequent processing. Subsequently, the adjusted voice information is standardized to eliminate the amplitude differences between different signals, so that the model can focus more on learning voiceprint features. Next, advanced wavelet denoising technology is used to effectively remove background noise in standardized voice, significantly improving the purity and recognition of voiceprint features.
[0125] Due to different recording devices and compression methods, the collected videos have different formats and sampling rates. To facilitate subsequent processing, they need to be uniformly converted to the preset sampling rate and standardized. When sampling, assume the original sampling rate is f original , and the required sampling rate is f target , the processed signal is obtained by resampling through linear difference:
[0126]
[0127] In the formula, x represents the original signal, m(n) represents the resampled signal, and n is the index of the sampling point.
[0128] Then, the speech information that has completed the frequency conversion is standardized, the signal is standardized to the interval range of [-1,1], and the signal that has been converted by sampling rate is standardized:
[0129]
[0130] In the formula, z(n) represents the standardized signal, mean(m) represents the average value of the signal m(n), and m(n)-mean(m) represents the centralized version of the signal m(n), that is, the part with its mean removed.
[0131] In the above embodiment, the preprocessing step of the speech information not only optimizes the quality of the input data, but also provides more accurate and reliable voiceprint features for the subsequent residual network-based age prediction model training, thereby enhancing the prediction accuracy and robustness of the model.
[0132] Furthermore, image features are extracted from the video information, and a second age prediction model is trained based on the image features and the face detection model, specifically including:
[0133] The preset convolutional neural network is used to extract the image features of the key frame images of the video information to obtain the facial features of the pet;
[0134] Perform pet face detection on the key frame image through a preset cascade classifier to determine whether there is a pet face area in the key frame image;
[0135] When there is a pet face region in the key frame image, the key point features of the pet face region are extracted by using a scale-invariant feature transformation algorithm;
[0136] Using the pet's facial features and key point features to train a preset second prediction model, and outputting a second age prediction result, wherein the second prediction model is a prediction model built based on a support vector regression algorithm;
[0137] The second prediction model is optimized and trained using the stochastic gradient descent method, and the network parameters of the second prediction model are continuously adjusted during the optimization training process until the loss is minimized to obtain the second age prediction model.
[0138] In this embodiment, an efficient age prediction system is constructed based on support vector regression (SVR) to achieve image-based pet age prediction. Based on the extracted feature vectors and face detection results, a support vector regression (SVR) model is constructed as the second age prediction model. SVR is suitable for processing regression problems and can learn the complex relationship between input features and target age.
[0139] Obtain a training data set containing pet facial images (i.e., key frame images of video information) and their corresponding age labels. Perform animal face detection on the images in the training set using algorithms such as cascade classifiers to identify and extract the animal face region in the image.
[0140] The convolutional neural network (CNN) is used to extract deep features of the detected animal face images, generate feature vectors of the animal face images, and further extract texture features of the animal face images using the local binary pattern (LBP) algorithm. These features are sensitive to subtle texture changes and help improve the accuracy of age prediction. The key point features of the animal face are extracted through the scale-invariant feature transform (SIFT) algorithm or similar techniques. These feature points reflect the geometric structure and shape information of the animal face.
[0141] For high-dimensional features, principal component analysis (PCA) can be considered for dimensionality reduction to reduce the amount of calculation and remove redundant information while retaining key information as much as possible.
[0142] The cross-validation method is used to divide the data set into a training set and a validation set to ensure the generalization ability of the model. The SVR model is optimized and trained using the stochastic gradient descent method (SGD), and the prediction error is minimized by iteratively updating the model parameters. The model performance is evaluated based on the mean absolute error (MAE) on the validation set. If the performance does not meet expectations (i.e., the MAE is greater than the preset threshold), the kernel function (such as linear, polynomial, or RBF, etc.) and penalty coefficient of the SVR model are adjusted, and the training is re-performed. The grid search method is used to systematically explore the model hyperparameter space to find the optimal hyperparameter combination and further improve the model performance.
[0143] In the above embodiment, by efficiently combining convolutional neural networks and cascade classifiers, accurate extraction and detection of pet facial features from video key frames are achieved. The scale-invariant feature transformation algorithm is further used to refine feature extraction, enhancing the robustness of the model for pet age prediction. Based on the support vector regression algorithm, the second age prediction model is constructed and optimized, and the parameters are finely adjusted by the stochastic gradient descent method to ensure the maximum prediction accuracy of the model, which ultimately effectively improves the accuracy and reliability of pet age prediction.
[0144] Furthermore, before extracting image features from the video information and training the second age prediction model based on the image features and the face detection model, the method further includes:
[0145] Preprocessing video information;
[0146] Preprocess the video information, including:
[0147] Extract key frames from video information to obtain key frame images of the video information;
[0148] Perform image scaling on the key frame image to obtain an image of standard size;
[0149] Normalize the pixels in the standard size image to obtain a normalized image;
[0150] The clarity of the normalized image is evaluated using Laplace transform, and the input image is screened according to the clarity evaluation result as the input of the convolutional neural network and cascade classifier.
[0151] In this embodiment, before training the second age prediction model, the video information is first carefully preprocessed to extract the key frames of the video to ensure the capture of important information; then, the key frames are scaled to unify the image size for subsequent processing; then, pixel normalization is implemented to improve the consistency of image data and the stability of model training. It is particularly critical that Laplace transform is used to evaluate image clarity, and only images with qualified clarity are selected as input, which not only reduces noise interference, but also significantly improves the processing efficiency and prediction accuracy of convolutional neural networks and cascade classifiers.
[0152] After scaling the key frames, adjust each frame to the same size H×W. Let the original i-th frame F i The size is h i × i , the adjusted frame is F′ i , scaled according to the following formula:
[0153] F′ i =Rescale(F i ,H,W)
[0154] Where Rescale represents the scaling operation.
[0155] After completing the scaling, i Perform pixel normalization to obtain a normalized image. Let F′ i The pixel value range is [0,255], and the normalized frame is F″ i , then the pixel normalization is:
[0156]
[0157] Furthermore, after pixel normalization, the illumination of the image can be adjusted and the background of the image can be suppressed. Here, the frame after illumination adjustment is denoted as F″′ i , the normalized image F″ is calculated by the following formula i Perform a logarithmic transformation to achieve lighting adjustment:
[0158] F″′ i =log(1+λF″ i )
[0159] In the formula, λ adjusts the illumination parameters. When suppressing the background of the image, the foreground object in the video is highlighted. Let the background frame be B and the frame after background suppression be S i , then the background suppression can be expressed as:
[0160] S i =|F″′ i -B|
[0161] Furthermore, after completing the image lighting adjustment and image background suppression, the clarity of the video frame is accurately evaluated through Laplace transform, and the pre-trained pet face detector of OpenCV is used to efficiently identify the front face of the pet. Subsequently, the detected frames are screened and sorted according to the clarity score, and the three frames with the highest clarity are selected as model input, which not only improves the quality of model training, but also achieves data enhancement through diversified samples.
[0162] In the field of image processing or video analysis, the Laplacian operator is used to process images or video frames, and the clarity of the images or video frames is evaluated by calculating the variance of the processing results. In image processing, the response value of the Laplacian operator is regarded as a set of data, and its variance can reflect the discreteness of these response values. Since a clear image will produce a large, discretely distributed response value after applying the Laplacian operator, its variance will also be relatively large. In contrast, the Laplacian response value of a blurred image is small and concentrated, and the variance is also small.
[0163] Further, the fusion weight of the first age prediction model and the second age prediction model is calculated based on a preset adaptive weight algorithm, specifically including:
[0164] Calculate the variance of the first age prediction result to obtain the first variance;
[0165] Calculate the variance of the second age prediction result to obtain the second variance;
[0166] The inverse of the first variance is used as the first estimated confidence, and the inverse of the second variance is used as the second estimated confidence;
[0167] A first fusion weight and a second fusion weight are calculated according to the first estimated confidence level and the second estimated confidence level, respectively.
[0168] In this embodiment, by introducing an adaptive weight algorithm, the output results of the two age prediction models are intelligently fused. First, the variances of the prediction results of the two models are calculated respectively. The size of the variance reflects the uncertainty or discreteness of the prediction results. Subsequently, the inverse of the variance is used as the estimated confidence, that is, the smaller the variance (indicating the more stable the prediction), the higher the estimated confidence. This method effectively quantifies the uncertainty of the prediction into confidence, providing a scientific basis for the subsequent weight allocation. Finally, the fusion weights of each model are calculated based on these estimated confidences.
[0169] The first fusion weight and the second fusion weight are calculated based on the following formula:
[0170]
[0171] Where W audiois the first fusion weight, that is, the fusion weight of the first age prediction model, W image is the second fusion weight, that is, the fusion weight of the second age prediction model, W audio +W image =1, C audio is the inverse of the calculated first variance, C image is the inverse of the calculated second variance.
[0172] In the above embodiment, by introducing an adaptive weight algorithm to calculate the fusion weight, it is ensured that the fusion result can rely more on a more reliable and stable prediction model, thereby improving the accuracy and robustness of the overall prediction.
[0173] Furthermore, the first age prediction model and the second age prediction model are weightedly fused based on the fusion weight to obtain a comprehensive age prediction model, which specifically includes:
[0174] The first fusion weight and the second fusion weight are used as model fusion parameters, and the first age prediction model and the second age prediction model are combined based on the model fusion parameters to obtain a combined prediction model, and a combined model prediction result output by the combined prediction model is obtained;
[0175] A linear weighted method is used to fuse the first age prediction result and the second age prediction result according to the ratio of the first fusion weight and the second fusion weight to obtain an age fusion prediction result;
[0176] Based on the prediction results of the combined model and the age fusion prediction results, the stochastic gradient descent method is used to optimize the combined prediction model. During the optimization training process, the ratio of the first fusion weight and the second fusion weight is continuously adjusted until the loss is minimized to obtain a comprehensive age prediction model.
[0177] In this embodiment, an efficient comprehensive age prediction model is constructed through a sophisticated weighted fusion strategy and iterative optimization process. First, the two independent age prediction models are linearly combined using the previously calculated fusion weight as a key parameter to form a preliminary combined prediction model, and then the contribution of the two models to the final prediction result is balanced through weight distribution.
[0178] Subsequently, the linear weighted method was used to directly fuse the prediction results according to the fusion weights of each model to obtain the preliminary age fusion prediction results. The stochastic gradient descent method was introduced as an optimization method to iteratively train the combined prediction model. During the training process, not only the prediction ability of the combined model itself (i.e., the prediction results of the combined model) was paid attention to, but also the feedback of the age fusion prediction results was combined to dynamically adjust the ratio of the two fusion weights.
[0179] Through this process, the final comprehensive age prediction model not only combines the advantages of the two models, but also overcomes their respective limitations through optimization training, achieving more accurate and stable age prediction. For example, in pet face recognition applications, the model can more accurately estimate the individual age of pets of different age groups, which is of great value for tasks such as age classification and pet identity verification.
[0180] In this embodiment, the method for predicting insurance risk based on the age of a pet is executed on an electronic device (eg Figure 1 The server shown in the figure) can receive instructions or obtain data through a wired connection or a wireless connection. It should be noted that the above wireless connection method may include but is not limited to 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.
[0181] It should be emphasized that in order to further ensure the privacy and security of the above video stream, the above video stream can also be stored in a blockchain node.
[0182] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0183] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the computer-readable instructions are executed, they can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0184] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0185] Further references Figure 3 , as a response to the above Figure 2 The present application provides an embodiment of a device for predicting insurance risk based on pet age. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0186] like Figure 3 As shown, the insurance risk prediction device 300 based on pet age in this embodiment includes:
[0187] The video stream acquisition module 301 is used to acquire the pre-collected historical video stream, which is the video data uploaded by the user when insuring the pet;
[0188] The video stream analysis module 302 is used to analyze the historical video stream to obtain the voice information and video information of the historical video stream;
[0189] A voiceprint prediction module 303 is used to extract voiceprint features from speech information, and train a first age prediction model based on the voiceprint features and a residual network, wherein the first age prediction model outputs a first age prediction result based on the voiceprint features;
[0190] An image prediction module 304 is used to extract image features from the video information, and train a second age prediction model based on the image features and the face detection model, wherein the second age prediction model outputs a second age prediction result based on the image features;
[0191] A model fusion module 305 is used to calculate the fusion weight of the first age prediction model and the second age prediction model based on a preset adaptive weight algorithm, and perform weighted fusion on the first age prediction model and the second age prediction model based on the fusion weight to obtain a comprehensive age prediction model;
[0192] The risk prediction module 306 is used to receive risk prediction instructions, obtain the real-time video stream when the pet to be predicted is insured, obtain the age prediction result of the pet to be predicted based on the real-time video stream and the comprehensive age prediction model, obtain the insurance risk prompt that matches the age prediction result, and output the insurance risk prompt.
[0193] Furthermore, the voiceprint prediction module 303 is specifically used for:
[0194] The speech information is subjected to time-frequency analysis by short-time Fourier transform to obtain a spectrogram; the spectrogram is filtered to obtain a Mel spectrum; the Mel spectrum is logarithmically operated, and the logarithmic result is subjected to discrete cosine transform to obtain Mel-frequency cepstral coefficients; the Mel-frequency cepstral coefficients are used to extract the voiceprint features in the speech information; the voiceprint features are learned by a residual network, and a first age prediction result is output; based on the first age prediction result, the gradient of the network parameters of the first prediction model is calculated by a back propagation algorithm, and the network parameters of the first prediction model are updated by a stochastic gradient descent optimization algorithm until the loss is minimized, thereby obtaining a first age prediction model, wherein the first prediction model is a prediction model built based on a residual network.
[0195] Furthermore, the insurance risk prediction device 300 based on the age of the pet also includes:
[0196] A first preprocessing module, used for performing preprocessing operations on voice information;
[0197] The first preprocessing module is specifically used for:
[0198] The sampling rate of the voice information is converted into a preset standard sampling rate; the voice information after the frequency conversion is standardized to obtain standardized voice information; and the background noise in the standardized voice information is removed by using a wavelet denoising method.
[0199] Furthermore, the image prediction module 304 is specifically used for:
[0200] A preset convolutional neural network is used to extract image features of key frame images of video information to obtain pet facial features; pet facial detection is performed on key frame images through a preset cascade classifier to determine whether there is a pet facial area in the key frame image; when a pet facial area exists in the key frame image, key point features of the pet facial area are extracted through a scale-invariant feature transformation algorithm; the pet facial features and key point features are used to train a preset second prediction model to output a second age prediction result, wherein the second prediction model is a prediction model built based on a support vector regression algorithm; the second prediction model is optimized and trained using the stochastic gradient descent method, and the network parameters of the second prediction model are continuously adjusted during the optimization training process until the loss is minimized to obtain a second age prediction model.
[0201] Furthermore, the insurance risk prediction device 300 based on the age of the pet also includes:
[0202] A second preprocessing module, used for preprocessing video information;
[0203] The second preprocessing module is specifically used for:
[0204] The key frames of the video information are extracted to obtain the key frame images of the video information; the key frame images are scaled to obtain standard size images; the pixels in the standard size images are normalized to obtain normalized images; the clarity of the normalized images is evaluated using Laplace transform, and the input images are selected as the inputs of the convolutional neural network and cascade classifier according to the clarity evaluation results.
[0205] Furthermore, the model fusion module 305 is specifically used for:
[0206] Calculate the variance of the first age prediction result to obtain a first variance; calculate the variance of the second age prediction result to obtain a second variance; use the inverse of the first variance as a first estimated confidence, and use the inverse of the second variance as a second estimated confidence; calculate a first fusion weight and a second fusion weight according to the first estimated confidence and the second estimated confidence, respectively;
[0207] Furthermore, the first fusion weight and the second fusion weight are calculated based on the following formula:
[0208]
[0209]
[0210] Where W audio is the first fusion weight, that is, the fusion weight of the first age prediction model, W image is the second fusion weight, that is, the fusion weight of the second age prediction model, W audio +W image =1, C audio is the inverse of the calculated first variance, C image is the inverse of the calculated second variance.
[0211] Furthermore, the model fusion module 305 is also used for:
[0212] The first fusion weight and the second fusion weight are used as model fusion parameters, and the first age prediction model and the second age prediction model are combined based on the model fusion parameters to obtain a combined prediction model, and the combined model prediction result output by the combined prediction model is obtained; the first age prediction result and the second age prediction result are fused according to the ratio of the first fusion weight and the second fusion weight using a linear weighted method to obtain an age fusion prediction result; based on the combined model prediction result and the age fusion prediction result, the combined prediction model is optimized and trained using the stochastic gradient descent method, and the ratio of the first fusion weight and the second fusion weight is continuously adjusted during the optimization training process until the loss is minimized to obtain a comprehensive age prediction model.
[0213] In the above embodiments, the present application discloses an insurance risk prediction device based on pet age, which belongs to the field of artificial intelligence technology. First, the historical video stream uploaded by the user is analyzed, and the voiceprint and image features are extracted therefrom, and the first age prediction model based on the voiceprint and the second age prediction model based on the image are trained respectively. Subsequently, the two models are fused using an adaptive weight algorithm to construct a comprehensive age prediction model to improve the prediction accuracy. When a risk prediction instruction is received, the pet's age is quickly predicted through real-time video streams and comprehensive models, and the corresponding insurance risk prompts are matched to provide users with personalized risk assessment services. This application innovatively proposes an insurance risk prediction method for pet age by fusing voiceprint and video information, and combining machine learning models and model fusion, which significantly improves the accuracy and efficiency of pet age prediction, effectively reduces the insurance risk caused by age misjudgment, and enhances user experience and trust.
[0214] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0215] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0216] The computer device may be a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with the user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0217] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 4. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of the insurance risk prediction method based on the age of the pet, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.
[0218] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the computer-readable instructions stored in the memory 41 or process data, such as running the computer-readable instructions of the insurance risk prediction method based on the age of the pet.
[0219] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.
[0220] In the above embodiment, the present application discloses a computer device, which belongs to the field of artificial intelligence technology. First, the historical video stream uploaded by the user is analyzed, and the voiceprint and image features are extracted therefrom, and a first age prediction model based on the voiceprint and a second age prediction model based on the image are trained respectively. Subsequently, the two models are fused using an adaptive weight algorithm to construct a comprehensive age prediction model to improve the prediction accuracy. When a risk prediction instruction is received, the pet's age is quickly predicted through real-time video streams and comprehensive models, and the corresponding insurance risk prompts are matched to provide users with personalized risk assessment services. This application innovatively proposes a method for predicting insurance risks for pets' ages by integrating voiceprints and video information, and combining machine learning models and model fusion, which significantly improves the accuracy and efficiency of pet age prediction, effectively reduces the insurance risks caused by age misjudgment, and enhances user experience and trust.
[0221] The present application also provides another embodiment, namely, providing a computer-readable storage medium, which stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the above-mentioned pet age-based insurance risk prediction method.
[0222] In the above embodiments, the present application discloses a computer-readable storage medium, which belongs to the field of artificial intelligence technology. First, the historical video stream uploaded by the user is analyzed, and the voiceprint and image features are extracted therefrom, and a first age prediction model based on the voiceprint and a second age prediction model based on the image are trained respectively. Subsequently, the two models are fused using an adaptive weight algorithm to construct a comprehensive age prediction model to improve the prediction accuracy. When a risk prediction instruction is received, the pet's age is quickly predicted through real-time video streams and comprehensive models, and the corresponding insurance risk prompts are matched to provide users with personalized risk assessment services. This application innovatively proposes a method for predicting insurance risks for pets' ages by integrating voiceprints and video information, and combining machine learning models and model fusion, which significantly improves the accuracy and efficiency of pet age prediction, effectively reduces the insurance risks caused by age misjudgment, and enhances user experience and trust.
[0223] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0224] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0225] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A method for predicting insurance risk based on pet age, characterized in that: include: Acquire a pre-collected historical video stream, where the historical video stream is video data uploaded by the user when insuring the pet; Parsing the historical video stream to obtain voice information and video information of the historical video stream; extracting voiceprint features from the speech information, and training a first age prediction model based on the voiceprint features and a residual network, wherein the first age prediction model outputs a first age prediction result based on the voiceprint features; extracting image features from the video information, and training a second age prediction model based on the image features and a face detection model, wherein the second age prediction model outputs a second age prediction result based on the image features; Calculating a fusion weight of the first age prediction model and the second age prediction model based on a preset adaptive weight algorithm, and performing weighted fusion of the first age prediction model and the second age prediction model based on the fusion weight to obtain a comprehensive age prediction model; Receive a risk prediction instruction, obtain a real-time video stream when the pet to be predicted is insured, obtain an age prediction result of the pet to be predicted based on the real-time video stream and the comprehensive age prediction model, obtain an insurance risk prompt that matches the age prediction result, and output the insurance risk prompt.
2. The insurance risk prediction method based on pet age as claimed in claim 1, characterized in that: Extracting voiceprint features from the voice information, and training a first age prediction model based on the voiceprint features and a residual network, specifically including: Performing time-frequency analysis on the speech information by short-time Fourier transform to obtain a spectrogram; Filtering the spectrum graph to obtain a Mel spectrum; Performing a logarithm operation on the Mel frequency spectrum, and performing a discrete cosine transform on the logarithm result to obtain Mel frequency cepstrum coefficients; Extracting voiceprint features in the speech information using the Mel-frequency cepstral coefficients; learning the voiceprint feature through the residual network and outputting the first age prediction result; Based on the first age prediction result, the gradient of the first prediction model network parameters is calculated by the back propagation algorithm, and the first prediction model network parameters are updated by the stochastic gradient descent optimization algorithm until the loss is minimized, thereby obtaining the first age prediction model, wherein the first prediction model is a prediction model built based on the residual network.
3. The insurance risk prediction method based on pet age as claimed in claim 1, characterized in that: Before extracting voiceprint features from the speech information and training the first age prediction model based on the voiceprint features and the residual network, the method further includes: Performing a preprocessing operation on the voice information; The preprocessing operation on the voice information includes: Converting the sampling rate of the voice information into a preset standard sampling rate; Performing standardization processing on the voice information after frequency conversion to obtain standardized voice information; The background noise in the standardized speech information is removed by using wavelet denoising method.
4. The insurance risk prediction method based on pet age as claimed in claim 1, characterized in that: Extracting image features from the video information, and training a second age prediction model based on the image features and a face detection model, specifically includes: Using a preset convolutional neural network to extract image features of key frame images of the video information to obtain facial features of the pet; Performing pet face detection on the key frame image by using a preset cascade classifier to determine whether there is a pet face area in the key frame image; When there is a pet face region in the key frame image, extracting key point features of the pet face region by using a scale-invariant feature transformation algorithm; Using the pet's facial features and the key point features to train a preset second prediction model, and outputting the second age prediction result, wherein the second prediction model is a prediction model built based on a support vector regression algorithm; The second prediction model is optimized and trained using the stochastic gradient descent method, and the network parameters of the second prediction model are continuously adjusted during the optimization training process until the loss is minimized, thereby obtaining the second age prediction model.
5. The insurance risk prediction method based on pet age as claimed in claim 4, characterized in that: Before extracting image features from the video information and training a second age prediction model based on the image features and a face detection model, the method further includes: Preprocessing the video information; Preprocessing the video information specifically includes: Extracting key frames from the video information to obtain key frame images of the video information; Scaling the key frame image to obtain a standard size image; Normalizing pixels in the standard size image to obtain a normalized image; The clarity of the normalized image is evaluated using Laplace transform, and the input image is screened according to the clarity evaluation result as the input of the convolutional neural network and the cascade classifier.
6. The method for predicting insurance risk based on pet age as claimed in claim 1, characterized in that: Calculating the fusion weight of the first age prediction model and the second age prediction model based on a preset adaptive weight algorithm specifically includes: Calculating the variance of the first age prediction result to obtain a first variance; Calculating the variance of the second age prediction result to obtain a second variance; Using the reciprocal of the first variance as a first estimated confidence level, and using the reciprocal of the second variance as a second estimated confidence level; Calculating a first fusion weight and a second fusion weight according to the first estimated confidence and the second estimated confidence respectively; The first fusion weight and the second fusion weight are calculated based on the following formula: Where W audio is the first fusion weight, that is, the fusion weight of the first age prediction model, W image is the second fusion weight, that is, the fusion weight of the second age prediction model, W audio +W image =1, C audio is the inverse of the calculated first variance, C image is the inverse of the calculated second variance.
7. The method for predicting insurance risk based on pet age as claimed in claim 6, characterized in that: The first age prediction model and the second age prediction model are weightedly fused based on the fusion weight to obtain a comprehensive age prediction model, which specifically includes: Using the first fusion weight and the second fusion weight as model fusion parameters, combining the first age prediction model and the second age prediction model based on the model fusion parameters to obtain a combined prediction model, and obtaining a combined model prediction result output by the combined prediction model; Using a linear weighted method, the first age prediction result and the second age prediction result are fused according to a ratio of the first fusion weight to the second fusion weight to obtain an age fusion prediction result; Based on the prediction results of the combined model and the age fusion prediction results, the combined prediction model is optimized and trained using the stochastic gradient descent method, and the ratio of the first fusion weight to the second fusion weight is continuously adjusted during the optimization training process until the loss is minimized, thereby obtaining the comprehensive age prediction model.
8. A device for predicting insurance risk based on pet age, characterized in that: include: A video stream acquisition module is used to acquire a pre-collected historical video stream, where the historical video stream is the video data uploaded by the user when insuring the pet; A video stream analysis module, used to analyze the historical video stream to obtain voice information and video information of the historical video stream; a voiceprint prediction module, configured to extract voiceprint features from the speech information, and train a first age prediction model based on the voiceprint features and a residual network, wherein the first age prediction model outputs a first age prediction result based on the voiceprint features; An image prediction module, configured to extract image features from the video information, and train a second age prediction model based on the image features and a face detection model, wherein the second age prediction model outputs a second age prediction result based on the image features; a model fusion module, configured to calculate a fusion weight of the first age prediction model and the second age prediction model based on a preset adaptive weight algorithm, and to perform weighted fusion of the first age prediction model and the second age prediction model based on the fusion weight to obtain a comprehensive age prediction model; The risk prediction module is used to receive risk prediction instructions, obtain the real-time video stream of the pet to be predicted when it is insured, obtain the age prediction result of the pet to be predicted based on the real-time video stream and the comprehensive age prediction model, obtain the insurance risk prompt matching the age prediction result, and output the insurance risk prompt.
9. A computer device, characterized in that: It comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the insurance risk prediction method based on the age of a pet as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the insurance risk prediction method based on pet age as described in any one of claims 1 to 7.
Citation Information
Cited By
Video content risk detection method and device, medium and equipment
CN119274119A
Pet health monitoring method and system based on prediction model
CN119650074A
