# US 2024/0005633 A1 · Person re-identification method, system, and device, and computer readable storage medium

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

- Number: US 2024/0005633 A1
- Document ID: US20240005633A1
- Status: Published application
- Kind: A1
- Application number: 17/914,799
- Filed: 2020-09-24
- Published: 2024-01-04
- Earliest claimed: 2020-04-23
- Assignees: Inspur Suzhou Intelligent Technology Co., Ltd.
- Applicants: Inspur Suzhou Intelligent Technology Co., Ltd.
- Inventors: Runze ZHANG; Liang JIN; Zhenhua GUO
- Web page: https://patentgrep.com/patent/US20240005633A1

## CPC

- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/82: using neural networks
- G06V 40/10: Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Disclosed are a person Re-identification (Re-ID) method, system, and device, and a computer-readable storage medium. The method includes: acquiring a sample set to be trained (S101); training a pre-constructed person Re-ID model by data re-sampling and cross-validation methods based on the sample set to be trained to obtain a trained person Re-ID model (S102); and performing person Re-ID based on the trained person Re-ID model, wherein persons in any two groups are of different classes after the sample set to be trained is grouped according to the cross-validation method (S103).

## Claims

### Claim 1

A person Re-identification (Re-ID) method, characterized by comprising:
acquiring a sample set to be trained;
training a pre-constructed person Re-ID model by a data re-sampling method and a cross-validation method based on the sample set to be trained to obtain a trained person Re-ID model; and
performing person Re-ID based on the trained person Re-ID model;
wherein persons in any two groups are of different classes after the sample set to be trained is grouped according to the cross-validation method.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the training the pre-constructed person Re-ID model by the data re-sampling method and the cross-validation method based on the sample set to be trained to obtain the trained person Re-ID model comprises:
removing an image of a person with an image number greater than a first preset value from the sample set to be trained to obtain a remaining sample set;
determining a first target person with an image number less than a second preset value in the remaining sample set;
duplicating an image of the first target person to obtain a first duplicate image;
setting the first duplicate image and the remaining sample set as a first target sample set; and
training the pre-constructed person Re-ID model by the cross-validation method based on the first target sample set.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the training the pre-constructed person Re-ID model by the cross-validation method based on the first target sample set comprises:
determining a second target person with an image number greater than the second preset value and less than the first preset value in the first target sample set, duplicating an image of the second target person to obtain a second duplicate image, and setting the second duplicate image and the first target sample set as a second target sample set, so as to perform training based on the second target sample set.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the first preset value comprises 100, the second preset value comprises 4, and the cross-validation method comprises a 4-fold cross-validation method.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the training the pre-constructed person Re-ID model by the data re-sampling method and the cross-validation method based on the sample set to be trained to obtain the strained person Re-ID model comprises:
determining a hyperparameter type, hyperparameter search space, and hyperparameter adjustment priority of the pre-constructed person Re-ID model; and
training the pre-constructed person Re-ID model based on the hyperparameter type, the hyperparameter search space, and the hyperparameter adjustment priority.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the hyperparameter type comprises an image number of each person, a boundary of image number, an initial learning rate, a training cycle, a triplet loss threshold, and a Rerank parameter set;
wherein a hyperparameter search space of the image number of each person comprises {2, 4, 8}; a hyperparameter search space of the boundary of image number comprises {10, 30, 50, 70, 100}; a hyperparameter search space of the initial learning rate comprises {0.00035, 0.001, 0.003, 0.01}; a hyperparameter search space of the training cycle comprises {80, 120, 160, 240}; a hyperparameter search space of the triplet loss threshold comprises {0.3, 1.2, 4.8, 10.0, 20.0}; a hyperparameter search space of k1 in the Rerank parameter set comprises {1, 5, 10, 15, 20}; a hyperparameter search space of k2 in the Rerank parameter set comprises {1, 2, 3, 4, 5, 6}; a hyperparameter search space of λ in the Rerank parameter set comprises {0.3, 0.6, 0.9}; and
a sequence of the hyperparameter adjustment priority from high to low comprises: the training cycle, the initial learning rate, the image number of each person, the triplet loss threshold, the boundary of image number, k1, k2, and λ.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the training the pre-constructed person Re-ID model by the data re-sampling method and the cross-validation method based on the sample set to be trained comprises:
dividing the sample set to be trained into N grouped sample sets according to person classes, a value of N being equal to a fold count of the cross-validation method;
selecting N−1 grouped sample sets in the N grouped sample sets as a training set, and setting a remaining grouped sample set as a validation set; and
training the pre-constructed person Re-ID model with the training set, validating the trained person Re-ID model with the validation set, and setting an average value of values of mAP and Rank1 computed with the validation set as an accuracy value of the trained person Re-ID model, so as to perform optimum selection on the trained person Re-ID model based on the accuracy value.

