Perception data processing method, device and storage medium based on scene estimation

Through the perception data processing method based on scene estimation, using multiple pre-trained prediction branch models and selecting appropriate branches for recognition processing based on scene estimation, the problem of data differences caused by changes in the posture and environment of the sensing device is solved, and the perception data is improved. Processing accuracy and adaptability.

CN118536010BActive Publication Date: 2024-10-15ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410996961.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2024-07-12
Filing Date
2024-07-24
Publication Date
2024-10-15
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

Differences in sensing data caused by different deployment postures of sensing devices and changes in environmental information over time seriously affect the accuracy of data analysis.

Method used

Using a perceptual data processing method based on scene estimation, a perceptual data processing model with multiple prediction branches is pre-trained. Each branch matches a different scene category. Scene estimation is performed by obtaining environmental sensing data, determining the target scene category and selecting matching predictions. Branches are used for identification processing to improve the accuracy and adaptability of sensory data processing.

Benefits of technology

By automatically switching to the model structure corresponding to the appropriate scene category, the adaptability and accuracy of the sensory data processing model is improved, and the reliability of data analysis is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536010B_ABST
    Figure CN118536010B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device and storage medium for processing perception data based on scene estimation, which includes: pre-training a perception data processing model, the perception data processing model contains multiple prediction branches, each prediction branch matches a different scene category; acquiring collected environmental perception data; performing scene estimation on the environmental perception data to obtain a target scene category corresponding to the environmental perception data; determining a prediction branch matching the target scene category to obtain a target prediction branch; using the target prediction branch to identify and process the environmental perception data to obtain a data identification result corresponding to the environmental perception data. The prediction branch can be selected according to the target scene category obtained by scene estimation to automatically switch to the model structure corresponding to the enumerated scene category, thereby improving the adaptability and accuracy of the perception data processing model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device and storage medium for perceptual data processing based on scene estimation. Background Art

[0002] Collecting sensory data of the environment, and then analyzing and understanding the environmental information by identifying the collected environmental sensory data. For example, collecting images of a preset area, and performing target detection, target classification, key point detection and other processing on the collected images to analyze whether there is a target object in a preset state in the preset area; for another example, collecting audio of the preset area, and performing voice analysis, noise analysis and other processing on the collected audio to analyze whether there is a preset event in the preset area.

[0003] However, in actual application scenarios, due to the different deployment positions of perception devices and the fact that information in the same environment changes dramatically over time, there are huge differences in the collected perception data, which seriously affects the accuracy of data analysis. Summary of the invention

[0004] In order to solve the above technical problems, the present application at least provides a perception data processing method, device and storage medium based on scene estimation.

[0005] In a first aspect, the present application provides a method for processing perception data based on scene estimation, in which a perception data processing model is pre-trained, and the perception data processing model contains multiple prediction branches, each prediction branch matches a different scene category, and the method comprises: acquiring collected environmental perception data; performing scene estimation on the environmental perception data to obtain a target scene category corresponding to the environmental perception data; determining a prediction branch that matches the target scene category to obtain a target prediction branch; and using the target prediction branch to identify and process the environmental perception data to obtain a data identification result corresponding to the environmental perception data.

[0006] In one embodiment, the target prediction branch is used to identify and process the environmental perception data to obtain a data identification result corresponding to the environmental perception data, including: extracting data features of the environmental perception data to obtain a data feature vector corresponding to the environmental perception data; and identifying and processing the data feature vector corresponding to the environmental perception data using the target prediction branch to obtain a data identification result corresponding to the environmental perception data.

[0007] In one embodiment, the perception data processing model also contains a feature extraction network and a conditional perception network; data features are extracted from the environmental perception data to obtain a data feature vector corresponding to the environmental perception data, including: inputting the environmental perception data into the feature extraction network to obtain a data feature vector corresponding to the environmental perception data output by the feature extraction network; determining a prediction branch that matches the target scene category to obtain a target prediction branch, including: inputting the target scene category and the data feature vector corresponding to the environmental perception data into the conditional perception network, the conditional perception network determines the prediction branch that matches the target scene category to obtain a target prediction branch; using the target prediction branch to identify and process the data feature vector corresponding to the environmental perception data to obtain a data recognition result corresponding to the environmental perception data, including: the conditional perception network inputs the data feature vector corresponding to the environmental perception data into the target prediction branch to obtain a data recognition result corresponding to the environmental perception data output by the target prediction branch.

