Electric vehicle detection method based on deep learning
Through the electric vehicle detection method based on deep learning, using the improved YOLO v5s model and embedded devices, the problem of poor electric vehicle detection in the existing technology is solved, achieving high accuracy and real-time performance, and adapting to diverse electric vehicles. Improved traffic management and safety levels.
Patent Information
- Application Number
- CN202410606257.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-23
AI Technical Summary
Existing target detection methods are ineffective when faced with complex scenes, diverse target types, and uncertain backgrounds. It is difficult to detect and identify electric vehicles quickly and accurately, affecting the efficiency and accuracy of traffic management, safety, and monitoring.
Adopting an electric vehicle detection method based on deep learning, through self-built data sets and improved YOLO v5s target detection model, using feature extraction layer, detection layer and classification layer, combined with optimization algorithm and loss function, to achieve high accuracy of electric vehicles Detect and identify, and improve real-time performance through embedded devices or hardware platforms.
It achieves high-accuracy detection and identification of electric vehicles, reduces false detection and missed detection rates, improves the accuracy and reliability of detection results, has real-time performance and diversified electric vehicle support capabilities, and improves traffic management and safety levels. .
Smart Images

Figure CN118537536A
Abstract
Description
Technical Field
[0001] The invention discloses a method, which relates to the technical field of image recognition, and specifically is an electric vehicle detection method based on deep learning. Background Art
[0002] The popularity and increased use of electric vehicles has created a need for fast and accurate detection and identification of electric vehicles in traffic management, safety, and monitoring.
[0003] Object detection is an important task in the field of computer vision, which aims to accurately identify and locate objects of interest from images or videos. Existing object detection methods often rely on hand-designed feature extractors and classifiers, which often do not work well when faced with complex scenes, diverse object types, and uncertain backgrounds. Summary of the invention
[0004] In view of the problems of the prior art, the present invention provides an electric vehicle detection method based on deep learning, which can achieve rapid and accurate detection and identification of electric vehicles, so as to improve the efficiency and accuracy of traffic management, safety and monitoring.
[0005] The specific scheme proposed by the present invention is:
[0006] The present invention provides an electric vehicle detection method based on deep learning, comprising:
[0007] Step 1: Build your own electric vehicle detection dataset, including:
[0008] Step 11: Collect electric vehicle image data related to the object detection task,
[0009] Step 12: Label the electric vehicle image data, marking the location and category of each object in the electric vehicle image.
[0010] Step 13: Preprocess the electric vehicle image data to form a data set.
[0011] Step 14: Divide the dataset into training set, validation set and test set;
[0012] Step 2: Build an improved YOLO v5s target detection model and use the training set to train the target detection model. YOLOv5 is selected to build the network structure, which includes feature extraction layer, detection layer and classification layer. An appropriate loss function is defined, and an optimization algorithm is used to update the network parameters. The learning rate scheduling and regularization methods are used to control the learning and generalization capabilities of the network.
[0013] Step 3: Use the test set to test the trained target detection model, where the trained target detection model recognizes the test set data and calculates the precision, recall and F1-score indicators of the target detection model.
[0014] Step 4: Use the precision, recall and F1-score indicators of the target detection model to evaluate the target detection model and adjust the parameters of the target detection model.
[0015] Step 5: Deploy the target detection model and apply it to electric vehicle detection.
[0016] Furthermore, in step 11 of the electric vehicle detection method based on deep learning, electric vehicle image data in different scenarios and perspectives are collected, and the scenarios include urban roads, highways and parking lots. The electric vehicle image data also covers different weather and lighting conditions, as well as images of electric vehicles in motion and stationary states.
[0017] Furthermore, in step 12 of the electric vehicle detection method based on deep learning, a labeling tool is used to define the position of the target using a rectangular bounding box, and a category label is assigned to each bounding box.
[0018] Furthermore, in the electric vehicle detection method based on deep learning, in step 2, the image is input into the network through the feature extraction layer of the network structure, and the size of the feature map is gradually reduced, while the number of channels is increased to extract features of different scales and levels.
[0019] The detection layer of the network structure predicts the location, category and confidence of the target. The detection layer captures targets of different scales and uses anchor boxes or candidate boxes to predict the location and size of the target. The prediction results are filtered by the non-maximum suppression method to eliminate overlapping and redundant detection results.
[0020] The detected electric vehicles are classified by using a fully connected layer or a convolutional layer through the classification layer of the network structure.
[0021] Define the loss function based on bounding box regression loss, object classification loss, and confidence loss, and use stochastic gradient descent or other optimization algorithms to minimize the loss and improve the accuracy of the object detection model.
[0022] Furthermore, in the electric vehicle detection method based on deep learning, an embedded device or hardware platform is selected in step 5, and acceleration technology is used to improve the inference speed and real-time performance of the target detection model, or the target detection model is integrated with other systems according to actual scenario requirements to achieve automated electric vehicle monitoring and analysis.
[0023] The present invention also provides an electric vehicle detection device based on deep learning, including a data set management module, a model training module, a model testing module, a model tuning module and a model deployment module.
[0024] The data set management module builds its own electric vehicle detection data set, including:
[0025] Collect electric vehicle image data related to the object detection task,
[0026] Label the electric vehicle image data, marking the location and category of each target in the electric vehicle image.
[0027] Preprocess the electric vehicle image data to form a data set.
[0028] Divide the dataset into training, validation and test sets;
[0029] The model training module builds a target detection model based on the improved YOLO v5s and uses the training set to train the target detection model. YOLOv5 is selected to build the network structure, which includes feature extraction layer, detection layer and classification layer. The appropriate loss function is defined, and the optimization algorithm is used to update the network parameters. The learning rate scheduling and regularization methods are used to control the learning and generalization capabilities of the network.
[0030] The model testing module uses the test set to test the trained target detection model, in which the trained target detection model recognizes the test set data and calculates the precision, recall and F1-score indicators of the target detection model.
[0031] The model tuning module uses the precision, recall and F1-score indicators of the target detection model to evaluate the target detection model and adjust the parameters of the target detection model.
[0032] The model deployment module deploys the target detection model and applies the target detection model to electric vehicle detection.
[0033] Furthermore, the data set management module in the deep learning-based electric vehicle detection device collects electric vehicle image data in different scenarios and perspectives, including urban roads, highways and parking lots. The electric vehicle image data also covers different weather and lighting conditions, as well as images of electric vehicles in motion and stationary states.
[0034] Furthermore, in the electric vehicle detection device based on deep learning, the data set management module uses a labeling tool to define the location of the target using a rectangular bounding box and assigns a category label to each bounding box.
[0035] Furthermore, the model training module in the electric vehicle detection device based on deep learning inputs the image into the network through the feature extraction layer of the network structure, gradually reduces the size of the feature map, and increases the number of channels to extract features of different scales and levels.
[0036] The detection layer of the network structure predicts the location, category and confidence of the target. The detection layer captures targets of different scales and uses anchor boxes or candidate boxes to predict the location and size of the target. The prediction results are filtered by the non-maximum suppression method to eliminate overlapping and redundant detection results.
[0037] The detected electric vehicles are classified by using a fully connected layer or a convolutional layer through the classification layer of the network structure.
[0038] Define the loss function based on bounding box regression loss, object classification loss, and confidence loss, and use stochastic gradient descent or other optimization algorithms to minimize the loss and improve the accuracy of the object detection model.
[0039] Furthermore, the model deployment module in the deep learning-based electric vehicle detection device selects an embedded device or hardware platform, uses acceleration technology to improve the inference speed and real-time performance of the target detection model, or integrates the target detection model with other systems according to actual scenario requirements to achieve automated electric vehicle monitoring and analysis.
[0040] The benefits of the present invention are:
[0041] The present invention provides an electric vehicle detection method based on deep learning, which has the following beneficial effects:
[0042] High accuracy: The electric vehicle detection method based on deep learning uses a deep learning algorithm, which can achieve high-accuracy detection and identification of electric vehicles through large-scale training data and network optimization. This can reduce the false detection rate and missed detection rate, and improve the accuracy and reliability of the detection results.
[0043] Real-time performance: The electric vehicle detection method based on deep learning can detect and classify multiple targets through a single forward propagation, with a fast processing speed. This makes the method suitable for real-time scenarios, and can monitor and identify electric vehicles in real time, providing fast response and processing capabilities.
[0044] Diverse electric vehicle support: There are many types of electric vehicles, including different models, colors, and sizes. The electric vehicle detection method based on deep learning can adapt to electric vehicles of different types and scenarios, has strong generalization ability, and can effectively detect and identify various types of electric vehicles.
[0045] Improve traffic management and safety: The electric vehicle detection method based on deep learning can provide accurate data support for traffic management departments, helping them to better monitor and manage traffic flow and optimize traffic planning. At the same time, through real-time detection and identification of electric vehicles, timely warning and warning of violations can be provided, thus improving traffic safety.
[0046] In general, the electric vehicle detection method in this paper has significant benefits in improving accuracy, optimizing real-time performance, adapting to diverse electric vehicles, and improving traffic management and safety. This method is expected to be widely used in the transportation field and provide an effective solution for electric vehicle detection and identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a schematic flow chart of the method of the present invention. DETAILED DESCRIPTION
[0048] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0049] The present invention provides an electric vehicle detection method based on deep learning, comprising:
[0050] Step 1: Build your own electric vehicle detection dataset, including:
[0051] Step 11: Collect electric vehicle image data related to the object detection task,
[0052] Step 12: Label the electric vehicle image data, marking the location and category of each object in the electric vehicle image.
[0053] Step 13: Preprocess the electric vehicle image data to form a data set.
[0054] Step 14: Divide the dataset into training set, validation set and test set;
[0055] Step 2: Build an improved YOLO v5s target detection model and use the training set to train the target detection model. YOLOv5 is selected to build the network structure, which includes feature extraction layer, detection layer and classification layer. An appropriate loss function is defined, and an optimization algorithm is used to update the network parameters. The learning rate scheduling and regularization methods are used to control the learning and generalization capabilities of the network.
[0056] Step 3: Use the test set to test the trained target detection model, where the trained target detection model recognizes the test set data and calculates the precision, recall and F1-score indicators of the target detection model.
[0057] Step 4: Use the precision, recall and F1-score indicators of the target detection model to evaluate the target detection model and adjust the parameters of the target detection model.
[0058] Step 5: Deploy the target detection model and apply it to electric vehicle detection.
[0059] The method of the present invention aims to realize automatic recognition and classification of electric vehicles. Based on the deep learning algorithm, accurate detection and recognition of electric vehicles are realized by training the neural network model. First, an image data set containing electric vehicles is collected, and the deep learning model is trained and optimized using the data set. Secondly, by inputting the image to be detected, the trained model is used for target detection and classification. Finally, the electric vehicle is recognized and distinguished based on the detection results. The method has high accuracy and real-time performance, and has good adaptability to electric vehicles of different types and scenarios.
[0060] The main application scenario is the identification of electric vehicles in residential elevators to prevent electric vehicles from going upstairs and posing safety hazards. In addition, this method can also be applied to traffic monitoring, intelligent street light control, and unmanned driving to improve traffic management and safety levels.
[0061] The electric vehicle detection method based on deep learning of the present invention can realize intelligent identification and classification of electric vehicles, providing strong support and guarantee for traffic management and safety.
[0062] In some embodiments of the method of the present invention, the process may be as follows:
[0063] Step 1: Build your own electric vehicle detection dataset, including:
[0064] Step 11: Collect electric vehicle image data related to the target detection task. Further, electric vehicle image data in different scenes and perspectives can be collected, including scenes such as urban roads, highways, and parking lots. The electric vehicle image data also covers different weather and lighting conditions, as well as images of electric vehicles in motion and at rest.
[0065] Step 12: Label the electric vehicle image data, wherein the location and category of each object in the electric vehicle image are labeled. The labeling tool can be further used to define the location of the object using a rectangular bounding box, and a category label is assigned to each bounding box. Various labeling tools such as LabelImg, VGG Image Annotator (VIA), etc. assign a category label to each bounding box.
[0066] Step 13: Preprocess the electric vehicle image data to form a data set. The preprocessing steps may include image resizing, normalization, data amplification, etc. These preprocessing steps help improve the robustness and generalization ability of the model.
[0067] Step 14: Divide the dataset into training set, validation set and test set. The training set is used for model training, the validation set is used for model tuning and parameter selection, and the test set is used to evaluate the performance of the model.
[0068] You can also perform class balancing: ensure that the number of samples in each class in the data set is relatively balanced. If the number of samples in a certain class is small, you can perform data augmentation or use other methods to balance the classes to avoid overfitting or underfitting the model for certain classes.
[0069] And balanced data distribution: For some special cases, such as the uneven distribution of the position or scale of the target in the image, you can consider using data sampling methods to balance the data distribution. Check and clean the data set: Check whether there are wrong annotations, duplicate data, low-quality images, etc. in the data set. Cleaning the data set can avoid misleading model training and evaluation.
[0070] Step 2: Build an improved YOLO v5s target detection model and use the training set to train the target detection model. YOLOv5 is selected to build the network structure, which includes feature extraction layer, detection layer and classification layer. An appropriate loss function is defined, and an optimization algorithm is used to update the network parameters. Learning rate scheduling and regularization methods such as dropout are used to control the learning and generalization capabilities of the network. During training, batch training technology can be used, that is, multiple samples are input for training at one time to improve training efficiency and model convergence speed.
[0071] YOLOv5 is selected and modified and improved as needed. Hyperparameters such as network depth, width, and number of channels can be adjusted to balance the accuracy and computational efficiency of the model. In addition, different pre-trained models in the backbone network, such as DarkNet53, ResNet, etc., can be used as the basis for the feature extraction layer.
[0072] Feature extraction layer in the network structure: You can use a pre-trained model to load weights, or train the network from scratch. In the feature extraction stage, a common method is to input the image into the network and gradually reduce the size of the feature map while increasing the number of channels. This allows the extraction of features of different scales and levels for detecting and identifying electric vehicles.
[0073] Detection layer in the network structure: In YOLO, the detection layer is responsible for predicting the location, category, and confidence of the target. In order to capture targets of different scales, multiple feature layers can be introduced into the network, and anchor boxes or candidate boxes can be used to predict the location and size of the target. These prediction results will be filtered through techniques such as non-maximum suppression (NMS) to eliminate overlapping and redundant detection results.
[0074] Classification layer in the network structure: In the classification layer, you can use a fully connected layer or a convolutional layer to classify the detected electric vehicles. It is recommended to add additional network layers in the classifier, such as pooling layers, batch normalization layers, etc., to enhance the network's ability to distinguish electric vehicle features.
[0075] Loss function and optimization algorithm in network structure: In order to train the network model, it is necessary to define an appropriate loss function and use an optimization algorithm to update the network parameters. For the YOLO detection task, commonly used loss functions include bounding box regression loss (such as square loss function), target classification loss (such as cross entropy loss function) and confidence loss (such as logistic loss function). By combining these loss functions and using stochastic gradient descent (SGD) or other optimization algorithms, the loss can be minimized and the accuracy of the model can be improved.
[0076] Step 3: Use the test set to test the trained target detection model, where the trained target detection model recognizes the test set data and calculates the precision, recall and F1-score indicators of the target detection model.
[0077] Step 4: Use the precision, recall, and F1-score indicators of the target detection model to evaluate the target detection model and adjust the parameters of the target detection model.
[0078] Step 5: Deploy the target detection model and apply it to electric vehicle detection.
[0079] Among them, you can further select embedded devices, servers or hardware platforms, and use acceleration technologies such as GPU, FPGA, etc. to improve the inference speed and real-time performance of the target detection model, or integrate the target detection model with other systems according to actual scenario requirements to achieve automated electric vehicle monitoring and analysis.
[0080] The above-mentioned embodiments of the method of the present invention can be further applied to traffic management to improve the level of traffic safety: by timely discovering violations (such as not wearing a helmet, running a red light, etc.), providing real-time early warnings and warnings, and prompting electric vehicle riders to abide by traffic rules, reduce the occurrence of traffic accidents, and improve the level of traffic safety.
[0081] Improve traffic management efficiency: By detecting and identifying electric vehicles in real time, it can effectively monitor traffic flow and conditions, provide accurate data support, and help traffic management departments make scientific and reasonable decisions and plans.
[0082] Strengthen traffic monitoring capabilities: Through automated electric vehicle detection methods, it is possible to achieve all-weather, all-time monitoring of a large area, effectively monitor the areas and sections where electric vehicles travel, and help the monitoring center to promptly detect abnormal situations and handle emergencies.
[0083] The present invention also provides an electric vehicle detection device based on deep learning, including a data set management module, a model training module, a model testing module, a model tuning module and a model deployment module.
[0084] The data set management module builds its own electric vehicle detection data set, including:
[0085] Collect electric vehicle image data related to the object detection task,
[0086] Label the electric vehicle image data, marking the location and category of each target in the electric vehicle image.
[0087] Preprocess the electric vehicle image data to form a data set.
[0088] Divide the dataset into training, validation and test sets;
[0089] The model training module builds a target detection model based on the improved YOLO v5s and uses the training set to train the target detection model. YOLOv5 is selected to build the network structure, which includes feature extraction layer, detection layer and classification layer. The appropriate loss function is defined, and the optimization algorithm is used to update the network parameters. The learning rate scheduling and regularization methods are used to control the learning and generalization capabilities of the network.
[0090] The model testing module uses the test set to test the trained target detection model, in which the trained target detection model recognizes the test set data and calculates the precision, recall and F1-score indicators of the target detection model.
[0091] The model tuning module uses the precision, recall and F1-score indicators of the target detection model to evaluate the target detection model and adjust the parameters of the target detection model.
[0092] The model deployment module deploys the target detection model and applies the target detection model to electric vehicle detection.
[0093] As the information interaction, execution process and other contents between the modules in the above-mentioned device are based on the same concept as the embodiment of the method of the present invention, the specific contents can be found in the description of the embodiment of the method of the present invention and will not be repeated here.
[0094] Likewise, the device of the present invention has the following beneficial effects:
[0095] High accuracy: The electric vehicle detection method based on deep learning uses a deep learning algorithm, which can achieve high-accuracy detection and identification of electric vehicles through large-scale training data and network optimization. This can reduce the false detection rate and missed detection rate, and improve the accuracy and reliability of the detection results.
[0096] Real-time performance: The electric vehicle detection method based on deep learning can detect and classify multiple targets through a single forward propagation, with a fast processing speed. This makes the method suitable for real-time scenarios, and can monitor and identify electric vehicles in real time, providing fast response and processing capabilities.
[0097] Diverse electric vehicle support: There are many types of electric vehicles, including different models, colors, and sizes. The electric vehicle detection method based on deep learning can adapt to electric vehicles of different types and scenarios, has strong generalization ability, and can effectively detect and identify various types of electric vehicles.
[0098] Improve traffic management and safety: The electric vehicle detection method based on deep learning can provide accurate data support for traffic management departments, helping them to better monitor and manage traffic flow and optimize traffic planning. At the same time, through real-time detection and identification of electric vehicles, timely warning and warning of violations can be provided, thus improving traffic safety.
[0099] It should be noted that not all steps and modules in the above-mentioned processes and system structures are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.
[0100] The above-described embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art based on the present invention are within the protection scope of the present invention. The protection scope of the present invention shall be subject to the claims.
Claims
1. A method for detecting electric vehicles based on deep learning, characterized in that include: Step 1: Build your own electric vehicle detection dataset, including: Step 11: Collect electric vehicle image data related to the object detection task, Step 12: Label the electric vehicle image data, marking the location and category of each object in the electric vehicle image. Step 13: Preprocess the electric vehicle image data to form a data set. Step 14: Divide the dataset into training set, validation set and test set; Step 2: Build an improved YOLO v5s target detection model and use the training set to train the target detection model. YOLOv5 is selected to build the network structure, which includes feature extraction layer, detection layer and classification layer. An appropriate loss function is defined, and an optimization algorithm is used to update the network parameters. The learning rate scheduling and regularization methods are used to control the learning and generalization capabilities of the network. Step 3: Use the test set to test the trained target detection model, where the trained target detection model recognizes the test set data and calculates the precision, recall and F1-score indicators of the target detection model. Step 4: Use the precision, recall and F1-score indicators of the target detection model to evaluate the target detection model and adjust the parameters of the target detection model. Step 5: Deploy the target detection model and apply it to electric vehicle detection.
2. According to the electric vehicle detection method based on deep learning according to claim 1, it is characterized by In step 11, electric vehicle image data under different scenes and viewing angles are collected. The scenes include urban roads, highways and parking lots. The electric vehicle image data also covers images of electric vehicles under different weather and lighting conditions, as well as images of electric vehicles in motion and at rest.
3. The electric vehicle detection method based on deep learning according to claim 1 or 2, characterized in that In step 12, a labeling tool is used to define the location of the target using a rectangular bounding box, and a category label is assigned to each bounding box.
4. The electric vehicle detection method based on deep learning according to claim 1 is characterized in that In step 2, the image is input into the network through the feature extraction layer of the network structure, and the size of the feature map is gradually reduced, while the number of channels is increased to extract features of different scales and levels. The detection layer of the network structure predicts the location, category and confidence of the target. The detection layer captures targets of different scales and uses anchor boxes or candidate boxes to predict the location and size of the target. The prediction results are filtered by the non-maximum suppression method to eliminate overlapping and redundant detection results. The detected electric vehicles are classified by using a fully connected layer or a convolutional layer through the classification layer of the network structure. Define the loss function based on bounding box regression loss, object classification loss, and confidence loss, and use stochastic gradient descent or other optimization algorithms to minimize the loss and improve the accuracy of the object detection model.
5. The electric vehicle detection method based on deep learning according to claim 1 is characterized in that In step 5, select an embedded device or hardware platform and use acceleration technology to improve the inference speed and real-time performance of the target detection model, or integrate the target detection model with other systems according to actual scenario requirements to achieve automated electric vehicle monitoring and analysis.
6. An electric vehicle detection device based on deep learning, characterized in that It includes dataset management module, model training module, model testing module, model tuning module and model deployment module. The data set management module builds its own electric vehicle detection data set, including: Collect electric vehicle image data related to the object detection task, Label the electric vehicle image data, marking the location and category of each target in the electric vehicle image. Preprocess the electric vehicle image data to form a data set. Divide the dataset into training, validation and test sets; The model training module builds a target detection model based on the improved YOLO v5s and uses the training set to train the target detection model. YOLOv5 is selected to build the network structure, which includes feature extraction layer, detection layer and classification layer. The appropriate loss function is defined, and the optimization algorithm is used to update the network parameters. The learning rate scheduling and regularization methods are used to control the learning and generalization capabilities of the network. The model testing module uses the test set to test the trained target detection model, in which the trained target detection model recognizes the test set data and calculates the precision, recall and F1-score indicators of the target detection model. The model tuning module uses the precision, recall and F1-score indicators of the target detection model to evaluate the target detection model and adjust the parameters of the target detection model. The model deployment module deploys the target detection model and applies the target detection model to electric vehicle detection.
7. The electric vehicle detection device based on deep learning according to claim 6 is characterized in that the data The collection management module collects electric vehicle image data in different scenarios and perspectives, including urban roads, highways and parking lots. The electric vehicle image data also covers different weather and lighting conditions, as well as images of electric vehicles in motion and stationary states.
8. The electric vehicle detection method based on deep learning according to claim 6 or 7, characterized in that the data The set management module uses the annotation tool to define the location of the object using a rectangular bounding box and assigns a category label to each bounding box.
9. The electric vehicle detection method based on deep learning according to claim 6 is characterized in that the model The training module inputs the image into the network through the feature extraction layer of the network structure, gradually reduces the size of the feature map, and increases the number of channels to extract features of different scales and levels. The detection layer of the network structure predicts the location, category and confidence of the target. The detection layer captures targets of different scales and uses anchor boxes or candidate boxes to predict the location and size of the target. The prediction results are filtered by the non-maximum suppression method to eliminate overlapping and redundant detection results. The detected electric vehicles are classified by using a fully connected layer or a convolutional layer through the classification layer of the network structure. Define the loss function based on bounding box regression loss, object classification loss, and confidence loss, and use stochastic gradient descent or other optimization algorithms to minimize the loss and improve the accuracy of the object detection model.
10. The electric vehicle detection device based on deep learning according to claim 6 is characterized in that the model The deployment module selects an embedded device or hardware platform and uses acceleration technology to improve the inference speed and real-time performance of the target detection model, or integrates the target detection model with other systems according to actual scenario requirements to achieve automated electric vehicle monitoring and analysis.
