# US 2021/0342613 A1 · Method and apparatus for detecting an abnormal driving posture, device, vehicle and medium

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

- Number: US 2021/0342613 A1
- Document ID: US20210342613A1
- Status: Published application
- Kind: A1
- Application number: 17/379,077
- Filed: 2021-07-19
- Published: 2021-11-04
- Earliest claimed: 2020-10-22
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science and Technology Co., Ltd.
- Inventors: Keyao WANG; Haocheng FENG; Haixiao YUE
- Web page: https://patentgrep.com/patent/US20210342613A1

## CPC

- G06V 20/597: {Recognising the driver's state or behaviour, e.g. attention or drowsiness}
- G06F 18/21: Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06V 10/82: using neural networks
- G06V 40/10: Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V 40/168: {Feature extraction; Face representation}
- Y02T 10/40: Engine management systems
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- Y02T: CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION

## Abstract

Disclosed are a method and apparatus for detecting an abnormal driving posture, a device, a vehicle and a medium. The specific solution is described below. A human body key point is determined according to an acquired original image of a driving user during driving, where the human body key point includes a shoulder key point; and an abnormal driving posture of the driving user is detected according to the shoulder key point.

## Claims

### Claim 1

A method for detecting an abnormal driving posture, comprising:
determining, according to an acquired original image of a driving user during driving, a human body key point, wherein the human body key point comprises a shoulder key point; and
detecting, according to the shoulder key point, an abnormal driving posture of the driving user.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining, according to the acquired original image of the driving user during driving, the human body key point comprises:
determining, by adopting a trained shoulder key point detection model and according to the acquired original image of the driving user during driving, the shoulder key point,
wherein the shoulder key point detection model is obtained by training a pre-constructed first neural network model according to an acquired sample image of a sample user during driving and a shoulder key point tag.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the human body key point further comprises a face key point; and
the determining, according to the acquired original image of the driving user during driving, the human body key point comprises:
determining, by adopting a trained human body key point detection model and according to the acquired original image of the driving user during driving, the shoulder key point and the face key point,
wherein the human body key point detection model is obtained by training a pre-constructed second neural network model according to an acquired sample image of a sample user during driving, a shoulder key point tag and a face key point tag.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the second neural network model comprises a shoulder key point detection module and a face key point detection module; and
the training the pre-constructed second neural network model comprises:
determining, by adopting the shoulder key point detection module, a shoulder key point prediction result of the sample image;
determining, by adopting the face key point detection module, a face key point prediction result of the sample image; and
adjusting, according to the shoulder key point prediction result, the face key point prediction result, the shoulder key point tag and the face key point tag, network parameters in the second neural network model.

### Claim 5 (depends on 4)

The method according to claim 4, wherein an objective loss function adopted during training the pre-constructed second neural network model is constructed by steps of:
respectively determining, according to a number of shoulder key point tags and a number of face key point tags, a shoulder loss weight and a face loss weight;
determining, according to the shoulder key point prediction result of the sample image and the shoulder key point tag, a shoulder loss value; and determining, according to the face key point prediction result of the sample image and the face key point tag, a face loss value; and
respectively weighting, according to the shoulder loss weight and the face loss weight, the shoulder loss value and the face loss value to obtain the objective loss function.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the determining, according to the acquired original image of the driving user during driving, the human body key point comprises:
recognizing a face region in the acquired original image of the driving user during driving;
expanding the face region to obtain a candidate region, wherein the candidate region comprises a shoulder region;
cutting the original image according to the candidate region to obtain a target image; and
determining, according to the target image, the human body key point.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the expanding the face region to obtain the candidate region comprises:
expanding, by taking the face region as a center, the face region towards a direction of two ears by a first proportion and towards a direction perpendicular to the direction of the two ears by a second proportion respectively to obtain the candidate region.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the detecting, according to the shoulder key point, the abnormal driving posture of the driving user comprises:
determining, according to at least two shoulder key points, a shoulder connecting line; and
detecting, according to an included angle between the shoulder connecting line and a standard reference line, the abnormal driving posture of the driving user.

### Claim 9

An apparatus for detecting an abnormal driving posture, comprising:
a human body key point determination module, which is configured to determine, according to an acquired original image of a driving user during driving, a human body key point, wherein the human body key point comprises a shoulder key point; and
an abnormal driving posture detection module, which is configured to detect, according to the shoulder key point, an abnormal driving posture of the driving user.

### Claim 10 (depends on 9)

The apparatus according to claim 9, wherein the human body key point determination module comprises:
a shoulder key point determination unit, which is configured to determine, by adopting a trained shoulder key point detection model and according to the acquired original image of the driving user during driving, the shoulder key point;
wherein the shoulder key point detection model is obtained by training a pre-constructed first neural network model according to an acquired sample image of a sample user during driving and a shoulder key point tag.

### Claim 11 (depends on 9)

The apparatus according to claim 9, wherein the human body key point further comprises a face key point; and
the human body key point determination module comprises:
a human body key point determination unit, which is configured to determine, by adopting a trained human body key point detection model and according to the acquired original image of the driving user during driving, the shoulder key point and the face key point;
wherein the human body key point detection model is obtained by training a pre-constructed second neural network model according to an acquired sample image of a sample user during driving, a shoulder key point tag and a face key point tag.

### Claim 12 (depends on 11)

The apparatus according to claim 11, wherein the second neural network model comprises a shoulder key point detection module and a face key point detection module; wherein
the shoulder key point detection module is configured to determine a shoulder key point prediction result of the sample image; and
the face key point detection module is configured to determine a face key point prediction result of the sample image; and
the apparatus further comprises a parameter adjustment module, which is configured to:
adjust, according to the shoulder key point prediction result, the face key point prediction result, the shoulder key point tag and the face key point tag, network parameters in the second neural network model.

### Claim 13 (depends on 12)

The apparatus according to claim 12, wherein the apparatus further comprises an objective loss function construction module, which is configured to construct an objective loss function during training the pre-constructed second neural network model; wherein
the objective loss function construction module comprises:
a loss weight determination unit, which is configured to determine, according to a number of shoulder key point tags and a number of face key point tags, a shoulder loss weight and a face loss weight respectively;
a loss value determination unit, which is configured to determine, according to the shoulder key point prediction result of the sample image and the shoulder key point tag, a shoulder loss value; and determine, according to the face key point prediction result of the sample image and the face key point tag, a face loss value; and
an objective loss function obtaining unit, which is configured to respectively weight, according to the shoulder loss weight and the face loss weight, the shoulder loss value and the face loss value to obtain the objective loss function.

### Claim 14 (depends on 9)

The apparatus according to claim 9, wherein the human body key point determination module comprises:
a face region recognition unit, which is configured to recognize a face region in the acquired original image of the driving user during driving;
a candidate region obtaining unit, which is configured to expand the face region to obtain a candidate region, wherein the candidate region comprises a shoulder region;
a target image obtaining unit, which is configured to cut the original image according to the candidate region to obtain a target image; and
a human body key point determination unit, which is configured to determine, according to the target image, the human body key point.

### Claim 15 (depends on 14)

The apparatus according to claim 14, wherein the candidate region obtaining unit comprises:
a candidate region obtaining subunit, which is configured to expand, by taking the face region as a center, the face region towards a direction of two ears by a first proportion and towards a direction perpendicular to the direction of the two ears by a second proportion respectively to obtain the candidate region.

### Claim 16 (depends on 9)

The apparatus according to claim 9, wherein the abnormal driving posture detection module comprises:
a shoulder connecting line determination unit, which is configured to determine, according to at least two shoulder key points, a shoulder connecting line; and
an abnormal driving posture detection unit, which is configured to detect, according to an included angle between the shoulder connecting line and a standard reference line, the abnormal driving posture of the driving user.

### Claim 17 (depends on 1)

An electronic device, comprising:
at least one processor; and
a memory communicatively connected to the at least one processor, wherein
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to cause the at least one processor to execute the method for detecting the abnormal driving posture of claim 1.

### Claim 18 (depends on 17)

A vehicle, comprising the electronic device of claim 17.

### Claim 19 (depends on 1)

A non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method for detecting the abnormal driving posture of claim 1.

### Claim 20 (depends on 2)

The method according to claim 2, wherein the detecting, according to the shoulder key point, the abnormal driving posture of the driving user comprises:
determining, according to at least two shoulder key points, a shoulder connecting line; and
detecting, according to an included angle between the shoulder connecting line and a standard reference line, the abnormal driving posture of the driving user.