[0008] In one embodiment, the method also includes: obtaining a set of sample perception data corresponding to each scene category; using the set of sample perception data corresponding to each scene category to train a pre-trained feature extraction network to obtain a trained feature extraction network; freezing the trained feature extraction network, and using the set of sample perception data corresponding to each scene category to independently train each pre-trained prediction branch to obtain multiple trained prediction branches, each trained prediction branch corresponding to each scene category; combining the preset conditional perception network, the trained feature extraction network and the multiple prediction branches to obtain a trained perception data processing model.

[0009] In one embodiment, the perception data processing model also includes a scene estimation network; scene estimation is performed on the environmental perception data to obtain a target scene category corresponding to the environmental perception data, including: inputting a data feature vector corresponding to the environmental perception data into the scene estimation network to obtain a target scene category corresponding to the environmental perception data output by the scene estimation network.

[0010] In one embodiment, the method also includes: obtaining a set of sample perception data corresponding to each scene category, and marking the sample perception data based on the scene category to which the sample perception data in the sample perception data set belongs, to obtain a scene category label corresponding to each sample perception data; reusing a trained feature extraction network to extract a data feature vector corresponding to the sample perception data; inputting the data feature vector corresponding to the sample perception data into a scene estimation network to obtain a predicted scene category of the sample perception data output by the scene estimation network; adjusting the network parameters of the scene estimation network based on the gap between the predicted scene category of the sample perception data and the scene category label to obtain a trained scene estimation network.

[0011] In one embodiment, the method also includes: detecting whether a preset event exists; in response to the existence of a preset event, performing scene estimation on the environmental perception data to obtain a target scene category corresponding to the environmental perception data; determining a prediction branch that matches the target scene category to obtain a new target prediction branch; and using the new target prediction branch to identify and process the environmental perception data to obtain a data identification result corresponding to the environmental perception data.

[0012] In one embodiment, environmental perception data includes an environmental image captured by an image acquisition device; detecting whether a preset event exists includes: acquiring the viewing angle of the image acquisition device corresponding to the current target scene category to obtain a reference viewing angle; detecting the viewing angle difference between the current actual viewing angle of the image acquisition device and the reference viewing angle; if the viewing angle difference is greater than a preset viewing angle difference threshold, determining that a preset event exists; if the viewing angle difference is not greater than the preset viewing angle difference threshold, determining that no preset event exists.

[0013] The second aspect of the present application provides a perception data processing device based on scene estimation, the device comprising: a data acquisition module, used to acquire collected environmental perception data; a scene estimation module, used to perform scene estimation on the environmental perception data, and obtain a target scene category corresponding to the environmental perception data; a branch determination module, used to determine a prediction branch that matches the target scene category, and obtain a target prediction branch; wherein a perception data processing model is pre-trained, the perception data processing model contains multiple prediction branches, each prediction branch matches a different scene category; the data processing module is used to use the target prediction branch to identify and process the environmental perception data, and obtain a data recognition result corresponding to the environmental perception data.

[0014] A third aspect of the present application provides an electronic device, including a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement the above-mentioned perception data processing method based on scene estimation.

[0015] A fourth aspect of the present application provides a computer-readable storage medium having program instructions stored thereon, which implement the above-mentioned scene estimation-based perception data processing method when the program instructions are executed by a processor.

[0016] The above scheme pre-trains prediction branches corresponding to different scene categories; obtains collected environmental perception data; performs scene estimation on the environmental perception data to obtain the target scene category corresponding to the environmental perception data; determines the prediction branch that matches the target scene category to obtain the target prediction branch; uses the target prediction branch to identify and process the environmental perception data to obtain the data recognition result corresponding to the environmental perception data. The prediction branch can be selected according to the target scene category obtained by scene estimation to automatically switch to the model structure corresponding to the enumerated scene category, thereby improving the adaptability and accuracy of the perception data processing model.

[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0019] Figure 1 It is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;

[0020] Figure 2 is a flow chart of a method for processing perception data based on scene estimation, shown in an exemplary embodiment of the present application;

[0021] Figure 3 is a schematic diagram of deployment scenario categories corresponding to cameras shown in an exemplary embodiment of the present application;

[0022] Figure 4 is a schematic diagram of a model architecture of a perception data processing model shown in an exemplary embodiment of the present application;

[0023] Figure 5 is a schematic diagram of a model architecture of a perception data processing model shown in another exemplary embodiment of the present application;

[0024] Figure 6 is a block diagram of a perception data processing device based on scene estimation shown in an exemplary embodiment of the present application;

[0025] Figure 7 is a schematic structural diagram of an electronic device shown in an exemplary embodiment of the present application;

[0026] Figure 8 It is a schematic diagram of the structure of a computer-readable storage medium shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0027] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.

[0028] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.

[0029] The term "and / or" in this article is only an association information describing the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality of, for example, including at least one of A, B, and C, can mean including any one or more elements selected from the set consisting of A, B, and C.

