# US 12,118,832 B1 · Method and system for analyzing and predicting vehicle stay behavior based on multi-task learning

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

- Number: US 12,118,832 B1
- Document ID: US12118832B1
- Status: Granted
- Kind: B1
- Application number: 18/492,767
- Filed: 2023-10-23
- Published: 2024-10-24
- Granted: 2024-10-15
- Earliest claimed: 2023-04-19
- Assignees: Zhejiang Lab
- Applicants: Zhejiang Lab
- Inventors: Hongyang Chen; Chenxi Liu; Zhu Xiao
- Web page: https://patentgrep.com/patent/US12118832B1

## CPC

- G07C 5/02: Registering or indicating driving, working, idle, or waiting time only (apparatus forming part of taximeters G07B13/00)
- G06Q 10/04: Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem" (market predictions or forecasting for commercial activities G06Q30/0202)
- G07C: TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

The present application discloses a method and a system for analyzing and predicting a vehicle stay behavior based on multi-task learning, and the method includes the following steps: acquiring vehicle GPS and OBD data including a vehicle ID, a travel start time, a start longitude, a start latitude, an end time, an end longitude, and an end latitude after desensitization; preprocessing vehicle GPS and OBD data to obtain vehicle stay behavior data including stay location and stay duration; extract a spatial-temporal characteristic of the preprocessed vehicle stay behavior data by a deep recurrent neural network; inputting the spatial-temporal characteristic into a multi-task learning and predicting network, and obtaining the correlation between a stay location prediction task and the stay duration prediction task based on the historical stay behavior of the vehicle through the multi-task learning and predicting network to predict the stay location and stay duration.

## Claims

### Claim 1

A method for analyzing and predicting a vehicle stay behavior based on multi-task learning, comprising:
S1, acquiring vehicle Global Positioning System (GPS) data and vehicle On-Board Diagnostics (OBD) data comprising a vehicle ID, a travel start time, a start longitude, a start latitude, an end time, an end longitude and, an end latitude after desensitization of a vehicle;
S2, preprocessing the vehicle GPS data and the vehicle OBD data to obtain vehicle stay behavior data comprising stay locations and stay durations, and extracting a spatial-temporal characteristic of the preprocessed vehicle stay behavior data by a deep recurrent neural network;
S3, inputting the spatial-temporal characteristic into a multi-task learning and predicting network, and obtaining a correlation between a stay location prediction task and a stay duration prediction task through the multi-task learning and predicting network based on historical stay behaviors of the vehicle to predict the stay locations and the stay durations;
wherein the step of obtaining a correlation between a stay location prediction task and a stay duration prediction task through the multi-task learning and predicting network based on historical stay behaviors of the vehicle to predict the stay locations and the stay durations comprises:
inputting the spatial-temporal characteristic into the multi-task learning and predicting network, construing a stay location task model and a stay duration task model based on the historical stay behaviors and a long short-term memory network, respectively, allowing the stay location task model and the stay duration task model to learn at the same time through the multi-task learning and predicting network, and mining the correlation between the stay location prediction task and the stay duration prediction task to predict the stay locations and the stay durations in a future time period;
wherein a process of multi-task learning comprises: using a relu function as an activation function, using a mean square error function as a loss function for predicting the stay durations, and using a cross entropy function as a loss function for predicting the stay locations; the loss function of a multi-task deep learning network is a sum of the mean square error function and the cross entropy function; the mean square error function and the cross entropy function are optimized at the same time, and the stay locations and the stay durations in the future time period are obtained by learning and prediction.
