# US 2026/0073230 A1 · Method and Apparatus for Generating Deep Ensemble Model for Image Classification, and Computer Device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0073230 A1
- Document ID: US20260073230A1
- Status: Published application
- Kind: A1
- Application number: 19/394,908
- Filed: 2025-11-20
- Published: 2026-03-12
- Earliest claimed: 2023-11-01
- Assignees: Suzhou University of Technology
- Applicants: Suzhou University of Technology
- Inventors: Haitong Zhao; Xiaoshuang Xing; Xiaolu Cheng; Chao Su; Can Tong
- Web page: https://patentgrep.com/patent/US20260073230A1

## CPC

- G06N 3/09: Supervised learning
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/086: using evolutionary algorithms, e.g. genetic algorithms or genetic programming
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/776: Validation; Performance evaluation
- G06V 10/82: using neural networks
- Y02T 10/40: Engine management systems
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- Y02T: CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION

## Abstract

Provided are a method and apparatus for generating a deep ensemble model for image classification, and a computer device. The method includes: randomly sampling, from a search space of classical convolutional neural network (CNN) models for image classification, a neural architecture of a first group of CNN models; collecting representative image samples based on a scenario of an image classification task, marking the collected image samples with classification labels, constructing a training dataset based on the marked image samples, and training the sampled first group of CNN models based on the training dataset and evaluating image classification performance thereof; generating a second group of CNN models based on a surrogate model and the trained first group of CNN models; and constructing a structure of a deep ensemble model for image classification based on the second group of CNN models and a multi-objective optimization strategy.

## Claims

### Claim 1

A method for generating a deep ensemble model, comprising:
randomly sampling, from a search space of classical convolutional neural network (CNN) models for image classification, a neural architecture of a first group of CNN models;
collecting representative image samples based on a scenario of an image classification task, marking the collected image samples with classification labels, and constructing a training dataset based on the marked image samples, wherein the image classification task comprises at least one of visual search, image tagging, content filtering, medical image analysis, security surveillance, agricultural monitoring, and environmental detection;
training the sampled first group of CNN models based on the training dataset and evaluating image classification performance of the sampled first group of CNN models;
generating a second group of CNN models based on a surrogate model and the trained first group of CNN models;
randomly constructing a second parent population based on the second group of CNN models; if a stop criterion is not met, performing a bi-objective differential evolution operation on the second group of CNN models to generate a second offspring population; evaluating the second offspring population, and combining the second offspring population and the second parent population into a new second parent population; selecting, from the new second parent population, non-dominated solutions to a current multi-objective optimization problem, wherein for any non-dominated solution, no any solution that is superior to the non-dominated solution on all optimization objectives is present in the new second parent population;
updating an external archive to save the non-dominated solutions; constructing a next-generation population by tournament selection; if the stop criterion is met, decoding a solution with the highest accuracy in the external archive; and outputting a constructed CNN ensemble model, wherein the CNN ensemble model is a deep ensemble model for image classification, and a structure of the deep ensemble model comprises a shared block.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the generating a second group of CNN models based on a surrogate model and the trained first group of CNN models comprises:
generating the second group of CNN models based on a single-objective differential evolution operation, the surrogate model, and the trained first group of CNN models.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the generating the second group of CNN models based on a single-objective differential evolution operation, the surrogate model, and the trained first group of CNN models comprises:
encoding and clustering the trained first group of CNN models, extracting centroids of clustering for constructing a first parent population, and training a performance comparator using the sampled first group of CNN models;
if a training stop criterion is not met, generating a first offspring population by the single-objective differential evolution operation, and combining the first parent population and the first offspring population into a new first parent population;
determining whether the performance comparator is used;
if the performance comparator is used, sorting the new first parent population using a merging and sorting approach of the surrogate model, and constructing a next-generation population by tournament selection; and
if the training stop criterion is met, outputting a final-generation population, wherein the final-generation population is the second group of CNN models.

### Claim 4 (depends on 3)

The method according to claim 3, after determining whether the performance comparator is used, the method further comprises:
if the performance comparator is not used, decoding and training the CNN models in the first offspring population;
sorting the new first parent population by accuracy; and
training the performance comparator using the first offspring population, wherein at intervals of T iterations, the CNN models of the new first parent population are trained using the training dataset, true accuracy rates of the CNN models of the new first parent population are tested using a validation dataset, candidate solutions are sorted according to the trained performance comparator, and a high-quality candidate solution is selected; incremental training is performed on the trained performance comparator using a neural architecture code of the CNN models of the new first parent population and corresponding sorted accuracy rates as training data;
or in other cases, performance of the CNN models of the new first parent population is evaluated and sorted with respect to performance using the trained performance comparator.

### Claim 5 (depends on 3)