[0030] In actual application scenarios, due to the different deployment positions of perception devices and the fact that information in the same environment changes dramatically over time, there are huge differences in the collected perception data, which seriously affects the accuracy of data analysis.

[0031] Taking the perception device as an image acquisition device as an example, if the image acquisition device is top-mounted in the first preset area, and another image acquisition device of the same model is diagonally mounted in the second preset area, the images captured under the top-mounting and diagonal mounting are quite different. If the same neural network model is used for image analysis, the accuracy of the analysis results cannot be guaranteed; and, for the image acquisition device deployed in the first preset area, the images captured in the first preset area under different weather conditions (such as sunny days, foggy days, and rainy days) are also quite different. If the same neural network model is used for image analysis, the accuracy of the analysis results cannot be guaranteed.

[0032] Based on this, the present application at least provides a perception data processing method, device and storage medium based on scene estimation to improve the accuracy of perception data processing and the scene adaptability of product equipment, and increase the generalization performance of product equipment.

[0033] The following is a description of the perception data processing method based on scene estimation provided in an embodiment of the present application.

[0034] Please refer to Figure 1 , which shows a schematic diagram of a solution implementation environment provided by an embodiment of the present application. The solution implementation environment may include a terminal 110 and a server 120, and the terminal 110 and the server 120 are connected to each other in communication.

[0035] The number of the terminal 110 may be one or more. The terminal 110 may be a camera, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto.

[0036] Server 120 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.

[0037] In one example, the server 120 is deployed with a perception data processing model. The server 120 can de-identify the environmental perception data obtained from the terminal 110 to obtain a data identification result. Of course, the server 120 can store the data identification result locally, transmit it back to the terminal 110, or transmit it to other terminals 110.

[0038] In one example, the terminal 110 is deployed with a perception data processing model, and the server 120 may be a background server corresponding to the terminal 110 , configured to provide background services for the perception data processing model.

[0039] In the perception data processing method based on scene estimation provided in the embodiment of the present application, the execution subject of each step can be the terminal 110, or the server 120, or the terminal 110 and the server 120 can interact and cooperate to execute, that is, part of the steps of the method are executed by the terminal 110 and the other steps are executed by the server 120.

[0040] See also Figure 2 , Figure 2 is a flowchart of a method for processing perception data based on scene estimation, which is shown in an exemplary embodiment of the present application. The method for processing perception data based on scene estimation can be applied to Figure 1 It should be understood that the method can also be applied to other exemplary implementation environments and be specifically executed by devices in other implementation environments, and this embodiment does not limit the implementation environment to which the method is applicable.

[0041] like Figure 2 As shown, the method for processing perception data based on scene estimation includes at least steps S210 to S240, which are described in detail as follows:

[0042] Step S210: Acquire the collected environmental perception data.

[0043] Among them, environmental perception data includes but is not limited to image data, audio data, point cloud data, etc. This application does not limit the data type of environmental perception data.

[0044] For example, the sensing device may collect data from a preset data collection area and feed the collected environmental sensing data back to the server; or the server may obtain pre-stored environmental sensing data from a memory.

[0045] Taking the perception device as a camera as an example, a camera is deployed for a preset data collection area. The camera performs image and / or audio collection on the preset data collection area, and the collected image data and / or audio data is used as environmental perception data. Then, the camera sends the environmental perception data to the server.

[0046] Step S220: performing scene estimation on the environmental perception data to obtain a target scene category corresponding to the environmental perception data.

[0047] Scenario categories can include deployment scenario categories for sensing devices, for example, see Figure 3 , Figure 3 This is a schematic diagram of deployment scenario categories corresponding to cameras shown in an exemplary embodiment of the present application, such as Figure 3 As shown, the camera has at least two deployment scenario categories: top-mounted and tilt-mounted; the scenario category can also include the current environmental scenario category of the preset data collection area, for example, day, night, spring, summer, autumn, winter, etc. from the time perspective, and sunny, rainy, foggy, etc. from the weather perspective.

[0048] The scene is estimated through environmental perception data to obtain the target scene category.

[0049] For example, a pre-trained scene estimation model may be used to input environmental perception data into the scene estimation model for scene estimation, and the target scene category may be output by the scene estimation model. Alternatively, the perception data processing model may contain a scene estimation network, and the environmental perception data may be input into the scene estimation network of the perception data processing model for scene estimation, and the target scene category may be output by the scene estimation network. Alternatively, the brightness of an image in the environmental perception data may be obtained, and the brightness of the image may be compared with the preset brightness to obtain the target scene category.

