IP Library Granted Patent US 12,211,258
Granted Patent B2
US 12,211,258 · App. 17/642,816 · Granted Jan 28, 2025

Automatic modeling method and device for object detection model

Inventors: Hongli Liu (Jiangsu, CN); Feng Li (Jiangsu, CN); Xin Liu (Jiangsu, CN)
Assignee: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
G06V10/82G06N3/04G06N20/20G06V10/776
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,211,258
App. No.
17/642,816
Granted
Jan 28, 2025
Kind
B2
Abstract

An automatic modeling method for object detection model, the method includes: S 1, searching for an NAS network model according to a predetermined first neural network; S 2, training a first object detection model by using a training set, evaluating the current first object detection model by using a validation set after a number of training times reaches a first preset number of times, and outputting an evaluation result, wherein the first object detection model is a model obtained by detection part fusion of the NAS network model and a second object detection model; S 3, calculating a reward corresponding to the current first object detection model; S 4, adjusting parameters used for searching for the NAS network model according to the reward: repeating the steps S 1 -S 4 for a second preset number of times, and determining an optimal first object detection model according to the evaluation result. Further disclosed in the present invention is an automatic modeling device. The method and device provided by the present invention can search for different models according to different tasks, and improve an object detection effect.

Claims (169)

1. An automatic modeling method for object detection model, comprising the following steps:

S 1 , searching for a Neural Architecture Search (NAS) network model according to a predetermined first neural network;

S 2 , training a first object detection model by using a training set, evaluating a current first object detection model by using a validation set after a number of training times reaches a first preset number of times, and outputting an evaluation result, wherein the first object detection model is a model obtained by detection part fusion of the NAS network model and a second object detection model;

S 3 , calculating an object detection task reward corresponding to the current first object detection model;

S 4 , adjusting parameters used for searching for the NAS network model according to the object detection task reward; and

repeating the steps S 1 -S 4 for a second preset number of times, and determining an optimal first object detection model according to the evaluation result;

wherein the NAS network model is a NAS network without a fully connected layer; the detection part fusion of the NAS network model and the second object detection model refers to: that a plurality of output ends of different scales of the NAS network model are each connected to a 1*1 convolutional layer, and an output of the 1*1 convolutional layer is used as an input of a detection part of the second object detection model.

2. The method according to claim 1 , wherein,

the predetermined first neural network is a recurrent neural network (RNN); and

the step S 1 comprises:

step S 11 , sampling through an RNN controller according to preconfigured hyperparameters, to obtain a subnetwork structure encoding; wherein said preconfigured hyperparameters include subnetwork hyperparameters and controller hyperparameters; the subnetwork hyperparameters include a number of layers of a subnetwork, a number of cell branches, parameters related to a learning rate of the subnetwork, and a number of output channels; the controller hyperparameters include parameters related to a learning rate of the RNN controller and optimizer configuration parameters; and

step S 12 : outputting the NAS network model by decoding the subnetwork structure encoding through a decoder.

3. The method according to claim 2 , wherein,

the adjusting parameters used for searching for the NAS network model according to the object detection task reward comprises:

feeding the object detection task reward back to the RNN controller, and updating trainable parameters of the RNN controller by θ←θ+γ∇ θ logπ θ (s t ,a t )·R t , wherein θ represents the trainable parameters of the RNN controller, γ∇ θ represents a back propagation gradient of the trainable parameter, γ represents a preset parameter, logπ θ (s t ,a t ) is a cross entropy loss corresponding to the NAS network model searched for when step S 1 is performed for a t-th time, and R t represents a reward value corresponding to the NAS network model searched for when step S 1 is performed for the t-th time.

4. The method according to claim 1 , wherein after determining the optimal first object detection model according to the evaluation result, the method comprises:

training the first object detection model with optimal evaluation result by using a training set, and testing the trained first object detection model with optimal evaluation result on a test set.

5. The method according to claim 1 , wherein,

the second object detection model includes you only look once (Yolo).

6. The method according to claim 1 , wherein,