### Claim 8

(canceled)

### Claim 9

A person Re-identification (Re-ID) device, comprising:
a memory, configured to store a computer program;
a processor, configured to execute the computer program to implement a person Re-ID method, wherein the person Re-ID method comprises:
acquiring a sample set to be trained;
training a pre-constructed person Re-ID model by a data re-sampling method and a cross-validation method based on the sample set to be trained to obtain a trained person Re-ID model; and
performing person Re-ID based on the trained person Re-ID model;
wherein persons in any two groups are of different classes after the sample set to be trained is grouped according to the cross-validation method.

### Claim 10

A computer-readable storage medium, having a computer program stored thereon which, when executed by a processor, implements a person Re-identification (Re-ID) method, wherein the person Re-ID method comprises:
acquiring a sample set to be trained;
training a pre-constructed person Re-ID model by a data re-sampling method and a cross-validation method based on the sample set to be trained to obtain a trained person Re-ID model; and
performing person Re-ID based on the trained person Re-ID model;
wherein persons in any two groups are of different classes after the sample set to be trained is grouped according to the cross-validation method.

### Claim 11 (depends on 9)

The person Re-identification (Re-ID) device according to claim 9, wherein the training the pre-constructed person Re-ID model by the data re-sampling method and the cross-validation method based on the sample set to be trained to obtain the trained person Re-ID model comprises:
removing an image of a person with an image number greater than a first preset value from the sample set to be trained to obtain a remaining sample set;
determining a first target person with an image number less than a second preset value in the remaining sample set;
duplicating an image of the first target person to obtain a first duplicate image;
setting the first duplicate image and the remaining sample set as a first target sample set; and
training the pre-constructed person Re-ID model by the cross-validation method based on the first target sample set.

### Claim 12 (depends on 11)

The person Re-identification (Re-ID) device according to claim 11, wherein the training the pre-constructed person Re-ID model by the cross-validation method based on the first target sample set comprises:
determining a second target person with an image number greater than the second preset value and less than the first preset value in the first target sample set, duplicating an image of the second target person to obtain a second duplicate image, and setting the second duplicate image and the first target sample set as a second target sample set, so as to perform training based on the second target sample set.

### Claim 13 (depends on 11)

The person Re-identification (Re-ID) device according to claim 11, wherein the first preset value comprises 100, the second preset value comprises 4, and the cross-validation method comprises a 4-fold cross-validation method.

### Claim 14 (depends on 13)

The person Re-identification (Re-ID) device according to claim 13, wherein the training the pre-constructed person Re-ID model by the data re-sampling method and the cross-validation method based on the sample set to be trained to obtain the trained person Re-ID model comprises:
determining a hyperparameter type, hyperparameter search space, and hyperparameter adjustment priority of the pre-constructed person Re-ID model; and
training the pre-constructed person Re-ID model based on the hyperparameter type, the hyperparameter search space, and the hyperparameter adjustment priority.

### Claim 15 (depends on 14)

The person Re-identification (Re-ID) device according to claim 14, wherein the hyperparameter type comprises an image number of each person, a boundary of image number, an initial learning rate, a training cycle, a triplet loss threshold, and a Rerank parameter set;
wherein a hyperparameter search space of the image number of each person comprises {2, 4, 8}; a hyperparameter search space of the boundary of image number comprises {10, 30, 50, 70, 100}; a hyperparameter search space of the initial learning rate comprises {0.00035, 0.001, 0.003, 0.01}; a hyperparameter search space of the training cycle comprises {80, 120, 160, 240}; a hyperparameter search space of the triplet loss threshold comprises {0.3, 1.2, 4.8, 10.0, 20.0}; a hyperparameter search space of k1 in the Rerank parameter set comprises {1, 5, 10, 15, 20}; a hyperparameter search space of k2 in the Rerank parameter set comprises {1, 2, 3, 4, 5, 6}; a hyperparameter search space of λ in the Rerank parameter set comprises {0.3, 0.6, 0.9}; and
a sequence of the hyperparameter adjustment priority from high to low comprises: the training cycle, the initial learning rate, the image number of each person, the triplet loss threshold, the boundary of image number, k1, k2, and λ.

