Object recognition method, device, computer equipment and storage medium

By constructing a vehicle data feature matrix and using a machine learning model to identify the fault status of shared motorcycles, the problem of low identification efficiency in the existing technology is solved and more efficient identification of faulty vehicles is achieved.

CN116778308BActive Publication Date: 2024-09-13BEIJING APAKOLAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311064735.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-23
Publication Date
2024-09-13
Estimated Expiration
2043-08-23

AI Technical Summary

Technical Problem

In the existing technology, there is a lag in identifying faulty vehicles through active reports from operation and maintenance personnel and users, resulting in low efficiency in identifying faulty vehicles on shared motorcycles.

Method used

By acquiring vehicle data, a feature matrix is ​​constructed, and a machine learning model trained based on positive and negative sample sets is used for identification processing to automatically identify the vehicle status and determine the faulty vehicle.

Benefits of technology

It improves the timeliness and accuracy of identifying faulty vehicles, reduces identification costs, and improves identification efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116778308B
    Figure CN116778308B
Patent Text Reader

Abstract

The present application relates to an object recognition method, device, computer equipment and storage medium. The method comprises: obtaining vehicle data, and determining a feature matrix of a vehicle to be recognized based on the vehicle data; performing recognition processing on the feature matrix based on a trained object recognition model to obtain a target recognition result of the vehicle to be recognized; the object recognition model is a machine learning model trained based on a positive sample set and a negative sample set; the target recognition result is used to reflect the vehicle status information of the vehicle to be recognized; and determining the faulty vehicle based on the vehicle status information reflected by the target recognition result. The use of this method can improve the efficiency of identifying the target vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to an object recognition method, apparatus, computer device and storage medium. Background Art

[0002] With the development of shared bicycles, shared electric motorcycle services have emerged. Since the structure of shared electric motorcycles is more complicated than that of ordinary shared electric motorcycles, the probability of failure is greater as the frequency of use increases. When a shared electric motorcycle fails, it will affect the growth of orders. Therefore, it is necessary to detect the faulty vehicle.

[0003] In traditional technology, faulty vehicles in the city are identified through reports from operation and maintenance personnel or feedback from users on the faulty vehicles they find.

[0004] However, the current method of identifying faulty vehicles through reports from maintenance personnel and user feedback has a lag, resulting in low efficiency in identifying faulty vehicles, because the faulty vehicle can only be identified after the maintenance personnel or the user actively discovers the faulty vehicle. Summary of the invention

[0005] Based on this, it is necessary to provide an object recognition method, apparatus, computer device and computer-readable storage medium to address the above technical problems.

[0006] In a first aspect, the present application provides an object recognition method. The method comprises:

[0007] Acquire vehicle data, and determine a feature matrix of a vehicle to be identified based on the vehicle data;

[0008] The feature matrix is ​​identified based on the trained object recognition model to obtain the target recognition result of the vehicle to be identified; the object recognition model is a machine learning model trained based on a positive sample set and a negative sample set; the target recognition result is used to reflect the vehicle state information of the vehicle to be identified;

[0009] The faulty vehicle is determined based on the vehicle status information reflected by the target recognition result.

[0010] In one embodiment, the vehicle data includes vehicle status features, order features, and location features, and determining a feature matrix of a vehicle to be identified based on the vehicle data includes:

[0011] Perform feature splicing on the vehicle state feature, the order feature and the location feature of each to-be-identified vehicle contained in the vehicle data to obtain a feature vector of each to-be-identified vehicle;

[0012] A feature matrix of the vehicle to be identified is constructed based on the feature vectors of each of the vehicles to be identified.

[0013] In one embodiment, the identification processing of the feature matrix based on the trained object recognition model to obtain the target recognition result of the vehicle to be identified includes:

[0014] Classifying the feature matrix through multiple decision trees in the object recognition model to obtain an initial classification result of each decision tree;

[0015] Each of the initial classification results is weighted to obtain a classification result of the vehicle to be identified, and the classification result is used as a target recognition result of the vehicle to be identified.

[0016] In one embodiment, the classification process of the feature matrix using multiple decision trees in the object recognition model to obtain an initial classification result of each decision tree includes:

[0017] Inputting the feature matrix into multiple decision trees for classification processing, and determining the leaf node corresponding to the feature matrix in each decision tree;

[0018] The initial classification result of the decision tree is determined by the prediction results corresponding to each leaf node, and the initial classification results of the multiple decision trees are obtained.

[0019] In one embodiment, the target recognition result includes a first fault type, a second fault type, and a non-fault type; and determining the faulty vehicle according to the vehicle status information reflected by the target recognition result includes:

[0020] If the target recognition result of the vehicle to be identified is the first fault type or the second fault type, the vehicle to be identified is determined as a faulty vehicle.

[0021] In one embodiment, before obtaining the vehicle data, the method further includes:

[0022] Obtain a feature matrix corresponding to a positive sample set and a feature matrix corresponding to a negative sample set; the feature matrix corresponding to the positive sample set represents features corresponding to positive samples of a first fault type and a second fault type, and the feature matrix corresponding to the negative sample set represents features corresponding to negative samples of a non-fault type;

[0023] Performing recognition processing on the feature matrix corresponding to the positive sample and the feature matrix corresponding to the negative sample according to the object recognition model to be trained, so as to obtain a first recognition result for each positive sample and a second recognition result for each negative sample;

[0024] Determine a loss value of the object recognition model to be trained based on a positive sample label corresponding to the positive sample and the first recognition result and a negative sample label corresponding to the negative sample and the second recognition result;

[0025] If the loss value does not meet the preset loss condition, the object recognition model to be trained is optimized for loss, and the step of identifying and processing the feature matrix corresponding to the positive sample and the feature matrix corresponding to the negative sample according to the object recognition model to be trained is executed until the loss value meets the preset loss condition, thereby obtaining a trained object recognition model.

[0026] In one embodiment, the step of obtaining a feature matrix corresponding to the positive sample set and a feature matrix corresponding to the negative sample set includes:

