# US 2021/0342722 A1 · Air quality prediction model training method, air quality prediction method, electronic device and storage medium

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

- Number: US 2021/0342722 A1
- Document ID: US20210342722A1
- Status: Published application
- Kind: A1
- Application number: 17/376,256
- Filed: 2021-07-15
- Published: 2021-11-04
- Earliest claimed: 2020-12-23
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science and Technology Co., Ltd.
- Inventors: Jindong Han; Hao Liu
- Web page: https://patentgrep.com/patent/US20210342722A1

## CPC

- G06N 3/08: Learning methods
- G06N 5/04: Inference or reasoning models
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An air quality prediction model training method, an air quality prediction method, an electronic device and a storage medium are provided, and relate to the technical field of artificial intelligence, such as deep learning and big data. The training method includes: establishing an air quality prediction model according to spatial correlation information among a plurality of regions; and adjusting the air quality prediction model according to air quality observation values for the plurality of regions and air quality prediction values for the plurality of regions output by the air quality prediction model. The accuracy of air quality prediction result can be improved.

## Claims

### Claim 1

An air quality prediction model training method, comprising:
establishing an air quality prediction model according to spatial correlation information among a plurality of regions; and
adjusting the air quality prediction model according to air quality observation values for the plurality of regions and air quality prediction values for the plurality of regions output by the air quality prediction model.

### Claim 2 (depends on 1)

The method of claim 1, wherein the spatial correlation information among the plurality of regions comprises: spatial correlation information among a plurality of levels of regions, and
wherein air quality correlation information among the plurality of levels of regions comprises:
spatial correlation information among same level of regions; and/or
spatial correlation information among different levels of regions.

### Claim 3 (depends on 2)

The method of claim 2, wherein the plurality of levels of regions comprise first-level regions, and spatial correlation information among the first-level regions is determined according to an adjacency matrix of the first-level regions and an air quality feature matrix of the first-level regions.

### Claim 4 (depends on 3)

The method of claim 3, wherein the plurality of levels of regions comprise second-level regions, and air quality correlation information among the second-level regions is determined according to an adjacency matrix of the second-level regions, the air quality feature matrix of the first-level regions, and an allocation probability matrix of the second-level regions.

### Claim 5 (depends on 4)

The method of claim 4, wherein the adjacency matrix of the second-level regions is determined according to the adjacency matrix of the first-level regions and the allocation probability matrix of the second-level regions, and/or
wherein the plurality of levels of regions comprises third-level regions, and the allocation probability matrix of the second-level regions is determined according to a soft allocation matrix of the second-level regions, and an indication matrix indicating whether the first-level regions and the second-level regions belong to same third-level regions.

### Claim 6 (depends on 5)

The method of claim 5, wherein the soft allocation matrix of the second level regions is determined according to an environmental context feature of the first-level regions and the adjacency matrix of the first-level regions.

### Claim 7 (depends on 4)

The method of claim 4, wherein the air quality correlation information among the second-level regions is calculated by:
multiplying the air quality feature matrix of the first-level regions by a transpose matrix of the allocation probability matrix of the second-level regions to obtain a first node characterization matrix of the second-level regions;
performing a graph convolution operation on the first node characterization matrix of the second-level regions and the adjacency matrix of the second-level regions to obtain a second node characterization matrix of the second-level regions; and
performing first gating operation on a product of the second node characterization matrix of the second-level regions and the allocation probability matrix of the second-level regions to obtain the air quality correlation information among the second-level regions.

### Claim 8 (depends on 7)

The method of claim 7, wherein the performing the first gating operation on the product of the second node characterization matrix of the second-level regions and the allocation probability matrix of the second-level regions, comprises:
calculating an environmental context feature matrix of the first-level regions, a weather feature matrix of the first-level regions and a first gating parameter matrix by using an activation function to obtain the first gating operation matrix; and
multiplying the first gating operation matrix, the second node characterization matrix of the second level regions, and the allocation probability matrix of the second level regions.

### Claim 9 (depends on 4)

The method of claim 4, wherein the plurality of levels of regions comprises third-level regions, and air quality correlation information among the third-level regions is determined according to an adjacency matrix of the third-level regions, an air quality feature value matrix of the first-level regions, an allocation probability matrix of the third-level regions, and the allocation probability matrix of the second-level regions.

### Claim 10 (depends on 9)

The method of claim 9, wherein the adjacency matrix of the third-level regions is determined according to the allocation probability matrix of the third-level regions and the air quality feature matrix of the first-level regions, and/or
wherein the allocation probability matrix of the third-level regions is determined according to a soft allocation matrix of the third-level regions and an indication matrix indicating whether the second-level regions belong to the third-level regions.