### Claim 16 (depends on 15)

The person Re-identification (Re-ID) device according to claim 15, wherein the training the pre-constructed person Re-ID model by the data re-sampling method and the cross-validation method based on the sample set to be trained comprises:
dividing the sample set to be trained into N grouped sample sets according to person classes, a value of N being equal to a fold count of the cross-validation method;
selecting N−1 grouped sample sets in the N grouped sample sets as a training set, and setting a remaining grouped sample set as a validation set; and
training the pre-constructed person Re-ID model with the training set, validating the trained person Re-ID model with the validation set, and setting an average value of values of mAP and Rank1 computed with the validation set as an accuracy value of the trained person Re-ID model, so as to perform optimum selection on the trained person Re-ID model based on the accuracy value.

### Claim 17 (depends on 10)

The computer-readable storage medium according to claim 10, wherein the training the pre-constructed person Re-ID model by the data re-sampling method and the cross-validation method based on the sample set to be trained to obtain the trained person Re-ID model comprises:
removing an image of a person with an image number greater than a first preset value from the sample set to be trained to obtain a remaining sample set;
determining a first target person with an image number less than a second preset value in the remaining sample set;
duplicating an image of the first target person to obtain a first duplicate image;
setting the first duplicate image and the remaining sample set as a first target sample set; and
training the pre-constructed person Re-ID model by the cross-validation method based on the first target sample set.

### Claim 18 (depends on 17)

The computer-readable storage medium according to claim 17, wherein the training the pre-constructed person Re-ID model by the cross-validation method based on the first target sample set comprises:
determining a second target person with an image number greater than the second preset value and less than the first preset value in the first target sample set, duplicating an image of the second target person to obtain a second duplicate image, and setting the second duplicate image and the first target sample set as a second target sample set, so as to perform training based on the second target sample set.

### Claim 19 (depends on 17)

The computer-readable storage medium according to claim 17, wherein the first preset value comprises 100, the second preset value comprises 4, and the cross-validation method comprises a 4-fold cross-validation method.

### Claim 20 (depends on 19)

The computer-readable storage medium according to claim 19, wherein the training the pre-constructed person Re-ID model by the data re-sampling method and the cross-validation method based on the sample set to be trained to obtain the trained person Re-ID model comprises:
determining a hyperparameter type, hyperparameter search space, and hyperparameter adjustment priority of the pre-constructed person Re-ID model; and
training the pre-constructed person Re-ID model based on the hyperparameter type, the hyperparameter search space, and the hyperparameter adjustment priority.

### Claim 21 (depends on 20)

The computer-readable storage medium according to claim 20, wherein the hyperparameter type comprises an image number of each person, a boundary of image number, an initial learning rate, a training cycle, a triplet loss threshold, and a Rerank parameter set;
wherein a hyperparameter search space of the image number of each person comprises {2, 4, 8}; a hyperparameter search space of the boundary of image number comprises {10, 30, 50, 70, 100}; a hyperparameter search space of the initial learning rate comprises {0.00035, 0.001, 0.003, 0.01}; a hyperparameter search space of the training cycle comprises {80, 120, 160, 240}; a hyperparameter search space of the triplet loss threshold comprises {0.3, 1.2, 4.8, 10.0, 20.0}; a hyperparameter search space of k1 in the Rerank parameter set comprises {1, 5, 10, 15, 20}; a hyperparameter search space of k2 in the Rerank parameter set comprises {1, 2, 3, 4, 5, 6}; a hyperparameter search space of λ in the Rerank parameter set comprises {0.3, 0.6, 0.9}; and
a sequence of the hyperparameter adjustment priority from high to low comprises: the training cycle, the initial learning rate, the image number of each person, the triplet loss threshold, the boundary of image number, k1, k2, and λ.