The method according to claim 3, wherein the encoding and clustering the trained first group of CNN models comprises:
encoding each CNN model in the trained first group of CNN models and an error rate of image classification corresponding to each CNN model as a real vector, and clustering the encoded real vectors into a plurality of classes,
wherein the error rate is expressed as
minimize
⁢
f
⁡
(
x
)
=
1
-
1
N
⁢
∑
i
1
=
1
|
G
|
∑
s
:
g
x
(
s
)
=
i
1
I
⁡
(
g
x
(
s
)
=
g
ˆ
(
s
)
)
,
where, N represents a number of test samples; |G| represents a number of test sample types; i1 represents a test sample i1; x represents a solution of a test sample s; gx(s) represents a classification result of the solution x of the test sample s; ĝ(s) represents a real class of the test sample s; I(.) represents a discrimination function; and when gx(s)=ĝ(s), 1 is returned, or otherwise, 0 is returned.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the search space of the CNN models comprises four convolutional blocks and one pooling layer; a structure of each convolutional block is determined by hyperparameters of the convolutional block that comprise at least one of a convolutional unit type, a convolutional layer channel expansion factor, and a convolutional layer repeat count; and the method further comprises:
encoding each CNN model as an integer array of a fixed length according to the hyperparameters of each convolutional block.

### Claim 7 (depends on 2)