[0050] Of course, in addition to performing scene estimation based on environmental perception data, other parameters can be further referenced for comprehensive scene estimation, such as the longitude and latitude of the deployment location of the perception device, the historical movement records of the perception device, etc., to improve the accuracy of scene estimation.

[0051] Step S230: Determine a prediction branch that matches the target scene category to obtain a target prediction branch.

[0052] The pre-trained perception data processing model of the present application contains multiple prediction branches, each prediction branch matches a different scene category.

[0053] According to the currently identified target scene category, a prediction branch matching the target scene category is determined, and the matching prediction branch is used as the target prediction branch.

[0054] For example, taking the perception device as a camera, the camera includes two deployment scenario categories: top-mounted and obliquely mounted. The pre-trained perception data processing model contains a first prediction branch and a second prediction branch. The first prediction branch corresponds to the deployment scenario category of top-mounted, and the second prediction branch corresponds to the deployment scenario category of obliquely mounted. If the current target scenario category is detected to be top-mounted, the first prediction branch is used as the target prediction branch. If the current target scenario category is detected to be obliquely mounted, the second prediction branch is used as the target prediction branch.

[0055] Step S240: Use the target prediction branch to perform recognition processing on the environmental perception data to obtain a data recognition result corresponding to the environmental perception data.

[0056] Among them, the prediction branch may contain a decoding network of the perception data processing model to decode and map the network output obtained by the previous network structure to the probability of each classification, and use the final classification probability as the data recognition result corresponding to the environmental perception data; the prediction branch may contain an attention network of the perception data processing model, and the attention network is implemented based on the attention mechanism to analyze the importance of each data unit in the environmental perception data, that is, the attention network outputs the weight of each data unit in the environmental perception data, so as to input the weight of each data unit in the environmental perception data into the subsequent network to perform subsequent processing (such as feature extraction processing, decoding processing), and finally obtain the data recognition result corresponding to the environmental perception data.

[0057] It should be noted that the specific network structure contained in the prediction branch can be flexibly selected according to actual conditions, and this application does not limit this.

[0058] In addition, in addition to the prediction branches corresponding to multiple different scene categories, the perception data processing model also contains network parameters shared by each prediction branch, such as multiple prediction branches sharing the same feature encoding network, or multiple prediction branches sharing part of the network parameters of the feature encoding network, etc., to reduce the amount of model parameters of the perception data processing model.

[0059] That is, after obtaining the network parameters corresponding to the target prediction branch that matches the target scene category, the environmental perception data is identified and processed in combination with the network parameters shared by each prediction branch to obtain the data recognition result corresponding to the environmental perception data.

[0060] Among them, the recognition processing includes but is not limited to target detection, image retrieval, speech recognition and other processing, which is not limited in this application.

[0061] The scene estimation-based perception data processing method of the present application, by pre-training prediction branches corresponding to different scene categories, can select prediction branches through scene estimation to automatically switch to the model structure corresponding to the enumerated scene category, thereby improving the adaptability and accuracy of the perception data processing model.

[0062] Next, some embodiments of the present application are described in detail.

[0063] In some embodiments, the perception data processing method based on scene estimation also includes detecting whether a preset event exists; in response to the existence of a preset event, performing scene estimation on the environmental perception data to obtain a target scene category corresponding to the environmental perception data; determining a prediction branch that matches the target scene category to obtain a new target prediction branch; and using the new target prediction branch to identify and process the environmental perception data to obtain a data identification result corresponding to the environmental perception data.

[0064] For example, it may be detected whether the perception data collection device is initialized. If the perception data collection device is initialized, it is determined that a preset event exists; otherwise, it is determined that no preset event exists.

[0065] For another example, the time interval between the current time and the time when the target prediction branch was most recently determined may be calculated to detect whether the time interval is greater than a preset interval threshold. If so, it is determined that a preset event exists; otherwise, it is determined that no preset event exists.

[0066] For another example, it may be to detect whether the sensing data acquisition device has motion (such as detecting whether a motion signal is received). If there is motion, it is determined that a preset event has occurred; otherwise, it is determined that no preset event has occurred.

[0067] Exemplarily, the environmental perception data includes an environmental image acquired by an image acquisition device; detecting whether a preset event exists includes: acquiring the viewing angle of the image acquisition device corresponding to the current target scene category to obtain a reference viewing angle; detecting the viewing angle difference between the current actual viewing angle of the image acquisition device and the reference viewing angle; if the viewing angle difference is greater than a preset viewing angle difference threshold, determining that a preset event exists; if the viewing angle difference is not greater than the preset viewing angle difference threshold, determining that no preset event exists.

[0068] Among them, the current target scene category refers to the scene category corresponding to the target prediction branch determined most recently, that is, the scene category corresponding to the target prediction branch currently used by the perception data processing model.