the evaluating a current first object detection model by using a validation set comprises:

performing Mean Average Precision (MAP) evaluation on the current first object detection model by using the validation set;

the determining an optimal first object detection model according to the evaluation result comprises:

determining a first object detection model corresponding to a maximum MAP within the second preset number of times as the optimal first object detection model.

7. The method according to claim 1 , wherein the calculating an object detection task reward corresponding to the current first object detection model comprises:

reward

=

tan

(

(

α

1

L

cla

+

(

1

-

a

)

1

L

reg

-

baseline

)

*

π

2

)

,

where

(

α

1

L

cla

+

(

1

-

a

)

1

L

reg

-

baseline

)

(

-

1

,

1

)

wherein L cla is classification loss, L reg is regression loss, and the baseline is a preset numerical value or formula.

8. An automatic modeling device for object detection model, comprising a memory and a processor, wherein,

the memory is configured for storing a program for automatic modeling of the object detection model; and

the processor is configured for reading and performing the program for automatic modeling of the object detection model, and performing the following operations:

S 1 , searching for a Neural Architecture Search (NAS) network model according to a predetermined first neural network;

S 2 , training a first object detection model by using a training set, evaluating a current first object detection model by using a validation set after a number of training times reaches a first preset number of times, and outputting an evaluation result, wherein the first object detection model is a model obtained by detection part fusion of the NAS network model and a second object detection model;

S 3 , calculating an object detection task reward corresponding to the current first object detection model;

S 4 , adjusting parameters used for searching for the NAS network model according to the object detection task reward; and

repeating the steps S 1 -S 4 for a second preset number of times, and determining an optimal first object detection model according to the evaluation result;

wherein the NAS network model is a NAS network without a fully connected layer; the detection part fusion of the NAS network model and the second object detection model refers to: that a plurality of output ends of different scales of the NAS network model are each connected to a 1*1 convolutional layer, and an output of the 1*1 convolutional layer is used as an input of a detection part of the second object detection model.

9. The device according to claim 8 , wherein,

the predetermined first neural network is a recurrent neural network (RNN); and

the step S 1 comprises:

step S 11 , sampling through an RNN controller according to preconfigured hyperparameters, to obtain a subnetwork structure encoding; wherein said preconfigured hyperparameters include subnetwork hyperparameters and controller hyperparameters; the subnetwork hyperparameters include a number of layers of a subnetwork, a number of cell branches, parameters related to a learning rate of the subnetwork, and a number of output channels; the controller hyperparameters include parameters related to a learning rate of the RNN controller and optimizer configuration parameters; and

step S 12 : outputting the NAS network model by decoding the subnetwork structure encoding through a decoder.

10. The device according to claim 9 , wherein,

the adjusting parameters used for searching for the NAS network model according to the object detection task reward comprises:

feeding the object detection task reward back to the RNN controller, and

updating trainable parameters of the RNN controller by θ←θ+γ∇ θ logπ θ (s t ,a t )·R t , wherein θ represents the trainable parameters of the RNN controller, γ∇ θ represents a back propagation gradient of the trainable parameter, γ represents a preset parameter, logπ θ (s t ,a t ) is a cross entropy loss corresponding to the NAS network model searched for when step S 1 is performed for a t-th time, and R t represents a reward value corresponding to the NAS network model searched for when step S 1 is performed for the t-th time.

11. The device according to claim 8 , wherein the processor is configured for reading and performing the program for automatic modeling of the object detection model, and performing the following operations:

after determining the optimal first object detection model according to the evaluation result, training the first object detection model with optimal evaluation result by using a training set, and testing the trained first object detection model with optimal evaluation result on a test set.

12. The device according to claim 8 , wherein,

the second object detection model includes you only look once (Yolo).

13. The device according to claim 8 , wherein,

the evaluating a current first object detection model by using a validation set comprises:

performing Mean Average Precision (MAP) evaluation on the current first object detection model by using the validation set;

the determining an optimal first object detection model according to the evaluation result comprises:

determining a first object detection model corresponding to a maximum MAP within the second preset number of times as the optimal first object detection model.

