Reinforcement learning tuning method and device for end-to-end target detection algorithm
Through the reinforcement learning tuning method, image attributes and post-processing parameters are adjusted in real time, which solves the problem of insufficient generalization performance of the end-to-end target detection algorithm in complex environments, and achieves efficient performance optimization and adaptability improvement.
Patent Information
- Application Number
- CN202410773374.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-14
AI Technical Summary
Existing end-to-end target detection algorithms have insufficient generalization performance in complex environments and rely on manual setting of fixed detection thresholds, making it difficult to adapt to dynamic environmental changes.
The reinforcement learning tuning method is used to extract image data features through the hyperparameter tuning model, select hyperparameters based on task information, tune the end-to-end algorithm, and use the reward mechanism to update the hyperparameter model to adjust image attributes and post-processing in real time. parameters to optimize algorithm performance.
It significantly improves the generalization and optimization efficiency of the algorithm, avoids the limitations of manual optimization and fixed thresholds, and can be adjusted in real time in a dynamic environment to improve detection performance.
Smart Images

Figure CN118761452A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of deep learning technology, and in particular to a reinforcement learning tuning method and device for an end-to-end target detection algorithm. Background Art
[0002] At present, the actual generalization performance of end-to-end algorithms based on deep learning, such as YOLO and Faster RCNN, depends on the similarity between the distribution of training data and the distribution of real data. Usually, in order to improve the generalization performance of end-to-end algorithms, the training data is enhanced by preprocessing, such as color and geometry transformation of the training data. However, for remote sensing data, there are many factors that affect the distribution of data during reasoning, such as camera parameters, lighting changes, weather, etc. It is difficult to make the distribution of training data close to the distribution of data during reasoning by manually designing data processing methods. In addition, when reasoning in a complex combat environment, the data changes in real time, so the processing method needs to change in real time to better improve the actual performance of the end-to-end algorithm.
[0003] Currently, a large number of end-to-end automatic target recognition algorithms will output a large number of detection results, each of which will correspond to a "score" value. This "score" value reflects the model's degree of certainty about this detection result, and is usually between 0 and 1. Among them, a value close to 1 indicates that the model is highly certain about its prediction, while a value close to 0 indicates a low degree of certainty. In addition, when reasoning, end-to-end target detection algorithms usually set a "score" threshold to filter out detection boxes with low confidence, thereby reducing false detections (false positives), and different "score" thresholds will have a non-negligible impact on detection performance. But so far, this detection threshold is usually set manually based on experience and is fixed during reasoning, which greatly affects the final target detection effect of the algorithm. Summary of the invention
[0004] In view of this, the present application proposes a reinforcement learning tuning method and device for an end-to-end target detection algorithm to solve the above-mentioned problems.
[0005] On the one hand, the present application proposes a reinforcement learning tuning method for an end-to-end target detection algorithm, comprising the following steps:
[0006] Obtaining image data to be processed, and using a hyperparameter tuning model to extract image data features of the image data to be processed, and then selecting corresponding hyperparameters in combination with corresponding task information;
[0007] Performing algorithm tuning on the end-to-end algorithm using the hyperparameters to obtain the tuned end-to-end algorithm;
[0008] Use the tuned end-to-end algorithm to identify the target, evaluate the target detection and identification results, and select the corresponding reward;
[0009] The hyper-parameter tuning model is updated based on the reward combined with the gradient of the reinforcement learning algorithm to obtain the optimized parameter tuning model.
[0010] As an optional implementation scheme of the present application, optionally, the obtaining of the image data to be processed, and extracting the image data features of the image data to be processed by using the hyperparameter tuning model, and then selecting the corresponding hyperparameter in combination with the corresponding task information, includes:
[0011] Acquire image data to be processed, wherein the image data to be processed includes a current state, an action at a previous moment, and task information;
[0012] Extracting features of the current state, the previous action and the task information respectively to obtain corresponding feature vectors;
[0013] The feature vectors are all input into the self-attention module, and the weights are calculated and then connected to the LSTM module, and the image attributes, attribute parameters, post-processing parameters and values are correspondingly extracted;
[0014] Based on the task information, the corresponding image attributes, attribute parameters, and post-processing parameters are selected as hyper parameters at the next moment.
[0015] As an optional implementation scheme of the present application, optionally, the feature extraction is performed on the current state, the previous action and the task information respectively to obtain corresponding feature vectors, including:
[0016] Using different pre-trained models to extract features of the current state, and correspondingly obtaining a first feature vector and a second feature vector;
[0017] Extracting features of the action at the previous moment based on a feedforward neural network to obtain a third feature vector;
[0018] The task information is encoded and passed through a fully connected layer to obtain a fourth eigenvector.
[0019] As an optional implementation scheme of the present application, optionally, the process of performing algorithm tuning of the end-to-end algorithm is a Markov decision process, and the action space, state space and reward function in the Markov decision process are designed separately during tuning.
[0020] As an optional implementation scheme of the present application, optionally, the action space is a hyperparameter selected for each time step;
[0021] The state space is an image for each time step, and the target state space is S = I × A T ; and I represents an image, A T A sequence of actions that represent history;
[0022] The reward function is calculated based on the F1 indicator.
[0023] As an optional implementation scheme of the present application, optionally, when updating the hyperparameter tuning model, it is implemented based on a strategy generation network and a value function evaluation network.
[0024] In another aspect, the present application provides a device for implementing any of the above-mentioned reinforcement learning tuning methods for an end-to-end target detection algorithm, comprising:
[0025] A feature extraction module is configured to obtain image data to be processed, extract image data features of the image data to be processed using a hyperparameter tuning model, and select corresponding hyperparameters in combination with corresponding task information;
[0026] An algorithm tuning module is configured to perform algorithm tuning on the end-to-end algorithm using the hyperparameters to obtain the tuned end-to-end algorithm;
[0027] A performance evaluation module is configured to use the tuned end-to-end algorithm to perform target recognition, evaluate the target detection and recognition results, and select a corresponding reward;
[0028] The model updating module is configured to update the hyper-parameter tuning model based on the reward combined with the reinforcement learning algorithm gradient to obtain the optimized parameter tuning model.
[0029] In another aspect, the present application provides a control system, comprising:
[0030] processor;
[0031] a memory for storing processor-executable instructions;
[0032] Wherein, the processor is configured to implement any of the above-mentioned reinforcement learning tuning methods for an end-to-end target detection algorithm when executing the executable instructions.
[0033] In another aspect of the present application, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the reinforcement learning tuning method for an end-to-end target detection algorithm described in any one of the above items is implemented.
[0034] Technical effects of the present invention:
[0035] This application uses an end-to-end algorithm hyperparameter tuning model based on deep reinforcement learning to adjust image attributes and post-processing parameters of the end-to-end algorithm in real time during reasoning, thereby optimizing the performance of the end-to-end algorithm. Specifically, it includes: obtaining the image data to be processed, and using the hyperparameter tuning model to extract the image data features of the image data to be processed, and then selecting the corresponding hyperparameters in combination with the corresponding task information; using the hyperparameters to tune the end-to-end algorithm to obtain the tuned end-to-end algorithm; using the tuned end-to-end algorithm to identify targets, and evaluating the target detection and recognition results, and selecting the corresponding rewards; based on the rewards combined with the reinforcement learning algorithm gradient update hyperparameter tuning model to obtain the optimized parameter tuning model. The method of this application does not require manual design for optimization, and does not require setting a fixed manual detection threshold, which greatly improves the algorithm optimization efficiency and significantly improves the generalization of the algorithm.
[0036] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0038] Figure 1 It is a schematic diagram of the process flow of the reinforcement learning tuning method for the end-to-end target detection algorithm of the present invention;
[0039] Figure 2 Shown is a structural diagram of the end-to-end algorithm hyper-parameter tuning model of the present invention;
[0040] Figure 3 It is a schematic diagram of the state transition of the end-to-end algorithm tuning of the present invention;
[0041] Figure 4 Shown is a diagram of the end-to-end algorithm tuning training framework of the present invention. DETAILED DESCRIPTION
[0042] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0043] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0044] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0045] Since the existing technology requires artificially designed data processing methods to improve generalization, the efficiency is low and it is not feasible in dynamic environments. In addition, the target detection results of the existing technology rely on artificially set detection thresholds and cannot adapt well to complex dynamic environments. Therefore, this application designs an end-to-end algorithm hyperparameter tuning model based on deep reinforcement learning, which can adjust image attributes and end-to-end algorithm post-processing parameters in real time during reasoning to optimize the end-to-end algorithm performance.
[0046] Example 1
[0047] like Figure 1 As shown, on the one hand, the present application proposes a reinforcement learning tuning method for an end-to-end target detection algorithm, comprising the following steps:
[0048] S100, obtaining image data to be processed, and using a hyperparameter tuning model to extract image data features of the image data to be processed, and then selecting corresponding hyperparameters in combination with corresponding task information;
[0049] In this step, it is necessary to first extract the image data features, and select the image attributes to be adjusted and the corresponding hyperparameters for post-processing in combination with the task information. Since the goal of the end-to-end algorithm tuning model of this application is to adjust the input image during inference to be similar to the original training data distribution, and select the corresponding post-processing parameters.
[0050] S200, using hyperparameters to optimize the end-to-end algorithm to obtain an optimized end-to-end algorithm;
[0051] In this step, in order to achieve real-time adjustment of image attributes and post-processing parameters of the end-to-end algorithm during inference and optimize the performance of the end-to-end algorithm, the data set is iterated, and corresponding performance optimization is performed by using the set of hyperparameters obtained in step S100 on the end-to-end algorithm.
[0052] S300, using the tuned end-to-end algorithm to perform target recognition, evaluate the target detection and recognition results, and select a corresponding reward;
[0053] In this step, the target recognition performance of the target recognition results of the end-to-end algorithm needs to be evaluated, and the verification accuracy is used as a reward.
[0054] S400, based on rewards combined with the reinforcement learning algorithm gradient update hyper-parameter tuning model, to obtain an optimized parameter tuning model.
[0055] In this step, after the hyperparameter tuning model is updated with the gradient of the reinforcement learning algorithm, the next iteration is entered. That is, in the end-to-end algorithm tuning training process, the hyperparameter tuning model is used to extract image data features, and after selecting the image attributes to be adjusted and the hyperparameters corresponding to the post-processing in combination with the task information, the data set is iterated, and this set of hyperparameters is used on the end-to-end algorithm. Then, the target detection and recognition results are evaluated, and the verification accuracy is used as a reward. Finally, the hyperparameter model is updated and the next iteration is entered. The method of the present application does not require manual optimization, and does not need to set a fixed manual detection threshold, which greatly improves the algorithm optimization efficiency and significantly improves the generalization of the algorithm.
[0056] As an optional implementation scheme of the present application, optionally, after obtaining the image data to be processed and using the hyperparameter tuning model to extract the image data features of the image data to be processed, the corresponding hyperparameters are selected in combination with the corresponding task information, including: obtaining the image data to be processed, and the image data to be processed includes the current moment state, the previous moment action and task information; performing feature extraction on the current moment state, the previous moment action and the task information respectively to obtain the corresponding feature vectors; inputting the feature vectors into the self-attention module, calculating the weights and connecting them to the LSTM module, and extracting the image attributes, attribute parameters, post-processing parameters and values accordingly; selecting the corresponding image attributes, attribute parameters and post-processing parameters as the hyperparameters for the next moment based on the task information.
[0057] It should be noted that if Figure 2 As shown, in this embodiment, the input part at time t includes the current state S t , the action a at the previous moment t-1 and task information. t , the action a at the previous moment t-1 The feature extraction of the three parts of the image processing and task information is performed to obtain the corresponding feature vectors. Subsequently, all feature vectors are input into the self-attention module to calculate the weights, and the LSTM module is connected after the weights are calculated to better utilize the features of each time step. Finally, the network connects the four heads and outputs image attributes, attribute parameters, post-processing parameters and value, where image attributes, attribute parameters and post-processing parameters are the action a at the next moment. t+1 Here, it should be noted that the action is the hyperparameter selected for each time step.
[0058] As an optional implementation scheme of the present application, optionally, feature extraction is performed on the current state, the action at the previous moment and the task information respectively to obtain corresponding feature vectors, including: using different pre-trained models to extract features of the current state, and correspondingly obtaining a first feature vector and a second feature vector; extracting features of the action at the previous moment based on a feedforward neural network to obtain a third feature vector; encoding the task information and passing it through a fully connected layer to obtain a fourth feature vector.
[0059] Specifically, when extracting the current state S t , the action a at the previous moment t-1 and the characteristics of the task information, the current state S t After feature extraction by Resnet50 and Resnet18, the first feature vector feature is obtained. res50 and the second feature vector feature res18 Here, it should be noted that the Resnet50 in this embodiment is a pre-trained model and only performs the forward process; the previous moment action a t-1 After a feedforward neural network, the third feature vector feature is obtained a ; After the task information is encoded, the fourth feature vector feature is obtained through the fully connected layer task , and then input all feature vectors into the self-attention module to calculate the weights. Then connect the LSTM module to better utilize the features of each time step. Finally, the network connects the four heads and outputs image attributes, attribute parameters, post-processing parameters and values. That is, based on the current state S t Corresponding to the output image attributes and attribute parameters, based on the action a at the previous moment t-1 Corresponding output value, corresponding output post-processing parameters based on task information.
[0060] As an optional implementation scheme of the present application, optionally, the process of algorithm tuning of the end-to-end algorithm is a Markov decision process, and the action space, state space and reward function in the Markov decision process are designed separately during tuning.
[0061] It should be emphasized that in order to achieve the goal of the end-to-end algorithm tuning model, that is, to adjust the input image during inference to be similar to the distribution of the original training data and select the corresponding post-processing parameters, it is necessary to adjust multiple image attributes. The adjustment of multiple image attributes can be regarded as a sequential decision process, and the input image is processed at each time step, so the end-to-end algorithm tuning can be defined as a Markov decision process. Among them, the Markov decision process includes action space, state space and reward function. In order to achieve the purpose of tuning the end-to-end algorithm, this embodiment specifically designs the corresponding action space, state space and reward function.
[0062] As an optional implementation scheme of the present application, optionally, the action space is the hyperparameter selected for each time step; the state space is the image for each time step, and the target state space is S = I × A T ; and I represents an image, A T Represents the historical action sequence; the reward function is calculated based on the F1 indicator.
[0063] The dynamic space design, state space design and reward function design of this application will be described in detail below.
[0064] (1) Action Space
[0065] The action space A is a combination of all image attributes and parameters to be adjusted. The dimension of each action a is 3. The first dimension is the image attribute to be adjusted, the second dimension is the parameter corresponding to the image attribute, and the third dimension is the parameter of the post-processing operation. Among them, the range of image attributes to be adjusted includes brightness, contrast, hue, saturation, color balance and sharpness. In order to reduce the range of action and state space, the parameters corresponding to each attribute are discretized, and the number is P. For example, when P = 10, the adjustment factor α of the brightness attribute takes the value of [-1, -0.8, -0.6, -0.4, -0.2, 0.2, 0.4, 0.6, 0.8, 1].
[0066] (2) State space
[0067] Let I represent the set of all possible sensor images. Let the processing function corresponding to action a be f a , the initial state s0 is the original image I0. Then s1 is the processing function corresponding to the action a1 selected by s0 through the strategy function π The processed image I1, and so on. If each trajectory is required to perform a fixed T number of state transitions, then the state transition of a trajectory τ is as follows: Figure 3 shown.
[0068] The final state space is S = I × A T , where A T represents the historical action sequence, Z + Represents the number of times the current image has been adjusted or post-processed. For example, suppose I2 is the original image I0 after and The image obtained after processing is s2=(I2, <a0,a1,a -1 ,…,a -1 >), where a -1 Represents an empty action, that is, no processing is performed.
[0069] It should be noted that the method of the present application, by adding historical action sequences to the state space, allows the end-to-end algorithm hyperparameter tuning model to directly obtain what processing has been done on the image before when making decisions, which helps to improve the consistency and rationality of hyperparameter tuning. Not only that, adding empty actions can not only allow the end-to-end algorithm hyperparameter tuning model to perform variable pre- and post-processing on different images as needed in different scenarios, but also keep the input dimension of the neural network unchanged, reducing the learning difficulty of reinforcement learning.
[0070] (3) Rewards
[0071] The F1 index is used to evaluate the performance of the model on image I, denoted as F1(I). The ultimate goal is to make the model obtain image I after a series of corresponding image changes a. T The performance is better than that of the original image I0. t The corresponding reward r t as follows:
[0072]
[0073] As an optional implementation scheme of the present application, optionally, when updating the hyperparameter tuning model, it is implemented based on a strategy generation network and a value function evaluation network.
[0074] like Figure 4 As shown, the method of the present application uses the Actor-Critic reinforcement learning method to train the end-to-end algorithm hyperparameter tuning model. Actor-Critic is a combination of value-based and policy-based reinforcement learning models, which includes two components: a policy generation network and a value function evaluation network. Among them, the Actor is similar to the policy network used in the policy algorithm. The Actor selects an action based on the current state, and the end-to-end algorithm hyperparameter tuning model executes the action and obtains the corresponding reward. Critic uses the value function to evaluate the current state. The optimization goal of the value evaluation function when training based on the Actor-Critic reinforcement learning method is:
[0075]
[0076] It can be seen that the method of the present application does not require manual design for optimization, and does not require setting a fixed manual detection threshold, which greatly improves the algorithm optimization efficiency and significantly improves the generalization of the algorithm.
[0077] It should be noted that, although the above is introduced as an example, those skilled in the art will understand that the present disclosure should not be limited thereto. In fact, users can flexibly set according to actual application scenarios, as long as the technical functions of the present application can be realized according to the above technical methods.
[0078] Example 2
[0079] Based on the implementation principle of Example 1, on the other hand, the present application provides a device for implementing any of the above-mentioned reinforcement learning tuning methods for an end-to-end target detection algorithm, including:
[0080] A feature extraction module is configured to obtain image data to be processed, extract image data features of the image data to be processed using a hyperparameter tuning model, and select corresponding hyperparameters in combination with corresponding task information;
[0081] An algorithm tuning module is configured to perform algorithm tuning on the end-to-end algorithm using the hyperparameters to obtain the tuned end-to-end algorithm;
[0082] A performance evaluation module is configured to use the tuned end-to-end algorithm to perform target recognition, evaluate the target detection and recognition results, and select a corresponding reward;
[0083] The model updating module is configured to update the hyper-parameter tuning model based on the reward combined with the reinforcement learning algorithm gradient to obtain the optimized parameter tuning model.
[0084] Obviously, those skilled in the art should understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned control methods. The modules or steps of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by computing devices, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules respectively, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present invention is not limited to any specific combination of hardware and software.
[0085] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned control methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0086] Example 3
[0087] Furthermore, in another aspect, the present application provides a control system, comprising:
[0088] processor;
[0089] a memory for storing processor-executable instructions;
[0090] Wherein, the processor is configured to implement any of the above-mentioned reinforcement learning tuning methods for an end-to-end target detection algorithm when executing the executable instructions.
[0091] The control system of the embodiment of the present disclosure includes a processor and a memory for storing processor executable instructions. The processor is configured to implement any of the above-mentioned reinforcement learning tuning methods for end-to-end target detection algorithms when executing the executable instructions.
[0092] Here, it should be noted that the number of processors can be one or more. At the same time, in the control system of the embodiment of the present disclosure, an input device and an output device may also be included. Among them, the processor, memory, input device and output device may be connected through a bus or in other ways, which are not specifically limited here.
[0093] As a computer-readable storage medium, the memory can be used to store software programs, computer executable programs and various modules, such as the program or module corresponding to the reinforcement learning tuning method for the end-to-end target detection algorithm in the embodiment of the present disclosure. The processor executes various functional applications and data processing of the control system by running the software programs or modules stored in the memory.
[0094] The input device can be used to receive input numbers or signals. The signal can be a key signal related to user settings and function control of the device / terminal / server. The output device can include a display device such as a display screen.
[0095] Example 4
[0096] In another aspect of the present application, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the reinforcement learning tuning method for an end-to-end target detection algorithm described in any one of the above items is implemented.
[0097] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A reinforcement learning tuning method for an end-to-end object detection algorithm, characterized in that: The steps include: Obtaining image data to be processed, and using a hyperparameter tuning model to extract image data features of the image data to be processed, and then selecting corresponding hyperparameters in combination with corresponding task information; Performing algorithm tuning on the end-to-end algorithm using the hyperparameters to obtain the tuned end-to-end algorithm; Use the tuned end-to-end algorithm to identify the target, evaluate the target detection and identification results, and select the corresponding reward; The hyper-parameter tuning model is updated based on the reward combined with the gradient of the reinforcement learning algorithm to obtain the optimized parameter tuning model.
2. The reinforcement learning tuning method for an end-to-end target detection algorithm according to claim 1, characterized in that: The step of obtaining the image data to be processed and extracting the image data features of the image data to be processed by using the hyperparameter tuning model, and then selecting the corresponding hyperparameter in combination with the corresponding task information includes: Acquire image data to be processed, wherein the image data to be processed includes a current state, an action at a previous moment, and task information; Extracting features of the current state, the previous action and the task information respectively to obtain corresponding feature vectors; The feature vectors are all input into the self-attention module, and the weights are calculated and then connected to the LSTM module, and the image attributes, attribute parameters, post-processing parameters and values are correspondingly extracted; Based on the task information, the corresponding image attributes, attribute parameters, and post-processing parameters are selected as hyper parameters at the next moment.
3. The reinforcement learning tuning method for an end-to-end target detection algorithm according to claim 2, characterized in that: The extracting features of the current state, the previous action and the task information to obtain corresponding feature vectors respectively includes: Using different pre-trained models to extract features of the current state, and correspondingly obtaining a first feature vector and a second feature vector; Extracting features of the action at the previous moment based on a feedforward neural network to obtain a third feature vector; The task information is encoded and passed through a fully connected layer to obtain a fourth eigenvector.
4. The reinforcement learning tuning method for an end-to-end target detection algorithm according to any one of claims 1 to 3, characterized in that: The process of performing algorithm tuning for the end-to-end algorithm is a Markov decision process, and the action space, state space and reward function in the Markov decision process are designed separately during tuning.
5. The reinforcement learning tuning method for an end-to-end target detection algorithm according to claim 4, characterized in that: The action space is a hyperparameter selected for each time step; The state space is an image for each time step, and the target state space is S = I × A T ; and I represents an image, A T A sequence of actions that represent history; The reward function is calculated based on the F1 indicator.
6. The reinforcement learning tuning method for an end-to-end target detection algorithm according to claim 1, characterized in that: When updating the hyperparameter tuning model, the network is generated based on the strategy and the value function is evaluated based on the network.
7. A device for implementing the reinforcement learning tuning method for an end-to-end target detection algorithm according to any one of claims 1 to 6. Characterized in that: include: A feature extraction module is configured to obtain image data to be processed, extract image data features of the image data to be processed using a hyperparameter tuning model, and select corresponding hyperparameters in combination with corresponding task information; An algorithm tuning module is configured to perform algorithm tuning on the end-to-end algorithm using the hyperparameters to obtain the tuned end-to-end algorithm; A performance evaluation module is configured to use the tuned end-to-end algorithm to perform target recognition, evaluate the target detection and recognition results, and select a corresponding reward; The model updating module is configured to update the hyper-parameter tuning model based on the reward combined with the reinforcement learning algorithm gradient to obtain the optimized parameter tuning model.
8. A control system, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the reinforcement learning tuning method for an end-to-end target detection algorithm as described in any one of claims 1 to 6 when executing the executable instructions.
9. A non-volatile computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the reinforcement learning tuning method for an end-to-end target detection algorithm as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Apparent characteristic monitoring data intelligent labeling method based on target detection
CN111222462A
Iris image acquisition method, iris recognition method and device
CN114092995A
Automatic operator tuning method based on reinforcement learning and related device
CN116861957A