[0027] Obtain a positive sample set and a negative sample set; the positive sample set includes positive sample labels of positive samples carrying positive sample labels, and the negative sample set includes negative samples carrying negative sample labels; the positive sample representation

[0028] The vehicle state features, order features, and location features of each positive sample contained in the positive sample set are concatenated, and the vehicle state features, order features, and location features of each negative sample contained in the negative sample set are concatenated to obtain feature vectors corresponding to each positive sample and feature vectors corresponding to each negative sample, respectively;

[0029] Based on the feature vectors corresponding to the positive samples and the feature vectors corresponding to the negative samples, a feature matrix corresponding to the positive sample set and a feature matrix corresponding to the negative sample set are constructed respectively.

[0030] In one embodiment, before obtaining the trained object recognition model, the method further includes:

[0031] Calculate the accuracy, precision, recall and balanced F-score of the trained object recognition model according to the first recognition result and the positive sample label, and the second recognition result and the negative sample label as an evaluation result;

[0032] If the evaluation result meets the preset evaluation condition, the trained object recognition model is used as the trained object recognition model.

[0033] In a second aspect, the present application also provides an object recognition device. The device comprises:

[0034] A first acquisition module, used to acquire vehicle data and determine a feature matrix of a vehicle to be identified based on the vehicle data;

[0035] A first recognition module is used to perform recognition processing on the feature matrix based on a trained object recognition model to obtain a target recognition result of the vehicle to be recognized; the object recognition model is a machine learning model trained based on a positive sample set and a negative sample set; the target recognition result is used to reflect the vehicle state information of the vehicle to be recognized;

[0036] The first determination module is used to determine the faulty vehicle according to the vehicle status information reflected by the target recognition result.

[0037] In one embodiment, the first acquisition module is specifically used for:

[0038] The vehicle state feature, the order feature and the location feature of each to-be-identified vehicle contained in the vehicle data are concatenated to obtain a feature vector of each to-be-identified vehicle;

[0039] A feature matrix of the vehicle to be identified is constructed based on the feature vectors of each of the vehicles to be identified.

[0040] In one embodiment, the first identification module is specifically used for:

[0041] Classifying the feature matrix through multiple decision trees in the object recognition model to obtain an initial classification result of each decision tree;

[0042] Each of the initial classification results is weighted to obtain a classification result of the vehicle to be identified, and the classification result is used as a target recognition result of the vehicle to be identified.

[0043] In one embodiment, the first identification module is specifically used for:

[0044] Inputting the feature matrix into multiple decision trees for classification processing, and determining the leaf node corresponding to the feature matrix in each decision tree;

[0045] The initial classification result of the decision tree is determined by the prediction results corresponding to each leaf node, and the initial classification results of the multiple decision trees are obtained.

[0046] In one embodiment, the first determining module is specifically configured to:

[0047] If the target recognition result of the vehicle to be identified is the first fault type or the second fault type, the vehicle to be identified is determined as a faulty vehicle.

[0048] In one embodiment, the device further comprises:

[0049] A second acquisition module is used to acquire a feature matrix corresponding to a positive sample set and a feature matrix corresponding to a negative sample set; the feature matrix corresponding to the positive sample set represents features corresponding to positive samples of the first fault type and the second fault type, and the feature matrix corresponding to the negative sample set represents features corresponding to negative samples of the non-fault type;

[0050] A second recognition module is used to perform recognition processing on the feature matrix corresponding to the positive sample and the feature matrix corresponding to the negative sample according to the object recognition model to be trained, so as to obtain a first recognition result for each positive sample and a second recognition result for each negative sample;

[0051] A loss calculation module, used to determine the loss value of the object recognition model to be trained based on the positive sample label corresponding to the positive sample and the first recognition result and the negative sample label corresponding to the negative sample and the second recognition result;

[0052] A training module is used to optimize the loss of the object recognition model to be trained if the loss value does not meet the preset loss condition, and execute the step of identifying and processing the feature matrix corresponding to the positive sample and the feature matrix corresponding to the negative sample according to the object recognition model to be trained until the loss value meets the preset loss condition, thereby obtaining a trained object recognition model.

[0053] In one embodiment, the second acquisition module is specifically used for:

[0054] Obtain a positive sample set and a negative sample set; the positive sample set includes positive sample labels of positive samples carrying positive sample labels, and the negative sample set includes negative samples carrying negative sample labels; the positive sample representation

[0055] The vehicle state features, order features, and location features of each positive sample contained in the positive sample set are concatenated, and the vehicle state features, order features, and location features of each negative sample contained in the negative sample set are concatenated to obtain feature vectors corresponding to each positive sample and feature vectors corresponding to each negative sample, respectively;

[0056] Based on the feature vectors corresponding to the positive samples and the feature vectors corresponding to the negative samples, a feature matrix corresponding to the positive sample set and a feature matrix corresponding to the negative sample set are constructed respectively.

[0057] In one embodiment, the device further comprises:

[0058] A calculation module, used to calculate the accuracy, precision, recall and balanced F score of the trained object recognition model according to the first recognition result and the positive sample label, and the second recognition result and the negative sample label, as an evaluation result;

[0059] The second determination module is used to use the trained object recognition model as the trained object recognition model if the evaluation result meets the preset evaluation condition.

[0060] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0061] Acquire vehicle data, and determine a feature matrix of a vehicle to be identified based on the vehicle data;

[0062] The feature matrix is ​​identified based on the trained object recognition model to obtain the target recognition result of the vehicle to be identified; the object recognition model is a machine learning model trained based on a positive sample set and a negative sample set; the target recognition result is used to reflect the vehicle state information of the vehicle to be identified;

[0063] The faulty vehicle is determined based on the vehicle status information reflected by the target recognition result.

[0064] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0065] Acquire vehicle data, and determine a feature matrix of a vehicle to be identified based on the vehicle data;

[0066] The feature matrix is ​​identified based on the trained object recognition model to obtain the target recognition result of the vehicle to be identified; the object recognition model is a machine learning model trained based on a positive sample set and a negative sample set; the target recognition result is used to reflect the vehicle state information of the vehicle to be identified;

