# US 2024/0003828 A1 · Method, device, system and computer readable medium for rapidly detecting pest egg in grain based on pest egg and pest hole structure features

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

- Number: US 2024/0003828 A1
- Document ID: US20240003828A1
- Status: Published application
- Kind: A1
- Application number: 18/116,658
- Filed: 2023-03-02
- Published: 2024-01-04
- Earliest claimed: 2022-07-03
- Assignees: Nanjing University of Finance & Economics
- Applicants: Nanjing University of Finance & Economics
- Inventors: Xiaolong Shao; Xiaojing Yang
- Web page: https://patentgrep.com/patent/US20240003828A1

## CPC

- G01N 21/95692: {Patterns showing hole parts, e.g. honeycomb filtering structures}
- G06V 20/188: {Vegetation}
- G01N 21/8851: {Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges (G01N21/8806 and G01N21/93 - G01N21/95692 take precedence; optical measurement of dimensions G01B11/00; optical scanning G02B26/10; image transformation G06T3/00; computerised image enhancement G06T5/00; image processing per se for flaw detection G06T7/0002)}
- G06T 7/0004: {Industrial image inspection}
- G01N 2021/8887: {based on image processing techniques}
- G06T 2207/10081: Computed x-ray tomography [CT]
- G06T 2207/30128: Food products
- G06T 2207/30188: Vegetation; Agriculture
- G01N: INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES (measuring or testing apparatus or processes other than immunoassay, involving enzymes or microorganisms C12M, C12Q)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method, device, system and computer-readable medium for rapidly detecting a pest egg in a grain based on a pest egg structure feature and a pest hole structure feature is disclosed. The detecting method includes acquiring a gray digital image of a grain pile and three-dimensionally reconstructing it to obtain a three-dimensional image of a multi-grain pile; segmenting the three-dimensional image of the multi-grain pile to obtain one or more grains-contained unit images; identifying pest hole areas in each of one or more grains-contained unit images based on a biological feature of a pest; determining whether the pest hole area is a pest egg area based on the pest hole structure feature; and determining whether an alive pest egg exists in the pest egg area based on a geometric feature and a physical feature of the pest egg.

## Claims

### Claim 1

A method for rapidly detecting a pest egg in a grain based on a pest egg structure feature and a pest hole structure feature, comprising:
acquiring a scanned image of a grain pile, wherein the scanned image of the grain pile comprises a plurality of gray digital images;
three-dimensionally reconstructing the scanned image of the grain pile to obtain a three-dimensional image of a multi-grain pile;
segmenting the three-dimensional image of the multi-grain pile to obtain one or more grains-contained unit images;
identifying a pest hole area in each of the one or more grains-contained unit images based on a biological feature of a pest;
determining whether the pest hole area is a pest egg area based on the pest hole structure feature; and
determining whether a pest egg is alive or dead in the pest egg area based on a geometric feature and a physical feature of the pest egg.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the identifying a pest hole area in each of the one or more grains-contained unit image based on a biological feature of a pest comprises:
based on spherical or quasi-spherical hollow hole space in the gray images, determining whether the hollow space is located in a superficial layer below a surface of a single grain and is in a closed state, wherein if the hollow space is located in the superficial layer below the surface of the single grain and is in the closed state, the hollow space is determined as the pest hole area, and if the hollow space is not located in the superficial layer below the surface of the single grain and is in the closed state, the hollow space is determined as a non-pest hole area.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the determining whether the pest hole area is a pest egg area based on the pest hole structure feature comprises:
determining whether the pest egg area is a pest egg area based on step change of gray level in the pest hole area.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the determining whether the pest egg area is a pest egg area based on step change of gray level in the pest hole area comprises:
if the gray level in the pest hole area shows a high-low-high step change mode, or a low-high-low step change mode, determining the pest hole area as the pest egg area, and if the gray level in the pest hole area is single, determining the pest hole as a bitted hollow hole.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the determining whether a pest egg is alive or dead in the pest egg area based on a geometric feature and a physical feature of the pest egg comprises:
determining whether the pest egg exists in the pest egg area and a survival state of the pest egg based on the geometric feature and the physical feature of the pest egg;
wherein the geometric feature of the pest egg comprise length, width, height, specific surface area, volume and sphericity features of the pest egg, and
wherein the physical feature comprises density feature of the pest egg.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the determining whether the pest egg exists in the pest egg area and a survival state of the pest egg based on the geometric feature and physical feature of the pest egg comprises:
based on the fact that the length, width, height, volume, specific surface area, sphericity features and physical feature of the pest egg are within a predetermined range of a pest egg model, determining that the alive pest egg exists in the pest egg area, otherwise determining that the pest egg area contains a dead egg or is a debris-filled hollow hole.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the density feature of the pest egg is set to be estimated based on linear relationship between grayscale values of the gray images and density, and the linear relationship is expressed as:
(
ρ
1
-
ρ
2
G
1
-
G
2
)
=
(
ρ
1
-
ρ
3
G
1
-
G
3
)
where ρ1, ρ2, ρ3 represent an air density, a grain density, and a pest egg density, respectively; G1, G2, and G3 represent an air grayscale value, a grain grayscale value, and a pest egg grayscale value, respectively;
the grain density ρ2 is calculated based on M/V, where M is a mass of the grain, and V is a volume of the grain;
the air density ρ1 is determined based on an altitude and a temperature of a test area;
the air grayscale values G1, the grain air grayscale value G2 and the pest egg grayscale value G3, s are calculated as follows:
reading the grayscale values of the gray images, randomly selecting grayscale values of several points in a first image area between the pest egg and the grain in the pest egg area and computing an average of the grayscale values in the first image area as the air grayscale value G1, randomly selecting grayscale values of several points in a second image area corresponding to a non-pest hole area of the grain and computing an average of the grayscale values in the second image area as the wheat grayscale value G2, randomly selecting grayscale values of several points in a third image area corresponding to an interior of the pest egg in the pest egg area and computing an average of the grayscale values in the third image area as the pest egg grayscale value G3.