[0069] For example, the perspective of the image acquisition device corresponding to the current target scene category can be a preset perspective, such as pre-storing the perspective parameters of the image acquisition device corresponding to each scene category, and obtaining the reference perspective according to the current target scene category query, such as using the image acquisition range corresponding to the image acquisition device under the target scene category as the reference perspective. Then, the image acquisition range of the current image acquisition device is obtained to obtain the current actual perspective of the image acquisition device, and the perspective difference between the actual perspective and the reference perspective is calculated, wherein the overlap rate of the image acquisition range between the reference perspective and the actual perspective is calculated, and the higher the overlap rate, the smaller the perspective difference, and the lower the overlap rate, the larger the perspective difference.

[0070] For another example, after the scene category corresponding to the target prediction branch is determined most recently, a frame of scene image may be captured within a preset time period, and the scene image may be used as the image corresponding to the reference perspective. Then, a frame of scene image may be captured at the current moment to obtain the image corresponding to the current actual perspective, and the image similarity between the image corresponding to the reference perspective and the image corresponding to the actual perspective may be calculated to obtain the perspective difference between the actual perspective and the reference perspective, wherein the higher the image similarity, the smaller the perspective difference, and the lower the image similarity, the larger the perspective difference.

[0071] Furthermore, if the viewing angle difference is greater than the preset viewing angle difference threshold, it is judged that a preset event exists, and steps S220 to S230 are executed to reselect a new target prediction branch to identify and process subsequent environmental perception data according to the new target prediction branch; if the viewing angle difference is not greater than the preset viewing angle difference threshold, it is judged that no preset event exists, and the previously determined target prediction branch continues to be used.

[0072] In some implementations, taking the prediction branch as an output layer corresponding to the perception data processing model as an example, in step S240, the target prediction branch is used to perform recognition processing on the environmental perception data to obtain a data recognition result corresponding to the environmental perception data, including:

[0073] Step S241: extracting data features from the environmental perception data to obtain a data feature vector corresponding to the environmental perception data.

[0074] For example, if the environmental perception data is an image, image features such as color features, texture features, spatial features, and depth features can be extracted from the image to obtain a feature vector corresponding to the image; if the environmental perception data is audio, audio features such as time domain features and frequency domain features can be extracted from the audio to obtain a feature vector corresponding to the audio.

[0075] Step S242: Use the target prediction branch to perform recognition processing on the data feature vector corresponding to the environmental perception data to obtain a data recognition result corresponding to the environmental perception data.

[0076] It should be noted that the role of the target prediction branch is different for different recognition processing tasks. For example, if the recognition processing task is to detect the target object in the image, the target prediction branch is used to output the position and category of the target object in the image as the data recognition result based on the data feature vector; if the recognition processing task is to query the object identification of the object contained in the image, the target prediction branch is used to calculate the similarity between the data feature vector and the data feature vector corresponding to the pre-stored preset object, and output the object identification corresponding to the preset object with the highest similarity as the data recognition result; if the recognition processing task is to convert audio speech into text, the target prediction branch is used to output the text sequence as the data recognition result based on the data feature vector.

[0077] For an example, see Figure 4 , Figure 4 A schematic diagram of the model architecture of a perception data processing model shown in an exemplary embodiment of the present application is shown in FIG. Figure 4 As shown, the perception data processing model contains a feature extraction network, a conditional perception network and k prediction branches, where k is greater than or equal to 2.

[0078] Performing data feature extraction on environmental perception data to obtain a data feature vector corresponding to the environmental perception data, including: inputting the environmental perception data into a feature extraction network to obtain a data feature vector corresponding to the environmental perception data output by the feature extraction network; determining a prediction branch that matches the target scene category to obtain a target prediction branch, including: inputting the target scene category and the data feature vector corresponding to the environmental perception data into a conditional perception network, the conditional perception network determining a prediction branch that matches the target scene category to obtain a target prediction branch; using the target prediction branch to perform recognition processing on the data feature vector corresponding to the environmental perception data to obtain a data recognition result corresponding to the environmental perception data, including: the conditional perception network inputs the data feature vector corresponding to the environmental perception data into the target prediction branch to obtain a data recognition result corresponding to the environmental perception data output by the target prediction branch.

[0079] It should be noted that, in addition to Figure 4 In addition to the model architecture of the perception data processing model shown, the perception data processing model can also be implemented using other model architectures, and other network parameters can be used as prediction branches, which is not limited in this application.