[0067] The faulty vehicle is determined based on the vehicle status information reflected by the target recognition result.

[0068] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0069] Acquire vehicle data, and determine a feature matrix of a vehicle to be identified based on the vehicle data;

[0070] The feature matrix is ​​identified based on the trained object recognition model to obtain the target recognition result of the vehicle to be identified; the object recognition model is a machine learning model trained based on a positive sample set and a negative sample set; the target recognition result is used to reflect the vehicle state information of the vehicle to be identified;

[0071] The faulty vehicle is determined based on the vehicle status information reflected by the target recognition result.

[0072] The above-mentioned object recognition method, device, computer equipment and storage medium construct a feature matrix through vehicle data, and recognize the feature matrix according to the trained object recognition model to obtain the target recognition result corresponding to the vehicle to be identified, and determine the faulty vehicle through the target recognition result, which can improve the timeliness and accuracy of identifying the faulty vehicle, thereby improving the efficiency of identifying the target vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Figure 1 A diagram of an application environment of an object recognition method in an embodiment;

[0074] Figure 2 A schematic flow chart of a method for constructing a feature matrix in one embodiment;

[0075] Figure 3 A schematic diagram of a flow chart of a method for determining a target recognition result by an object recognition model in one embodiment;

[0076] Figure 4 A schematic flow chart of a method for determining an initial classification result by an object recognition model in one embodiment;

[0077] Figure 5 A schematic diagram of a flow chart of a method for training an object recognition model in one embodiment;

[0078] Figure 6 A schematic diagram of a flow chart of a method for constructing a feature matrix of training samples in one embodiment;

[0079] Figure 7 is a flow chart of an evaluation method of an object recognition model in one embodiment;

[0080] Figure 8 is a structural block diagram of an object recognition device in one embodiment;

[0081] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0082] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0083] In one embodiment, Figure 1As shown, an object recognition method is provided. This embodiment uses the method applied to a terminal as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0084] Step 102: Acquire vehicle data and determine a feature matrix of the vehicle to be identified based on the vehicle data.

[0085] In an embodiment of the present application, the vehicle data may be the vehicle data of one vehicle to be identified, or the vehicle data of multiple vehicles to be identified. For example, the vehicle data may be the vehicle data of all shared electric motorcycles to be identified in the city, or the vehicle data of shared electric motorcycles in a certain area in the city.

[0086] First, the terminal obtains the vehicle data of the vehicle to be identified, which may include information data of multiple dimensions of each vehicle to be identified, such as vehicle location, historical orders, and vehicle attribute information, etc. Then, the terminal determines a feature matrix containing the state characteristics of each vehicle to be identified based on the information data of multiple dimensions in the vehicle data of each vehicle to be identified.

[0087] Step 104 , performing recognition processing on the feature matrix based on the trained object recognition model to obtain a target recognition result of the vehicle to be recognized.

[0088] Among them, the object recognition model is a machine learning model trained based on a positive sample set and a negative sample set; the target recognition result is used to reflect the vehicle status information of the vehicle to be identified.

[0089] In an embodiment of the present application, the terminal inputs a feature matrix containing status information of each vehicle to be identified into an object recognition model, which may be an XGBoost (eXtreme Gradient Boosting) model. The feature matrix is ​​identified and processed by the XGBoost model, and the XGBoost model may output a label of each vehicle to be identified as a target recognition result.

[0090] Optionally, the terminal may preprocess the feature matrix before inputting it. For example, the terminal may perform preprocessing operations such as data scaling, normalization, or de-meaning on the feature data in the feature matrix to ensure that the range of the feature data in the feature matrix is ​​the same as the range of the feature matrix during object recognition model training, and to improve the performance of the object recognition model.

[0091] Step 106, determining the faulty vehicle based on the vehicle status information reflected by the target recognition result.

[0092] In an embodiment of the present application, the target recognition result may be a label of the vehicle to be identified, and the label may reflect the status information of the vehicle. For example, the label output by the object recognition model may be a visible fault type, a hidden fault type, or a no-fault type. Then, the terminal may determine the vehicle to be identified whose vehicle status information is characterized as a fault state among multiple vehicles to be identified.

[0093] In the above object recognition method, a feature matrix is ​​constructed through vehicle data, and the feature matrix is ​​recognized according to the trained object recognition model to obtain a target recognition result corresponding to the vehicle to be recognized, and the faulty vehicle is determined by the target recognition result, which can improve the timeliness and accuracy of identifying the faulty vehicle, thereby improving the efficiency of identifying the target vehicle.

[0094] In one embodiment, the vehicle data includes vehicle state features, order features, and location features. Before applying the object recognition model to identify the vehicle to be identified, it is necessary to construct a feature matrix representing the state features of the vehicle to be identified, such as Figure 2 As shown, step 102 determines the feature matrix of the vehicle to be identified based on the vehicle data, including:

[0095] Step 202, the vehicle state features, order features and location features of each vehicle to be identified contained in the vehicle data are concatenated to obtain a feature vector of each vehicle to be identified.

[0096] In an embodiment of the present application, vehicle status characteristics include vehicle model, vehicle age, cumulative driving distance, cumulative driving time, and cumulative battery usage time; order characteristics include the number of orders generated within a preset time period and the proportion of short-time orders generated within the preset time period. For example, the preset time period can be the past 1 day, 3 days, and 7 days, and the short-time order can be an order for the vehicle to be identified to be locked within 2 minutes after the vehicle is unlocked; location characteristics include hotspot characteristics, the first maximum value, the first minimum value, and the first average value of the number of vehicles within the preset time period and the preset distance, and the second maximum value, the second minimum value, and the second average value of the number of orders generated within the preset time period and the preset distance, wherein the hotspot feature is whether the location of the vehicle to be identified is a hotspot location, and the hotspot location is determined by the shared electric motorcycle business platform. The terminal can determine whether the vehicle to be identified is in a hotspot location based on the location of the vehicle to be identified, and thereby obtain the hotspot feature.