### Claim 8

A device for rapidly detecting a pest egg in a grain based on a pest egg structure feature and a pest hole structure feature, comprising:
an image acquisition module, configured to acquire a scanned image of a grain pile, wherein the scanned image of the grain pile is gray digital images;
a three-dimensional reconstruction module, configured to three-dimensionally reconstruct the scanned image of the grain pile to obtain a three-dimensional image of a multi-grain pile;
an image segmentation module, configured to segment the three-dimensional image of the multi-grain pile to obtain one or more grains-contained unit images;
a pest hole area identification module, configured to identify a pest hole area in each of the one or more grains-contained unit images based on a biological feature of a pest;
a pest egg area determination module, configured to determine whether the pest hole area is a pest egg area based on the pest hole structure feature; and
a pest egg determination module, configured to determine whether a pest egg is alive or dead in the pest egg area based on a geometric feature and a physical feature of the pest egg.

### Claim 9 (depends on 1)

A system for rapidly detecting a pest egg in a grain based on a pest egg structure feature and a pest hole structure feature, comprising:
one or more processors;
a memory for storing executable instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising a process of performing the method of claim 1.

### Claim 10 (depends on 1)

A computer-readable medium for storing software, comprising instructions executable by one or more computers, wherein the instructions comprise a process of performing the method of claim 1.

### Claim 11 (depends on 6)

The method according to claim 6, wherein the density feature of the pest egg is set to be estimated based on linear relationship between grayscale values of the gray images and density, and the linear relationship is expressed as:
(
ρ
1
-
ρ
2
G
1
-
G
2
)
=
(
ρ
1
-
ρ
3
G
1
-
G
3
)
where ρ1, ρ2, ρ3 represent an air density, a grain density, and a pest egg density, respectively; G1, G2, and G3 represent an air grayscale value, a grain grayscale value, and a pest egg grayscale value, respectively;
the grain density ρ2 is calculated based on M/V, where M is a mass of the grain, and V is a volume of the grain;
the air density ρ1 is determined based on an altitude and a temperature of a test area;
the air grayscale values G1, the grain air grayscale value G2 and the pest egg grayscale value G3, s are calculated as follows:
reading the grayscale values of the gray images, randomly selecting grayscale values of several points in a first image area between the pest egg and the grain in the pest egg area and computing an average of the grayscale values in the first image area as the air grayscale value G1, randomly selecting grayscale values of several points in a second image area corresponding to a non-pest hole area of the grain and computing an average of the grayscale values in the second image area as the wheat grayscale value G2, randomly selecting grayscale values of several points in a third image area corresponding to an interior of the pest egg in the pest egg area and computing an average of the grayscale values in the third image area as the pest egg grayscale value G3.

### Claim 12 (depends on 9)

The system according to claim 9, wherein the identifying a pest hole area in each of the one or more grains-contained unit image based on a biological feature of a pest comprises:
based on spherical or quasi-spherical hollow hole space in the gray images, determining whether the hollow space is located in a superficial layer below a surface of a single grain and is in a closed state, wherein if the hollow space is located in the superficial layer below the surface of the single grain and is in the closed state, the hollow space is determined as the pest hole area, and if the hollow space is not located in the superficial layer below the surface of the single grain and is in the closed state, the hollow space is determined as a non-pest hole area.

### Claim 13 (depends on 9)

The system according to claim 9, wherein the determining whether the pest hole area is a pest egg area based on the pest hole structure feature comprises:
determining whether the pest egg area is a pest egg area based on step change of gray level in the pest hole area.

### Claim 14 (depends on 13)