14. The device according to claim 8 , wherein the calculating an object detection task reward corresponding to the current first object detection model comprises:

reward

=

tan

(

(

α

1

L

cla

+

(

1

-

a

)

1

L

reg

-

baseline

)

*

π

2

)

,

where

(

α

1

L

cla

+

(

1

-

a

)

1

L

reg

-

baseline

)

(

-

1

,

1

)

wherein L cla is classification loss, L reg is regression loss, and the baseline is a preset numerical value or formula.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 14, 2022
From: LIU, HONGLI; LI, FENG; LIU, XIN
To: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
Reel/Frame 059255/0835 →
Priority Claims (1)
CN 201910912868.1 · Sep 25, 2019 · national
Continuity (1)
Related Publication 20220383627A1 · Dec 1, 2022
References Cited (26)
US 20120119987A1 · Im et al. · 2012 [cited by applicant]
US 20190026639A1 · Vasudevan · 2019 [cited by examiner]
US 20190392351A1 · Zuluaga · 2019 [cited by examiner]
US 20200034627A1 · Zhu · 2020 [cited by examiner]
CN 107886117A · 2018 [cited by applicant]
CN 109063759A · 2018 [cited by applicant]
CN 109325454A · 2019 [cited by applicant]
CN 109788222A · 2019 [cited by applicant]
JP 2018190332A · 2018 [cited by applicant]
JP 2020522035A · 2020 [cited by applicant]
JP 2021501417A · 2021 [cited by applicant]
WO 2019084560A1 · 2019 [cited by applicant]
International Search Report and English Translation cited in PCT/CN2019/130024 mailed Jun. 28, 2020, 5 pages. [cited by applicant]
Written Opinion and English Translation cited in PCT/CN2019/130024 mailed Jun. 28, 2020, 7 pages. [cited by applicant]
“The University of Tsukuba and Yokokuni Neural network automatic design technology architecture search also takes only 2 and a half hours on a PC”, Nikkei Robotics, Sep. 2019, pp. 16-21. [cited by applicant]
Tan, Mingxing, et al., “MnasNet: Platform-Aware Neural Architecture Search for Mobile”, May 29, 2019, pp. 1-9. [cited by applicant]
Wang, Ning, “NAS-FCOS: Fast Neural Architecture Search for Object Detection”, School of Computer Science, Sep. 7, 2019, pp. 1-9, arxiv.org. [cited by applicant]
Chen, Yukang, et al., “DetNAS: Backbone Search for Object Detection”, National Laboratory of Pattern Recognition, Institute of Automation, Chinese Academy of Sciences, Megvii Technology, Jun. 10, 2019, pp. 1-11, arxiv.o… [cited by applicant]
Chen, Yukang, et al., “RENAS: Reinforced Evolutionary Neural Architecture Search”, 2019 IEEE/CVF Conference on Computer Vision and Patter Recognition (CVPR), pp. 1-11, Mar. 26, 2019. [cited by applicant]
Zoph, Barret, et al., “Neural Architecture Search with Reinforcement Learning”, Google.com, Feb. 15, 2017, pp. 1-16, arxiv.org. [cited by applicant]
Corresponding Japanese Patent Application No. 2022-517307, Decision to Grant a Patent dated Jul. 14, 2023. [cited by applicant]
Corresponding Japanese Patent Application No. 2022-517307, Notice of Reasons for Refusal dated Mar. 15, 2023. [cited by applicant]
Corresponding Japanese Patent Application No. 2022-517307, Search Report dated Mar. 2, 2023. [cited by applicant]
Tian, Zhi, et al., “FCOS: Fully Convolutional One-Stage Object Detection”, Aug. 2, 2019, pp. 1-13, arxiv.org. [cited by applicant]
Corresponding European Patent Application No. 19946971.9, Communication pursuant to Article 94(3) EPC dated Jul. 1, 2024. [cited by applicant]
Corresponding European Patent Application No. 19946971.9, Extended European Search Report dated Sep. 18, 2023. [cited by applicant]