[0097] For each vehicle to be identified, the terminal concatenates the vehicle status features, order features and location features in the vehicle data. That is, the terminal combines the feature data of each vehicle to be identified by row to obtain a feature vector for each vehicle to be identified, that is, a feature vector containing all the features of the current vehicle to be identified.

[0098] Step 204 : constructing a feature matrix of the vehicles to be identified based on the feature vectors of the vehicles to be identified.

[0099] In an embodiment of the present application, if the number of vehicles to be identified is multiple, the terminal combines the feature vectors of each vehicle to be identified into a feature matrix by row. For example, each column of the feature matrix represents the feature data of the vehicle to be identified, and each row of the feature matrix represents all the feature data of different vehicles.

[0100] In this embodiment, the vehicle data of the vehicle to be identified is feature-concatenated to obtain a feature matrix containing the feature data of the vehicle to be identified, which can meet the requirements of the object recognition model for identification processing, and then the vehicle to be identified can be identified through the object recognition model to obtain the target recognition result of each vehicle to be identified, thereby improving the efficiency of determining the faulty vehicle.

[0101] In one embodiment, Figure 3 As shown, step 104 performs recognition processing on the feature matrix based on the trained object recognition model to obtain the target recognition result of the vehicle to be recognized, including:

[0102] Step 302: classify the feature matrix through multiple decision trees in the object recognition model to obtain an initial classification result of each decision tree.

[0103] In an embodiment of the present application, an XGBoost model is used as an example for explanation of the object recognition model. The XGBoost model includes multiple decision trees, which are basic learners (also called weak classifiers) used to classify vehicles to be identified. After the terminal inputs the feature matrix into the XGBoost model, the feature vectors in the feature matrix are classified through the multiple decision trees of the XGBoost model. For each feature vector, each decision tree outputs an initial classification result.

[0104] Step 304 , weighting each initial classification result to obtain a classification result of the vehicle to be identified, and using the classification result as a target identification result of the vehicle to be identified.

[0105] In the embodiment of the present application, the terminal determines the target recognition result through the initial classification result output by each decision tree. Specifically, each decision tree contains a weight that characterizes the proportion of its output result. After each decision tree outputs the initial classification result, the terminal performs weighted processing on the initial classification result according to the weight of each decision tree to obtain the target recognition result of the vehicle to be identified, that is, the prediction result of the state information of the vehicle to be identified. The objective function of the object recognition model is shown in the following formula:

[0106] (3-1)

[0107] in, represents the predicted output of the object recognition model, The prediction function that characterizes the object recognition model, is a constant term that represents the global bias of the object recognition model, Characterizes the number of decision trees in the object recognition model, Represents the initial classification result of the mth decision tree.

[0108] In this embodiment, the feature matrix containing a large amount of feature data of vehicles to be identified is automatically processed by the object recognition model and recognition processing is performed to obtain a target recognition result for determining the faulty vehicle, which can reduce the cost of identifying the faulty vehicle. At the same time, through integrated learning of multiple decision trees in the object recognition model, the accuracy of the object recognition model in classifying the vehicles to be identified can be improved, thereby improving the efficiency of identifying faulty vehicles.

[0109] In one embodiment, Figure 4 As shown, step 302 classifies the feature matrix through multiple decision trees in the object recognition model to obtain the initial classification results of each decision tree, including:

[0110] Step 402: Input the feature matrix into multiple decision trees for classification processing, and determine the leaf node corresponding to the feature matrix in each decision tree.

[0111] In an embodiment of the present application, each decision tree contains multiple leaf nodes, and the output of the decision tree is obtained by weighting the prediction values ​​of the multiple leaf nodes. The terminal inputs the feature matrix into multiple decision trees respectively, splits the feature matrix through the decision tree, that is, divides the feature matrix, and then distributes it in each leaf node of the decision tree to obtain each leaf node corresponding to the feature matrix and the prediction result of each leaf node, and the prediction result of the leaf node represents the prediction value of a certain dimension of the feature matrix.

[0112] Step 404, determining the initial classification result of the decision tree through the prediction results corresponding to each leaf node, and obtaining the initial classification results of multiple decision trees.

[0113] In an embodiment of the present application, the terminal weights the prediction results corresponding to each leaf node, and determines the weighted prediction results as the initial classification results of the decision tree.

[0114] In this embodiment, the feature matrix is ​​divided by multiple leaf nodes in the decision tree to obtain multi-dimensional prediction results corresponding to the feature matrix, and the initial classification results of the decision tree are determined based on the multi-dimensional prediction results. This can improve the accuracy of determining the initial classification results, and further improve the accuracy of determining the target recognition results of the vehicle to be identified.

[0115] In one embodiment, the target recognition result includes a first fault type, a second fault type, and a non-fault type. Step 106 determines the faulty vehicle according to the vehicle status information reflected by the target recognition result, including:

[0116] Step 1061: If the target recognition result of the vehicle to be identified is the first fault type or the second fault type, the vehicle to be identified is determined as a faulty vehicle.

[0117] In the embodiment of the present application, the first fault type is a visible fault type, which characterizes the fault location and can be directly identified from the external features of the shared electric motorcycle, resulting in the vehicle being unable to ride, for example, damage or even missing of important parts of the vehicle (brakes, handlebars, seat, battery, etc.). The second fault type is a hidden fault type, which characterizes the fault location and is not easy to find from the outside of the shared electric motorcycle. The problem is only discovered when riding after unlocking the vehicle, and it is necessary to stop immediately, thereby generating a short-term order, for example, brake failure, vehicle not moving, etc. Therefore, only when the target identification result of the vehicle to be identified is the first fault type or the second fault type, that is, the hidden fault type or the visible fault type, the terminal determines the vehicle to be identified as a faulty vehicle.

[0118] In this embodiment, the faulty vehicle is determined according to the target recognition result output by the object recognition model, which can improve the timeliness and accuracy of finding the faulty vehicle, and further improve the efficiency of identifying the faulty vehicle among the vehicles to be identified.