### Claim 11 (depends on 9)

The method of claim 9, wherein the soft allocation matrix of the third-level regions is determined according to the adjacency matrix of the second-level regions and an environmental context feature matrix of the first-level regions.

### Claim 12 (depends on 9)

The method of claim 9, wherein the air quality correlation information among the third-level regions is determined by:
multiplying a transpose matrix of the allocation probability matrix of the third-level regions by the air quality feature matrix of the first-level regions to obtain a first node characterization matrix of the third-level regions;
performing a graph convolution operation on the first node characterization matrix of the third-level regions and the adjacency matrix of the third-level regions to obtain a second node characterization matrix of the third-level regions; and
performing a second gating operation on the allocation probability matrix of the second-level regions, the allocation probability matrix of the third-level regions and the second node characterization matrix of the third-level regions to obtain the air quality correlation information among the third-level regions.

### Claim 13 (depends on 12)

The method of claim 12, wherein the performing the second gating operation on the allocation probability matrix of the second-level regions, the allocation probability matrix of the third-level regions and the second node characterization matrix of the third-level regions, comprises:
calculating an environmental context feature matrix of the first-level regions, a weather feature matrix of the first-level regions and a second gating parameter matrix by using an activation function to obtain the second gating operation matrix; and
multiplying the allocation probability matrix of the second-level regions, the allocation probability matrix of the third-level regions, and the second node characterization matrix of the third-level regions by the second gating operation matrix.

### Claim 14 (depends on 1)

The method of claim 1, wherein the establishing the air quality prediction model according to the spatial correlation information among the plurality of regions, comprises:
establishing the air quality prediction model according to spatial-and-temporal correlation information among the plurality of regions, the spatial-and-temporal correlation information being determined according to historical spatial-and-temporal correlation information and the spatial correlation information; and/or
the adjusting the air quality prediction model according to the air quality observation values for the plurality of regions and the air quality prediction values for the plurality of regions output by the air quality prediction model, comprises:
calculating loss values according to least square error of the observation values and the prediction values; and
adjusting the air quality prediction model according to the loss values.

### Claim 15 (depends on 1)

An air quality prediction method, comprising:
inputting input data into an air quality prediction model, the air quality prediction model being the air quality prediction model obtained by the air quality prediction model training method of claim 1;
acquiring spatial correlation information of the plurality of regions according to input data by adopting the air quality prediction model; and
obtaining the air quality prediction values according to the spatial correlation information of the plurality of regions by adopting the air quality prediction model.

### Claim 16 (depends on 15)

The method of claim 15, wherein the obtaining the air quality prediction values according to the spatial correlation information of the plurality of regions by adopting the air quality prediction model, further comprises:
obtaining spatial-and-temporal correlation information of the plurality of regions according to the spatial correlation information of the plurality of regions by adopting the air quality prediction model; and
obtaining the air quality prediction values according to the spatial-and-temporal correlation information of the plurality of regions by adopting the air quality prediction model.

### Claim 17

An electronic device, comprising:
at least one processor; and
a memory communicatively connected to the at least one processor; wherein
the memory is stored with instructions executable by the at least one processor to enable the at least one processor to perform operations of:
establishing an air quality prediction model according to spatial correlation information among a plurality of regions; and
adjusting the air quality prediction model according to air quality observation values for the plurality of regions and air quality prediction values for the plurality of regions output by the air quality prediction model.

### Claim 18 (depends on 17)

An electronic device, comprising:
at least one processor; and
a memory communicatively connected to the at least one processor; wherein
the memory is stored with instructions executable by the at least one processor to enable the at least one processor to perform operations of:
inputting input data into an air quality prediction model, the air quality prediction model being the air quality prediction model obtained by the electronic device of claim 17;
acquiring spatial correlation information of the plurality of regions according to input data by adopting the air quality prediction model; and
obtaining the air quality prediction values according to the spatial correlation information of the plurality of regions by adopting the air quality prediction model.

### Claim 19

A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform operations of:
establishing an air quality prediction model according to spatial correlation information among a plurality of regions; and
adjusting the air quality prediction model according to air quality observation values for the plurality of regions and air quality prediction values for the plurality of regions output by the air quality prediction model.

### Claim 20 (depends on 19)

A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform operations of:
inputting input data into an air quality prediction model, the air quality prediction model being the air quality prediction model obtained by the non-transitory computer-readable storage medium of claim 19;
acquiring spatial correlation information of the plurality of regions according to input data by adopting the air quality prediction model; and
obtaining the air quality prediction values according to the spatial correlation information of the plurality of regions by adopting the air quality prediction model.