The method according to claim 2, wherein the generating the second group of CNN models based on a single-objective differential evolution operation, the surrogate model, and the trained first group of CNN models comprises:
altering each overall CNN model structure in the trained first group of CNN models based on a first mutation operator; or
altering a single convolutional block in each CNN model in the trained first group of CNN models based on a second mutation operator.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the first mutation operator and the second mutation operator are different values of a target mutation operator which is expressed as:
v
→
t
j
1
=
{
y
→
r
1
+
F
·
(
y
→
r
2
-
y
→
r
3
)
,
rang
⁢
(
0
,
1
)
≤
r
y
→
j
1
+
F
·
d
→
,
others
,
where, j1 represents an index of a CNN model j1 in a population;
v
→
t
j
⁢
1
represents a mutation intermediate obtained after mutation of the CNN model j1 in the population at a generation t; {right arrow over (y)}j1 represents the CNN model j1 in the population; {right arrow over (y)}r1, {tilde over (y)}r2, and {right arrow over (y)}r3 represent random neighbor CNN models randomly selected from a neighborhood of {right arrow over (y)}j1; F represents a factor for controlling a range of a mutated CNN model; r represents a real number in [0, 1] randomly generated by a random number generator rand(0,1); {right arrow over (d)} represents a vector
d
→
=
y
→
t
-
1
best
-
y
→
t
-
2
b
⁢
e
⁢
s
⁢
t
of a change direction of an optimal solution;
y
→
t
-
1
best
⁢
and
⁢
y
→
t
-
2
best
correspond to optimal solutions of generations t−1 and t−2; and t represents a current iteration round.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the generating the second group of CNN models based on a single-objective differential evolution operation, the surrogate model, and the trained first group of CNN models comprises:
swapping an original CNN model and a convolutional block of the original CNN model based on a first crossover operator; or swapping a random bit of the original CNN model based on a second crossover operator,
wherein the first crossover operator is
u
j
2
=
⁢
{
v
j
2
;
rand
⁢
(
0
,
1
)
≤
CR
,
j
2
=
3
⁢
r
i
⁢
2
,
3
⁢
r
i
⁢
2
+
1
,
or
⁢
3
⁢
r
i
⁢
2
+
2
w
j
2
;
others
,
where,
ri2=randI(0,2), ri2 represents an integer i2 randomly generated by a random integer generator randI(0,2) within a range [0, 2]; CR represents a preset crossover probability factor; j2 represents an index of a variable dimension j2; uj2 represents a result of a first crossover operator j2; vj2 represents a dimension j2 of a mutated solution of the target mutation operator; and wj2 represents a dimension j2 of an original candidate solution of the target mutation operator; and
the second crossover operator is
u
j
3
=
⁢
{
v
j
⁢
3
;
rand
⁢
(
0
,
1
)
≤
CR
w
j
⁢
3
;
others
,
where, uj3 is represents a result of a second crossover operator j3; vj3 represents a dimension j3 of the mutated solution of the target mutation operator; and wj3 is represents a dimension j3 of the original candidate solution of the target mutation operator.

### Claim 10 (depends on 5)

The method according to claim 5, wherein constructing a structure of a deep ensemble model for image classification based on the second group of CNN models and a multi-objective optimization strategy comprises:
evaluating the second group of CNN models based on a first objective function and a second objective function, and constructing the deep ensemble model for image classification, wherein the first objective function is configured to determine the accuracy of the deep ensemble model, and the second objective function is configured to determine the diversity of the deep ensemble model;
wherein the first objective function is
a
⁢
c
⁢
c
⁡
(
x
)
=
1
N
⁢
∑
i
1
=
1
❘
"\[LeftBracketingBar]"
G
❘
"\[RightBracketingBar]"
∑
s
:
gx
⁡
(
s
)
=
i
1
I
⁡
(
g
x
(
s
)
=
g
ˆ
(
s
)
)
,
where, N represents the number of test samples, |G| represents the number of test sample types, i1 represents the test sample i1, x represents the solution of the test sample s, gx(s) represents the classification result of the solution x of the test sample s, ĝ(s) represents the real class of the test sample s, I(.) represents the discrimination function, and when gx(s)=ĝ(s), 1 is returned, or otherwise, 0 is returned; and the second objective function is
d
⁡
(
x
)
=
∑
i
4
=
1
m
∑
j
4
=
i
4
+
1
m
(
∑
k
=
1
d
(
a
i
4
k
-
a
j
4
k
)
2
+
∑
p
=
1
❘
"\[LeftBracketingBar]"
G
❘
"\[RightBracketingBar]"
I
⁡
(
g
⁡
(
a
i
4
,
s
p
)
=
g
⁡
(
a
j
4
,
s
p
)
)
)
,
where, ai4 represents an output of a head i4 of the deep ensemble model,
a
i
4
k
represents an architecture of a k-th dimension of the head i4,
a
j
4
k
represents an architecture of the k-th dimension of the head j4, g(ai4,sp) represents an output of ai4 on a p-th test sample sp, d represents a dimension of a code of a head,
∑
k
=
1
d
(
a
t
4
k
-
a
j
4
k
)
2
represents a Euclidean distance between the head i4 and the head j4, and
∑
p
=
1
❘
"\[LeftBracketingBar]"
G
❘
"\[RightBracketingBar]"
I
⁡
(
g
⁡
(
a
i
4
,
s
p
)
=
g
⁡
(
a
j
4
,
s
p
)
)
represents a number of test samples with different classification results.

### Claim 11 (depends on 10)

The method according to claim 10, wherein the external archive stores non-dominated solutions meeting a preset objective function; if a first candidate solution of candidate solutions of the preset objective function meets that there are no other candidate solutions superior to the first candidate solution on two optimization objectives, namely the first objective function and the second objective function, the first candidate solution is the non-dominated solution; and the first candidate solution is any candidate solution;
wherein the preset objective function is ¬∃xj5∈W, j5≠i5, Λxj5k
≥
x
i
5
k
,
where, xj5 represents a candidate solution j5, W represents a set of candidate solutions,
x
i
5
k
represents the k-th dimension of a candidate solution i5, namely xi5, and
x
j
5
k
represents the k-th dimension of the candidate solution j5, namely xj5.

### Claim 12 (depends on 3)

The method according to claim 3, wherein the encoding and clustering the trained first group of CNN models comprises:
encoding the trained first group of CNN models based on an integer array,
wherein each element of the integer array is an index of the trained first group of CNN models, a length of the array is m, a first element of the integer array represents an index of a CNN model contributing a shared layer, and a second element to an m-th element of the integer array represent indexes of CNN models constructing a head architecture.

### Claim 13

An apparatus for generating a deep ensemble model, comprising a sampling module, a dataset construction module, a training and evaluation module, a generation module, and a model construction module,
wherein the sampling module is configured to randomly sample, from a search space of classical convolutional neural network (CNN) models for image classification, a neural architecture of a first group of CNN models;
the dataset construction module is configured to collect representative image samples based on a scenario of an image classification task, mark the collected image samples with classification labels, and construct a training dataset based on the marked image samples, wherein the image classification task comprises at least one of visual search, image tagging, content filtering, medical image analysis, security surveillance, agricultural monitoring, and environmental detection;
the training and evaluation module is configured to train the sampled first group of CNN models based on the training dataset and evaluate image classification performance of the sampled first group of CNN models;
the generation module is configured to generate a second group of CNN models based on a surrogate model and the trained first group of CNN models; and
the model construction module is configured to: randomly construct a second parent population based on the second group of CNN models; if a stop criterion is not met, perform a bi-objective differential evolution operation on the second group of CNN models to generate a second offspring population; evaluate the second offspring population, and combine the second offspring population and the second parent population into a new second parent population; select, from the new second parent population, non-dominated solutions to a current multi-objective optimization problem, wherein for any non-dominated solution, no any solution that is superior to the non-dominated solution on all optimization objectives is present in the new second parent population; update an external archive to save the non-dominated solutions;
construct a next-generation population by tournament selection; if the stop criterion is met, decode a solution with the highest accuracy in the external archive; and output a constructed CNN ensemble model, wherein the CNN ensemble model is a deep ensemble model for image classification, and a structure of the deep ensemble model comprises a shared block.

### Claim 14 (depends on 1)

A computer device, comprising a memory, a processor, and a computer program stored on the memory and runnable on the processor, wherein the processor, when executing the program, implements the method according to claim 1.