The system according to claim 13, wherein the determining whether the pest egg area is a pest egg area based on step change of gray level in the pest hole area comprises:
if the gray level in the pest hole area shows a high-low-high step change mode, or a low-high-low step change mode, determining the pest hole area as the pest egg area, and if the gray level in the pest hole area is single, determining the pest hole as a bitted hollow hole.

### Claim 15 (depends on 9)

The system according to claim 9, wherein the determining whether a pest egg is alive or dead in the pest egg area based on a geometric feature and a physical feature of the pest egg comprises:
determining whether the pest egg exists in the pest egg, area and a survival state of the pest egg based on the geometric feature and the physical feature of the pest egg;
wherein the geometric feature of the pest egg comprise length, width, height, specific surface area, volume and sphericity features of the pest egg, and
wherein the physical feature comprises density feature of the pest egg.

### Claim 16 (depends on 15)

The system according to claim 15, wherein the determining whether the pest egg exists in the pest egg area and a survival state of the pest egg based on the geometric feature and physical feature of the pest egg comprises:
based on the fact that the length, width, height, volume, specific surface area, sphericity features and physical feature of the pest egg are within a predetermined range of a pest egg model, determining that the alive pest egg exists in the pest egg area, otherwise determining that the pest egg area contains a dead egg or is a debris-filled hollow hole.

### Claim 17 (depends on 15)

The system according to claim 15, wherein the density feature of the pest egg is set to be estimated based on linear relationship between grayscale values of the gray images and density, and the linear relationship is expressed as:
(
ρ
1
-
ρ
2
G
1
-
G
2
)
=
(
ρ
1
-
ρ
3
G
1
-
G
3
)
where ρ1, ρ2, ρ3 represent an air density, a grain density, and a pest egg density, respectively; G1, G2, and G3 represent an air grayscale value, a grain grayscale value, and a pest egg grayscale value, respectively;
the grain density ρ2 is calculated based on M/V, where M is a mass of the grain, and V is a volume of the grain;
the air density ρ1 is determined based on an altitude and a temperature of a test area;
the air grayscale values G1, the grain air grayscale value G2 and the pest egg grayscale value G3, s are calculated as follows:
reading the grayscale values of the gray images, randomly selecting grayscale values of several points in a first image area between the pest egg and the grain in the pest egg area and computing an average of the grayscale values in the first image area as the air grayscale value G1, randomly selecting grayscale values of several points in a second image area corresponding to a non-pest hole area of the grain and computing an average of the grayscale values in the second image area as the wheat grayscale value G2, randomly selecting grayscale values of several points in a third image area corresponding to an interior of the pest egg in the pest egg area and computing an average of the grayscale values in the third image area as the pest egg grayscale value G3.

### Claim 18 (depends on 16)

The system according to claim 16, wherein the density feature of the pest egg is set to be estimated based on linear relationship between grayscale values of the gray images and density, and the linear relationship is expressed as:
(
ρ
1
-
ρ
2
G
1
-
G
2
)
=
(
ρ
1
-
ρ
3
G
1
-
G
3
)
where ρ1, ρ2, ρ3 represent an air density, a grain density, and a pest egg density, respectively; G1, G2, and G3 represent an air grayscale value, a grain grayscale value, and a pest egg grayscale value, respectively;
the grain density ρ2 is calculated based on M/V, where M is a mass of the grain, and V is a volume of the grain;
the air density ρ1 is determined based on an altitude and a temperature of a test area;
the air grayscale values G1, the grain air grayscale value G2 and the pest egg grayscale value G3, s are calculated as follows:
reading the grayscale values of the gray images, randomly selecting grayscale values of several points in a first image area between the pest egg and the grain in the pest egg area and computing an average of the grayscale values in the first image area as the air grayscale value G1, randomly selecting grayscale values of several points in a second image area corresponding to a non-pest hole area of the grain and computing an average of the grayscale values in the second image area as the wheat grayscale value G2, randomly selecting grayscale values of several points in a third image area corresponding to an interior of the pest egg in the pest egg area and computing an average of the grayscale values in the third image area as the pest egg grayscale value G3.

### Claim 19 (depends on 10)

The computer-readable medium according to claim 10, wherein the identifying a pest hole area in each of the one or more grains-contained unit image based on a biological feature of a pest comprises:
based on spherical or quasi-spherical hollow hole space in the gray images, determining whether the hollow space is located in a superficial layer below a surface of a single grain and is in a closed state, wherein if the hollow space is located in the superficial layer below the surface of the single grain and is in the closed state, the hollow space is determined as the pest hole area, and if the hollow space is not located in the superficial layer below the surface of the single grain and is in the closed state, the hollow space is determined as a non-pest hole area.

### Claim 20 (depends on 10)

The computer-readable medium according to claim 10, wherein the determining whether the pest hole area is a pest egg area based on the pest hole structure feature comprises:
determining whether the pest egg area is a pest egg area based on step change of gray level in the pest hole area.