[0080] In some embodiments, see Figure 5 , Figure 5 A schematic diagram of a model architecture of a perception data processing model shown in another exemplary embodiment of the present application is shown in FIG. Figure 5As shown in the figure, the perception data processing model contains a scene estimation network, a feature extraction network, a conditional perception network and k prediction branches. That is, the scene estimation and the subsequent recognition processing of environmental perception data share a feature extraction network, and the data feature vector extracted by the feature extraction network is also used to input into the scene estimation network to obtain the target scene category corresponding to the environmental perception data output by the scene estimation network.

[0081] By sharing the feature extraction network, the computing burden can be reduced and data processing efficiency can be improved.

[0082] Next, the training process of each prediction branch is explained.

[0083] In some embodiments, a sample perception data set corresponding to each scene category is obtained; the shared network parameters in the perception data processing model are trained using the sample perception data set corresponding to each scene category to obtain trained shared network parameters; the trained shared network parameters are frozen, and each pre-trained prediction branch is independently trained using the sample perception data set corresponding to each scene category to obtain multiple trained prediction branches, each trained prediction branch corresponds one-to-one to each scene category; the trained shared network parameters and the multiple prediction branches are combined to obtain a trained perception data processing model.

[0084] For example, Figure 4 Take the model architecture as an example: determine all scene categories that the model needs to adapt to, and obtain the sample perception data sets corresponding to these scene categories; use the sample perception data sets corresponding to each scene category to train the pre-trained feature extraction network to obtain a trained feature extraction network; freeze the trained feature extraction network, and use the sample perception data sets corresponding to each scene category to independently train each pre-trained prediction branch to obtain multiple trained prediction branches, and each trained prediction branch corresponds to each scene category one by one; combine the preset conditional perception network, the trained feature extraction network and multiple prediction branches to obtain a trained perception data processing model.

[0085] Among them, the pre-trained feature extraction network can be an initialized network; it can also be a reused feature extraction network that has been trained. By fine-tuning the feature extraction network, a trained feature extraction network is obtained. For example, if the environmental perception data is an image, the feature extraction network can be built based on the DINOv2 model. After large-scale training, DINOv2 can learn image features with high representation capabilities. These features have good migration performance for various image-related tasks. Of course, the feature extraction network can also choose other network model structures to implement it, and this application does not limit this.

[0086] Freezing the trained feature extraction network means that no parameter adjustment is performed on the feature extraction network during the model training process.

[0087] After freezing the trained feature extraction network, use the sample perception data set corresponding to each scene category to independently train each pre-trained prediction branch to obtain multiple trained prediction branches. For example, input the sample perception data in the sample perception data set corresponding to scene category 1 into the model, and use prediction branch 1 for recognition processing to obtain the actual output result, calculate the difference between the sample label corresponding to the sample perception data and the actual output result, and obtain the training loss. Adjust the network parameters of prediction branch 1 according to the training loss, iterate the above steps until the training loss converges or the number of iterations reaches the preset number, then end the training of prediction branch 1, and obtain the trained prediction branch 1. Similarly, train prediction branch 2 according to the sample perception data set corresponding to scene category 2, and so on, train prediction branch k according to the sample perception data set corresponding to scene category k.

[0088] Among them, the network structure of the prediction branch can be flexibly selected according to the recognition and processing tasks to be performed. For example, for the target detection task, the prediction branch can be constructed based on the yolo detection head model. The yolo detection head model upsamples the data feature vector output by the feature extraction network, and obtains three feature layers according to 1 / 8, 1 / 16, and 1 / 32 times the downsampling of the original input image, and connects three detection heads respectively to detect small targets, medium targets, and large targets.

[0089] After each prediction branch is trained, a trained perception data processing model is obtained based on the preset conditional perception network, the trained feature extraction network and multiple prediction branches.

[0090] Among them, the preset conditional perception network is an information flow processing layer, which is used to input the data feature vector extracted by the feature extraction network into the specified prediction branch based on the preset conditional rules and the input target scene category.

[0091] Further, Figure 5Taking the model architecture of as an example, the training process of the scene estimation network is explained: obtain the sample perception data set corresponding to each scene category, and mark the sample perception data based on the scene category to which the sample perception data in the sample perception data set belongs, and obtain the scene category label corresponding to each sample perception data; reuse the trained feature extraction network to extract the data feature vector corresponding to the sample perception data; input the data feature vector corresponding to the sample perception data into the scene estimation network to obtain the predicted scene category of the sample perception data output by the scene estimation network; adjust the network parameters of the scene estimation network based on the gap between the predicted scene category of the sample perception data and the scene category label to obtain the trained scene estimation network.

[0092] In the process of training the scene estimation network, in order to ensure the accuracy of the training, it is necessary to ensure that the difference in the number of samples between the sample perception data sets corresponding to each scene category is less than a preset difference.