[0119] In one embodiment, before applying the object recognition model to identify the faulty vehicle, the object recognition model needs to be trained, such as Figure 5 As shown, before step 102 of acquiring vehicle data, the method further includes:

[0120] Step 502: Obtain a feature matrix corresponding to the positive sample set and a feature matrix corresponding to the negative sample set.

[0121] The feature matrix corresponding to the positive sample set represents the features corresponding to the positive samples of the first fault type and the second fault type, and the feature matrix corresponding to the negative sample set represents the features corresponding to the negative samples of the non-fault type.

[0122] In the embodiment of the present application, the terminal obtains a feature matrix corresponding to the positive sample set and a feature matrix corresponding to the negative samples, so as to train the object recognition model together with the features of the positive samples and the features of the negative samples.

[0123] Step 504 , performing recognition processing on the feature matrix corresponding to the positive sample and the feature matrix corresponding to the negative sample according to the object recognition model to be trained, and obtaining a first recognition result for each positive sample and a second recognition result for each negative sample.

[0124] In an embodiment of the present application, the terminal performs recognition processing on the feature matrix corresponding to the positive sample and the feature matrix corresponding to the negative sample based on the same principles as steps 302 to 304 and steps 402 to 404, respectively, to obtain a first recognition result for each positive sample and a second recognition result for each negative sample. The processing process of the object recognition model is not repeated in this embodiment.

[0125] Step 506 , determining a loss value of the object recognition model to be trained based on the positive sample label corresponding to the positive sample and the first recognition result and the negative sample label corresponding to the negative sample and the second recognition result.

[0126] In the embodiment of the present application, the terminal calculates the loss value of the object recognition model to be trained based on the cross entropy loss function (multi-classification logistic regression objective function) of Softmax (normalized exponential function) for the difference between the positive sample label and the first recognition result corresponding to the positive sample, and the difference between the negative sample label and the second recognition result corresponding to the negative sample. The loss function is as follows:

[0127] (5-1)

[0128] in, is the total number of positive samples and negative samples, For the samples belong to the category The true label (value 0 or 1 or 2), for example, the positive sample label carried by the positive sample or the negative sample label carried by the negative sample; For the The predicted label of a sample, that is, the sample belongs to the category probability; is the total number of categories; is a regularization term used to control the complexity of the object recognition model and avoid overfitting.

[0129] Step 508, if the loss value does not meet the preset loss condition, the object recognition model to be trained is optimized for loss, and the step of performing recognition processing on the feature matrix corresponding to the positive sample and the feature matrix corresponding to the negative sample according to the object recognition model to be trained is executed until the loss value meets the preset loss condition, thereby obtaining a trained object recognition model.

[0130] In an embodiment of the present application, the preset loss condition may be that the loss value of the object recognition model to be trained is less than a preset threshold value. If the loss value does not meet the preset loss condition, the terminal uses an integrated learning method of a gradient boosting tree, for example, by iteratively constructing multiple decision trees, and gradually optimizing the loss function. Specifically, the terminal adjusts the parameters of the object recognition model to be trained according to the difference between positive and negative samples through the feature matrices of positive samples and negative samples and the positive sample labels and negative sample labels. First, the terminal sets the initial model to a default basic learner, for example, using a decision tree with a fixed prediction value (such as an average value). Then, by calculating the gradient and second-order derivative of the current model, and using the gradient and second-order derivative to construct a new decision tree, the prediction result of the new decision tree can better fit the gradient of the current object recognition model, and the prediction result of the new decision tree is weighted and fused with the prediction result of the existing model to obtain the object recognition model after adjusting the parameters.

[0131] The terminal uses the object recognition model after adjusting parameters as a new object recognition model and executes step 504 until the loss value of the new object recognition model meets the preset loss condition, and then uses the current new object recognition model as the trained object recognition model.

[0132] In this embodiment, the object recognition model to be trained is trained through supervised learning based on positive samples and negative samples, and the faulty vehicle is identified based on the trained object recognition model. This can improve the efficiency of identifying the faulty vehicle while also improving the efficiency of identifying the faulty vehicle.

[0133] In one embodiment, Figure 6 As shown, step 502 obtains the feature matrix corresponding to the positive sample set and the feature matrix corresponding to the negative sample set, including:

[0134] Step 602: Obtain a positive sample set and a negative sample set.

[0135] The feature matrix corresponding to the positive sample set represents the features corresponding to the positive samples of the first fault type and the second fault type, and the feature matrix corresponding to the negative sample set represents the features corresponding to the negative samples of the non-fault type.

[0136] In the embodiment of the present application, the terminal can obtain the faulty vehicle reporting data in the last three months, including the fault reporting time, fault reporting location, fault description, historical orders and other vehicle data, take all faulty vehicles as positive samples, and classify the faulty vehicle reporting data according to the fault type in step 1061 to obtain the positive sample label of each positive sample in the positive sample set. At the same time, the terminal obtains the vehicle data of normal riding vehicles in the last three months, including the vehicle location corresponding to different times, historical orders and other information, and randomly selects from the normal riding vehicles to construct positive samples with the same number as the positive samples and carrying positive sample labels.

[0137] Step 604, feature concatenation of the vehicle state features, order features, and location features of each positive sample contained in the positive sample set, and feature concatenation of the vehicle state features, order features, and location features of each negative sample contained in the negative sample set, to obtain feature vectors corresponding to each positive sample and feature vectors corresponding to each negative sample, respectively.

[0138] In the embodiment of the present application, the terminal constructs a feature vector corresponding to each positive sample and a feature vector corresponding to each negative sample for the positive sample set and the negative sample set based on the same principle as step 202. The feature vector construction process is not described in detail in this embodiment.

[0139] Step 606: Based on the feature vectors corresponding to each positive sample and the feature vectors corresponding to each negative sample, a feature matrix corresponding to the positive sample set and a feature matrix corresponding to the negative sample set are constructed respectively.

[0140] In the embodiment of the present application, the terminal constructs a feature matrix corresponding to the positive sample set and a feature matrix corresponding to the negative sample set based on the same principle as step 204, for the feature vectors corresponding to the positive samples and the feature vectors corresponding to the negative samples. The process of constructing the feature matrix is ​​not described in detail in this embodiment.

[0141] In this embodiment, the vehicle data of the positive samples are feature concatenated to obtain a feature matrix containing the feature data of the positive samples, and the vehicle data of the negative samples are feature concatenated to obtain a feature matrix containing the feature data of the negative samples. This allows the object recognition model to be trained through positive samples and negative samples, thereby improving the accuracy of the object recognition model in identifying faults of the vehicle to be identified.

[0142] In one embodiment, after the object recognition model to be trained is trained, the trained object recognition model needs to be evaluated, such as Figure 7 As shown, before step 508 obtains the trained object recognition model, the method further includes:

[0143] Step 702, based on the first recognition result and the positive sample label, and the second recognition result and the negative sample label, calculate the accuracy, precision, recall and balanced F score of the trained object recognition model as an evaluation result.

[0144] In the embodiment of the present application, the terminal uses the first recognition result and positive sample label of the positive sample in the test set, and the second recognition result and negative sample label of the negative sample in the test set as the evaluation result for the accuracy, precision, recall and balanced F score of the trained object recognition model. Specifically, the accuracy rate (Accuracy) represents the ratio of the recognition result to the sample label, that is, the ratio of samples with correct recognition results to the total number of samples; the precision rate (Precision) represents the ratio of sample labels that are the same as the recognition result in a certain recognition result; the recall rate (Recall) represents the ratio of the recognition result to the sample label in all samples of a certain sample label; the balanced F score (F1-score, F1 score) is a comprehensive indicator, and the calculation formula of the balanced F score is as follows:

[0145] (7-1)

[0146] Step 704: If the evaluation result meets the preset evaluation conditions, the trained object recognition model is used as the trained object recognition model.

[0147] In an embodiment of the present application, the preset evaluation conditions may be that the accuracy, precision, recall and balanced F-score all have their corresponding preset thresholds. When the accuracy, precision, recall and balanced F-score of the trained object recognition model all meet the preset thresholds, the trained object recognition model is used as the trained object recognition model.

[0148] In this embodiment, by performing model evaluation on the trained object recognition model to obtain an evaluation result, the trained object recognition model that meets the preset evaluation conditions is used as the trained object recognition model, which can ensure the accuracy of the object recognition model used for faulty vehicle identification, thereby improving the accuracy of faulty vehicle identification.

[0149] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0150] Based on the same inventive concept, the embodiment of the present application also provides an object recognition device for implementing the object recognition method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more object recognition device embodiments provided below can refer to the limitations on the object recognition method above, and will not be repeated here.

[0151] In one embodiment, Figure 8 As shown, an object recognition device 800 is provided, comprising: a first acquisition module 801, a first recognition module 802 and a first determination module 803, wherein:

[0152] The first acquisition module 801 is used to acquire vehicle data and determine a feature matrix of a vehicle to be identified based on the vehicle data;

[0153] The first recognition module 802 is used to perform recognition processing on the feature matrix based on the trained object recognition model to obtain a target recognition result of the vehicle to be recognized; the object recognition model is a machine learning model trained based on a positive sample set and a negative sample set; the target recognition result is used to reflect the vehicle state information of the vehicle to be recognized;

[0154] The first determination module 803 is used to determine the faulty vehicle according to the vehicle status information reflected by the target recognition result;

[0155] In one embodiment, the first acquisition module 801 is specifically used for:

[0156] The vehicle state features, order features and location features of each vehicle to be identified contained in the vehicle data are concatenated to obtain a feature vector of each vehicle to be identified;

[0157] A feature matrix of the vehicle to be identified is constructed based on the feature vectors of each vehicle to be identified.

[0158] In one embodiment, the first identification module 802 is specifically used for:

[0159] The feature matrix is ​​classified by multiple decision trees in the object recognition model to obtain the initial classification result of each decision tree;

[0160] Each initial classification result is weighted to obtain a classification result of the vehicle to be identified, and the classification result is used as a target recognition result of the vehicle to be identified.

[0161] In one embodiment, the first identification module 802 is specifically used for:

[0162] Input the feature matrix into multiple decision trees for classification processing, and determine the leaf node corresponding to the feature matrix in each decision tree;

[0163] The initial classification results of the decision tree are determined by the prediction results corresponding to each leaf node, and the initial classification results of multiple decision trees are obtained.

[0164] In one embodiment, the first determining module 803 is specifically configured to:

[0165] If the target recognition result of the vehicle to be identified is the first fault type or the second fault type, the vehicle to be identified is determined to be a faulty vehicle.

[0166] In one embodiment, the apparatus 800 further includes:

[0167] The second acquisition module is used to obtain a feature matrix corresponding to the positive sample set and a feature matrix corresponding to the negative sample set; the feature matrix corresponding to the positive sample set represents the features corresponding to the positive samples of the first fault type and the second fault type, and the feature matrix corresponding to the negative sample set represents the features corresponding to the negative samples of the non-fault type;

[0168] A second recognition module is used to perform recognition processing on the feature matrix corresponding to the positive sample and the feature matrix corresponding to the negative sample according to the object recognition model to be trained, so as to obtain a first recognition result for each positive sample and a second recognition result for each negative sample;

[0169] A loss calculation module, used to determine a loss value of the object recognition model to be trained based on a positive sample label corresponding to the positive sample and the first recognition result and a negative sample label corresponding to the negative sample and the second recognition result;

[0170] The training module is used to optimize the loss of the object recognition model to be trained if the loss value does not meet the preset loss condition, and execute the steps of identifying and processing the feature matrix corresponding to the positive sample and the feature matrix corresponding to the negative sample according to the object recognition model to be trained until the loss value meets the preset loss condition, thereby obtaining a trained object recognition model.

[0171] In one embodiment, the second acquisition module is specifically used for:

[0172] Get a set of positive samples and a set of negative samples; the positive sample set contains the positive sample labels of positive samples with positive sample labels, and the negative sample set contains negative samples with negative sample labels; positive sample representation

[0173] The vehicle state features, order features, and location features of each positive sample in the positive sample set are concatenated, and the vehicle state features, order features, and location features of each negative sample in the negative sample set are concatenated to obtain a feature vector corresponding to each positive sample and a feature vector corresponding to each negative sample;

[0174] Based on the feature vector corresponding to each positive sample and the feature vector corresponding to each negative sample, a feature matrix corresponding to the positive sample set and a feature matrix corresponding to the negative sample set are constructed respectively.

[0175] In one embodiment, the apparatus 800 further includes:

[0176] A calculation module, used to calculate the accuracy, precision, recall and balanced F score of the trained object recognition model according to the first recognition result and the positive sample label, and the second recognition result and the negative sample label, as an evaluation result;

[0177] The second determination module is used to use the trained object recognition model as the trained object recognition model if the evaluation result meets the preset evaluation conditions.

[0178] Each module in the above object recognition device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0179] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store vehicle data, a positive sample set and a negative sample set. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an object recognition method is implemented.

[0180] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0181] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0182] Acquire vehicle data, and determine a feature matrix of a vehicle to be identified based on the vehicle data;

[0183] Based on the trained object recognition model, the feature matrix is ​​recognized and processed to obtain the target recognition result of the vehicle to be recognized; the object recognition model is a machine learning model trained based on a positive sample set and a negative sample set; the target recognition result is used to reflect the vehicle status information of the vehicle to be recognized;

[0184] The faulty vehicle is determined based on the vehicle status information reflected by the target recognition result.

[0185] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0186] The vehicle state features, order features and location features of each vehicle to be identified contained in the vehicle data are concatenated to obtain a feature vector of each vehicle to be identified;

[0187] A feature matrix of the vehicle to be identified is constructed based on the feature vectors of each vehicle to be identified.

[0188] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0189] The feature matrix is ​​classified by multiple decision trees in the object recognition model to obtain the initial classification result of each decision tree;

[0190] Each initial classification result is weighted to obtain a classification result of the vehicle to be identified, and the classification result is used as a target recognition result of the vehicle to be identified.

[0191] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0192] Input the feature matrix into multiple decision trees for classification processing, and determine the leaf node corresponding to the feature matrix in each decision tree;

[0193] The initial classification results of the decision tree are determined by the prediction results corresponding to each leaf node, and the initial classification results of multiple decision trees are obtained.

[0194] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0195] If the target recognition result of the vehicle to be identified is the first fault type or the second fault type, the vehicle to be identified is determined to be a faulty vehicle.

[0196] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0197] Obtain a feature matrix corresponding to the positive sample set and a feature matrix corresponding to the negative sample set; the feature matrix corresponding to the positive sample set represents features corresponding to the positive samples of the first fault type and the second fault type, and the feature matrix corresponding to the negative sample set represents features corresponding to the negative samples of the non-fault type;

[0198] Performing recognition processing on the feature matrix corresponding to the positive sample and the feature matrix corresponding to the negative sample according to the object recognition model to be trained, to obtain a first recognition result for each positive sample and a second recognition result for each negative sample;

[0199] Determine a loss value of the object recognition model to be trained based on the positive sample label corresponding to the positive sample and the first recognition result and the negative sample label corresponding to the negative sample and the second recognition result;

[0200] If the loss value does not meet the preset loss condition, the loss optimization is performed on the object recognition model to be trained, and the steps of identifying and processing the feature matrix corresponding to the positive sample and the feature matrix corresponding to the negative sample are executed according to the object recognition model to be trained until the loss value meets the preset loss condition, thereby obtaining the trained object recognition model.

[0201] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0202] Get a set of positive samples and a set of negative samples; the positive sample set contains the positive sample labels of positive samples with positive sample labels, and the negative sample set contains negative samples with negative sample labels; positive sample representation

[0203] The vehicle state features, order features, and location features of each positive sample in the positive sample set are concatenated, and the vehicle state features, order features, and location features of each negative sample in the negative sample set are concatenated to obtain a feature vector corresponding to each positive sample and a feature vector corresponding to each negative sample;

[0204] Based on the feature vector corresponding to each positive sample and the feature vector corresponding to each negative sample, a feature matrix corresponding to the positive sample set and a feature matrix corresponding to the negative sample set are constructed respectively.

[0205] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0206] According to the first recognition result and the positive sample label, and the second recognition result and the negative sample label, calculate the accuracy, precision, recall and balanced F score of the trained object recognition model as an evaluation result;

[0207] If the evaluation result meets the preset evaluation conditions, the trained object recognition model is used as the trained object recognition model.

[0208] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0209] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0210] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0211] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0212] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0213] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An object recognition method, characterized in that: The method comprises: Acquire vehicle data, and determine a feature matrix of a vehicle to be identified based on the vehicle data; each row of the feature matrix represents all feature data of different vehicles; the vehicle data includes information data of multiple vehicles to be identified; The feature matrix is ​​identified based on the trained object recognition model to obtain the target recognition result of the vehicle to be identified; the object recognition model is a machine learning model trained based on a positive sample set and a negative sample set; the target recognition result is used to reflect the vehicle state information of the vehicle to be identified; Determine the faulty vehicle according to the vehicle status information reflected by the target recognition result; the target recognition result includes a visible fault type and a hidden fault type; The vehicle data includes vehicle status features, order features and location features. The vehicle status features include vehicle model, vehicle age, cumulative driving distance, cumulative driving time, and cumulative battery usage time. The feature matrix of the vehicle to be identified is determined based on the vehicle data, including: The vehicle state features, order features and location features of each to-be-identified vehicle contained in the vehicle data are concatenated to obtain a feature vector of each to-be-identified vehicle; the order features include the number of orders generated within a preset time period and the proportion of short-term orders generated within the preset time period; the location features include hotspot features, the first maximum value, the first minimum value and the first average value of the number of vehicles within the preset time period and the preset distance, and the second maximum value, the second minimum value and the second average value of the number of orders generated within the preset time period and the preset distance; the hotspot feature is whether the location of the to-be-identified vehicle is a hotspot location; Constructing a feature matrix of the vehicle to be identified based on the feature vectors of each of the vehicles to be identified; The objective function of the object recognition model is shown in the following formula: in, represents the predicted output of the object recognition model, f(x) represents the prediction function of the object recognition model, ω0 is a constant term, representing the global bias of the object recognition model, M represents the number of decision trees in the object recognition model, and f m (x) represents the initial classification result of the mth decision tree.