[0093] In some embodiments, a comprehensive prediction branch can also be constructed. The comprehensive prediction branch is obtained by training with the sample perception data set corresponding to each scene category. It can be adapted to each scene category, but its data recognition accuracy may be lower than the prediction branch corresponding to a single scene category. When processing perception data, the comprehensive prediction branch and the determined target prediction branch can be used to identify and process the environmental perception data, obtain the recognition result corresponding to the comprehensive prediction branch, and obtain the recognition result corresponding to the target prediction branch. The difference between the recognition result corresponding to the comprehensive prediction branch and the recognition result corresponding to the target prediction branch is detected. If the difference is greater than the threshold, it is considered that the recognition result corresponding to the target prediction branch has a low credibility, and there may be a scene estimation error. The current recognition result can be discarded and the next cycle of recognition can be performed, or the recognition result corresponding to the comprehensive prediction branch can be used as the final data recognition result, and the target prediction branch can be re-selected; if the difference is not greater than the threshold, it is considered that the recognition result corresponding to the target prediction branch has a high credibility, and the recognition result corresponding to the target prediction branch is directly used as the final data recognition result.

[0094] By integrating the prediction branches, we can effectively identify the situations where the scene estimation is wrong, and avoid reducing the recognition accuracy of the environmental perception data due to the wrong prediction branch selection.

[0095] The scene estimation-based perception data processing method provided in the present application is achieved by pre-training prediction branches corresponding to different scene categories; acquiring collected environmental perception data; performing scene estimation on the environmental perception data to obtain a target scene category corresponding to the environmental perception data; determining a prediction branch that matches the target scene category to obtain a target prediction branch; using the target prediction branch to identify and process the environmental perception data to obtain a data identification result corresponding to the environmental perception data, and the prediction branch can be selected according to the target scene category obtained by scene estimation to automatically switch to the model structure corresponding to the enumerated scene category, thereby improving the adaptability and accuracy of the perception data processing model.

[0096] Figure 6 FIG. 1 is a block diagram of a perception data processing device based on scene estimation, shown in an exemplary embodiment of the present application. Figure 6 As shown, the exemplary scene estimation-based perception data processing device 600 includes: a data acquisition module 610, a scene estimation module 620, a branch determination module 630 and a data processing module 640. Specifically:

[0097] The data acquisition module 610 is used to acquire the collected environmental perception data;

[0098] A scene estimation module 620 is used to perform scene estimation on the environmental perception data to obtain a target scene category corresponding to the environmental perception data;

[0099] A branch determination module 630 is used to determine a prediction branch that matches a target scene category, and obtain a target prediction branch; wherein a perception data processing model is pre-trained, and the perception data processing model contains multiple prediction branches, and each prediction branch matches a different scene category;

[0100] The data processing module 640 is used to use the target prediction branch to identify and process the environmental perception data to obtain a data identification result corresponding to the environmental perception data.

[0101] It should be noted that the perception data processing device based on scene estimation provided in the above embodiment and the perception data processing method based on scene estimation provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here. In practical applications, the perception data processing device based on scene estimation provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0102] See also Figure 7 , Figure 77 is a schematic diagram of the structure of an embodiment of an electronic device of the present application. The electronic device 700 includes a memory 701 and a processor 702, and the processor 702 is used to execute program instructions stored in the memory 701 to implement the steps in any of the above-mentioned embodiments of the perception data processing method based on scene estimation. In a specific implementation scenario, the electronic device 700 may include but is not limited to: a microcomputer, a server, and in addition, the electronic device 700 may also include a mobile device such as a laptop computer and a tablet computer, which is not limited here.

[0103] Specifically, the processor 702 is used to control itself and the memory 701 to implement the steps in any of the above-mentioned embodiments of the perception data processing method based on scene estimation. The processor 702 can also be called a central processing unit (CPU). The processor 702 may be an integrated circuit chip with signal processing capabilities. The processor 702 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 702 can be implemented by an integrated circuit chip.

[0104] See also Figure 8 , Figure 8 The computer-readable storage medium 800 stores program instructions 810 that can be executed by a processor, and the program instructions 810 are used to implement the steps in any of the above-mentioned scene estimation-based perception data processing method embodiments.

[0105] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0106] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0107] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0108] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

Claims