2. The method according to claim 1, characterized in that The identifying process of the feature matrix based on the trained object recognition model to obtain the target recognition result of the vehicle to be identified includes: Classifying the feature matrix through multiple decision trees in the object recognition model to obtain an initial classification result of each decision tree; Each of the initial classification results is weighted to obtain a classification result of the vehicle to be identified, and the classification result is used as a target recognition result of the vehicle to be identified.

3. The method according to claim 2, characterized in that The classifying process of the feature matrix by using a plurality of decision trees in the object recognition model to obtain an initial classification result of each decision tree includes: Inputting the feature matrix into multiple decision trees for classification processing, and determining the leaf node corresponding to the feature matrix in each decision tree; The initial classification result of the decision tree is determined by the prediction results corresponding to each leaf node, and the initial classification results of the multiple decision trees are obtained.

4. The method according to claim 1, characterized in that The target identification result includes a first fault type, a second fault type and a no-fault type; The determining of the faulty vehicle according to the vehicle status information reflected by the target recognition result includes: If the target recognition result of the vehicle to be identified is the first fault type or the second fault type, the vehicle to be identified is determined to be a faulty vehicle.

5. The method according to claim 1, characterized in that: Before obtaining the vehicle data, the method further includes: Obtain a feature matrix corresponding to a positive sample set and a feature matrix corresponding to a negative sample set; the feature matrix corresponding to the positive sample set represents features corresponding to positive samples of a first fault type and a second fault type, and the feature matrix corresponding to the negative sample set represents features corresponding to negative samples of a non-fault type; Performing recognition processing on the feature matrix corresponding to the positive sample and the feature matrix corresponding to the negative sample according to the object recognition model to be trained, so as to obtain a first recognition result for each positive sample and a second recognition result for each negative sample; Determine a loss value of the object recognition model to be trained based on a positive sample label corresponding to the positive sample and the first recognition result and a negative sample label corresponding to the negative sample and the second recognition result; If the loss value does not meet the preset loss condition, the object recognition model to be trained is optimized for loss, and the step of identifying and processing the feature matrix corresponding to the positive sample and the feature matrix corresponding to the negative sample according to the object recognition model to be trained is executed until the loss value meets the preset loss condition, thereby obtaining a trained object recognition model.

6. The method according to claim 5, characterized in that The step of obtaining a feature matrix corresponding to the positive sample set and a feature matrix corresponding to the negative sample set includes: Obtain a positive sample set and a negative sample set; the positive sample set includes positive sample labels of positive samples carrying positive sample labels, and the negative sample set includes negative samples carrying negative sample labels; the positive sample representation The vehicle state features, order features, and location features of each positive sample contained in the positive sample set are concatenated, and the vehicle state features, order features, and location features of each negative sample contained in the negative sample set are concatenated to obtain feature vectors corresponding to each positive sample and feature vectors corresponding to each negative sample, respectively; Based on the feature vectors corresponding to the positive samples and the feature vectors corresponding to the negative samples, a feature matrix corresponding to the positive sample set and a feature matrix corresponding to the negative sample set are constructed respectively.

7. The method according to claim 5, characterized in that Before obtaining the trained object recognition model, the method further includes: Calculate the accuracy, precision, recall and balanced F-score of the trained object recognition model according to the first recognition result and the positive sample label, and the second recognition result and the negative sample label as an evaluation result; If the evaluation result meets the preset evaluation condition, the trained object recognition model is used as the trained object recognition model.

8. An object recognition device, characterized in that: The device comprises: A first acquisition module is used to acquire vehicle data and determine a feature matrix of a vehicle to be identified based on the vehicle data; each row of the feature matrix represents all feature data of different vehicles; the vehicle data includes information data of multiple vehicles to be identified; A first recognition module is used to perform recognition processing on the feature matrix based on a trained object recognition model to obtain a target recognition result of the vehicle to be recognized; the object recognition model is a machine learning model trained based on a positive sample set and a negative sample set; the target recognition result is used to reflect the vehicle state information of the vehicle to be recognized; A first determination module is used to determine the faulty vehicle according to the vehicle status information reflected by the target recognition result; the target recognition result includes a visible fault type and a hidden fault type; The vehicle data includes vehicle status features, order features and location features. The vehicle status features include vehicle model, vehicle age, cumulative driving distance, cumulative driving time, and cumulative battery usage time. The first acquisition module is specifically used for: The vehicle state features, order features and location features of each to-be-identified vehicle contained in the vehicle data are concatenated to obtain a feature vector of each to-be-identified vehicle; the order features include the number of orders generated within a preset time period and the proportion of short-term orders generated within the preset time period; the location features include hotspot features, the first maximum value, the first minimum value and the first average value of the number of vehicles within the preset time period and the preset distance, and the second maximum value, the second minimum value and the second average value of the number of orders generated within the preset time period and the preset distance; the hotspot feature is whether the location of the to-be-identified vehicle is a hotspot location; Constructing a feature matrix of the vehicle to be identified based on the feature vectors of each of the vehicles to be identified; The objective function of the object recognition model is shown in the following formula: in, represents the predicted output of the object recognition model, f(x) represents the prediction function of the object recognition model, ω0 is a constant term, representing the global bias of the object recognition model, M represents the number of decision trees in the object recognition model, and f m (x) represents the initial classification result of the mth decision tree.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.