1. A method for processing perception data based on scene estimation, characterized in that: A perception data processing model is pre-trained, the perception data processing model contains multiple prediction branches, each prediction branch matches a different scene category, and each pre-trained prediction branch is independently trained by using a sample perception data set corresponding to each scene category to obtain multiple trained prediction branches. The perception data processing model also contains a comprehensive prediction branch, and the comprehensive prediction branch is obtained by training in combination with the sample perception data set corresponding to each scene category. The method includes: Obtain the collected environmental perception data; Performing scene estimation on the environmental perception data to obtain a target scene category corresponding to the environmental perception data; Determine a prediction branch that matches the target scene category to obtain a target prediction branch; Using the target prediction branch to identify and process the environmental perception data, and obtain a data identification result output by the target prediction branch; and using the comprehensive prediction branch to identify and process the environmental perception data, and obtain a data identification result output by the comprehensive prediction branch; Calculating a difference between a data recognition result output by the comprehensive prediction branch and a data recognition result output by the target prediction branch; If the difference is greater than the threshold, the target prediction branch is reselected; if the difference is not greater than the threshold, the data recognition result output by the target prediction branch is used as the final data recognition result.

2. The method according to claim 1, characterized in that The using the target prediction branch to perform recognition processing on the environmental perception data to obtain a data recognition result output by the target prediction branch includes: Extracting data features from the environmental perception data to obtain a data feature vector corresponding to the environmental perception data; The target prediction branch is used to perform recognition processing on the data feature vector corresponding to the environmental perception data to obtain a data recognition result output by the target prediction branch.

3. The method according to claim 2, characterized in that The perception data processing model further includes a feature extraction network and a conditional perception network; the data feature extraction of the environmental perception data to obtain the data feature vector output by the target prediction branch includes: Inputting the environmental perception data into the feature extraction network to obtain a data feature vector corresponding to the environmental perception data output by the feature extraction network; The step of determining a prediction branch that matches the target scene category to obtain a target prediction branch includes: Inputting the target scene category and the data feature vector corresponding to the environmental perception data into the conditional perception network, the conditional perception network determines the prediction branch matching the target scene category to obtain the target prediction branch; The using the target prediction branch to perform recognition processing on the data feature vector corresponding to the environmental perception data to obtain the data recognition result corresponding to the environmental perception data includes: The conditional perception network inputs the data feature vector corresponding to the environmental perception data into the target prediction branch, and obtains the data recognition result corresponding to the environmental perception data output by the target prediction branch.

4. The method according to claim 3, characterized in that The method further comprises: Obtain a set of sample perception data corresponding to each scene category; Using the sample perception data sets corresponding to each scene category, the pre-trained feature extraction network is trained to obtain a trained feature extraction network; Freeze the trained feature extraction network, and use the sample perception data set corresponding to each scene category to independently train each pre-trained prediction branch to obtain a plurality of trained prediction branches, each trained prediction branch corresponding to each scene category one by one; By combining the preset conditional perception network, the trained feature extraction network and multiple prediction branches, a trained perception data processing model is obtained.

5. The method according to claim 3, characterized in that: The perception data processing model further includes a scene estimation network; the scene estimation is performed on the environmental perception data to obtain a target scene category corresponding to the environmental perception data, including: The data feature vector corresponding to the environmental perception data is input into the scene estimation network to obtain the target scene category corresponding to the environmental perception data output by the scene estimation network.

6. The method according to claim 5, characterized in that The method further comprises: Acquire a set of sample perception data corresponding to each scene category, and label the sample perception data based on the scene category to which the sample perception data in the sample perception data set belongs, to obtain a scene category label corresponding to each sample perception data; Reusing the trained feature extraction network to extract the data feature vector corresponding to the sample perception data; Inputting the data feature vector corresponding to the sample perception data into the scene estimation network to obtain the predicted scene category of the sample perception data output by the scene estimation network; Based on the gap between the predicted scene category of the sample perception data and the scene category label, the network parameters of the scene estimation network are adjusted to obtain a trained scene estimation network.

7. The method according to claim 1, characterized in that The method further comprises: Detect whether there is a preset event; In response to the existence of the preset event, scene estimation is performed on the environmental perception data to obtain a target scene category corresponding to the environmental perception data; a prediction branch matching the target scene category is determined to obtain a new target prediction branch; and the environmental perception data is identified and processed using the new target prediction branch to obtain a data identification result corresponding to the environmental perception data.

8. The method according to claim 7, characterized in that The environmental perception data includes an environmental image acquired by an image acquisition device; the detecting whether a preset event exists includes: Acquire the viewing angle of the image acquisition device corresponding to the current target scene category to obtain a reference viewing angle; Detecting a viewing angle difference between a current actual viewing angle of the image acquisition device and the reference viewing angle; If the viewing angle difference is greater than a preset viewing angle difference threshold, it is determined that a preset event occurs; If the viewing angle difference is not greater than the preset viewing angle difference threshold, it is determined that there is no preset event.

9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the processor is configured to execute program instructions stored in the memory to implement the steps in the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program instructions, and the program instructions can be executed by a processor to implement the steps in the method according to any one of claims 1 to 8.