Method for model training, method, device and equipment for behavior detection

CN118536622APending Publication Date: 2024-08-23BEIJING DIDI INFINITY TECH & DEV CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410756909.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-08-23

Smart Images

  • Figure CN118536622A
    Figure CN118536622A
Patent Text Reader

Abstract

According to the embodiment of the invention, the invention provides a method for model training, a method for behavior detection, a device and equipment. The method comprises the steps that a training sample set is obtained, the training sample set comprises a plurality of training samples, the training samples correspond to a plurality of actions which occur before a target behavior and have a time sequence relation, and each training sample comprises motion state data collected when the corresponding action occurs and a mark for the action; and training a plurality of sub-models of the machine learning model through the plurality of training samples, each sub-model being configured to determine an occurrence probability of one of the plurality of actions based on the input motion state data, and the machine learning model is configured to determine a detection result of the target behavior based on the probability of occurrence for the plurality of actions output by the plurality of sub-models within a time period and a sequential relationship between the actions determined to have occurred in the plurality of actions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Example embodiments of the present disclosure generally relate to the field of behavior detection, and in particular, to a method for model training, a method, an apparatus, a device, a storage medium, and a computer program product for behavior detection. Background Art

[0002] Shared vehicles are a convenient green means of transportation that helps reduce automobile exhaust emissions and ease urban traffic pressure. Moreover, shared vehicles are highly flexible and convenient. Users can rent vehicles in any standardized parking area and return them in any standardized parking area. However, this also leads to uncertainty in the destination of shared two-wheeled vehicles. The service end is usually unable to accurately predict the user's destination or whether the user is about to return the vehicle.

[0003] In order to report the vehicle's location information to the server in time when returning the vehicle, and to accurately determine whether the vehicle is in a standard parking area, the positioning unit is usually activated from the moment the user rents a shared two-wheeled vehicle, and the vehicle's location information is reported to the server at a certain frequency. However, this processing method keeps the positioning unit and the communication unit in working mode, which consumes a lot of power, and the real-time reporting of positioning information consumes a lot of network traffic. Summary of the invention

[0004] In a first aspect of the present disclosure, a method for model training is provided. The method includes: obtaining a training sample set, the training sample set includes multiple training samples, the multiple training samples correspond to multiple actions with a temporal relationship that occur before the target behavior, each training sample includes motion state data collected when the corresponding action occurs and a label for the action; and training multiple sub-models of a machine learning model respectively through the multiple training samples, wherein each sub-model is respectively configured to determine the occurrence probability of one of the multiple actions based on the input motion state data, and the machine learning model is configured to determine the detection result of the target behavior based on the occurrence probabilities for the multiple actions output by the multiple sub-models within a time period, and the temporal relationship between the actions determined to have occurred in the multiple actions.

[0005] In a second aspect of the present disclosure, a method for behavior detection is provided. The method includes: collecting motion state data at multiple times from at least one target device; based on the motion state data at each time, using multiple sub-models in a trained machine learning model to generate multiple probabilities, the multiple probabilities are respectively the probability of occurrence of one action at a corresponding time among multiple actions with a temporal relationship that occurred before the target behavior; and determining the detection result of the target behavior based on the multiple probabilities generated for the motion state data at multiple times and based on the temporal relationship between the actions determined to have occurred among the multiple actions.

[0006] In a third aspect of the present disclosure, a device for model training is provided. The device includes: an acquisition module configured to acquire a training sample set, the training sample set includes multiple training samples, the multiple training samples correspond to multiple actions with a temporal relationship that occur before the target behavior, each training sample includes motion state data collected when the corresponding action occurs and a label for the action; and a training module configured to train multiple sub-models of a machine learning model through multiple training samples, wherein each sub-model is configured to determine the occurrence probability of one of the multiple actions based on the input motion state data, and the machine learning model is configured to determine the detection result of the target behavior based on the occurrence probabilities for the multiple actions output by the multiple sub-models within a time period, and the temporal relationship between the actions determined to have occurred in the multiple actions.

[0007] In a fourth aspect of the present disclosure, a device for behavior detection is provided. The device includes: a collection module configured to collect motion state data at multiple times from at least one target device; a generation module configured to generate multiple probabilities based on the motion state data at each time using multiple sub-models in a trained machine learning model, wherein the multiple probabilities are respectively the probability of occurrence of one action at a corresponding time among multiple actions with a temporal relationship occurring before the target behavior; and a determination module configured to determine the detection result of the target behavior based on the multiple probabilities generated for the motion state data at multiple times and the temporal relationship between the actions determined to have occurred among the multiple actions.

[0008] In a fifth aspect of the present disclosure, an electronic device is provided. The device includes: at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, and when the instructions are executed by the at least one processing unit, the electronic device executes the method of the first aspect.

[0009] In a sixth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.

[0010] In a seventh aspect of the present disclosure, a computer program product is provided, comprising computer executable instructions, wherein the computer executable instructions implement the method of the first aspect when executed by a processor.

[0011] It should be understood that the content described in this section is not intended to limit the key features or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0013] Figure 1A A schematic diagram illustrating an example environment in which embodiments of the present disclosure can be implemented;

[0014] Figure 1B A schematic diagram illustrating another example environment in which embodiments of the present disclosure can be implemented;

[0015] Figure 2 A schematic diagram of an architecture for model training according to some embodiments of the present disclosure is shown;

[0016] Figure 3 A schematic diagram showing an example of a parking area according to some embodiments of the present disclosure;

[0017] Figure 4 A schematic diagram showing an architecture for behavior detection according to some embodiments of the present disclosure;

[0018] Figure 5 A flowchart showing a process of user behavior detection according to some embodiments of the present disclosure is shown;

[0019] Fig. 6A A flowchart illustrating a process for model training according to some embodiments of the present disclosure is shown;

[0020] Figure 6B A flow chart illustrating a process for behavior detection according to some embodiments of the present disclosure is shown;

[0021] Fig. 7A A flowchart illustrating an apparatus for model training according to some embodiments of the present disclosure is shown;

[0022] Figure 7B A flow chart showing an apparatus for behavior detection according to some embodiments of the present disclosure is shown; and

[0023] Figure 8 A block diagram of a device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0024] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0025] It should be noted that the titles of any sections / subsections provided herein are not restrictive. Various embodiments are described throughout this article, and any type of embodiment may be included under any section / subsection. In addition, the embodiments described in any section / subsection may be combined in any manner with any other embodiments described in the same section / subsection and / or different sections / subsections.

[0026] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may be included below. The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may be included below.

[0027] As used herein, the term "model" can learn the association between the corresponding input and output from the training data, so that after the training is completed, the corresponding output can be generated for a given input. The generation of the model can be based on machine learning technology. Deep learning is a machine learning algorithm that processes inputs and provides corresponding outputs by using multi-layer processing units. A neural network model is an example of a model based on deep learning. In this article, "model" may also be referred to as "machine learning model", "learning model", "machine learning network" or "learning network", and these terms are used interchangeably in this article.

[0028] A "neural network" is a machine learning network based on deep learning. A neural network is capable of processing inputs and providing corresponding outputs, and typically includes an input layer and an output layer and one or more hidden layers between the input layer and the output layer. Neural networks used in deep learning applications typically include many hidden layers, thereby increasing the depth of the network. The layers of a neural network are connected in sequence so that the output of the previous layer is provided as input to the next layer, where the input layer receives the input of the neural network and the output of the output layer serves as the final output of the neural network. Each layer of a neural network includes one or more nodes (also called processing nodes or neurons), each of which processes input from the previous layer.

[0029] Generally, machine learning can be roughly divided into three stages, namely the training stage, the testing stage, and the application stage (also called the inference stage). In the training stage, a given model can be trained using a large amount of training data, and the parameter values ​​are continuously updated iteratively until the model can obtain consistent inferences that meet the expected goals from the training data. Through training, the model can be considered to be able to learn the association from input to output (also called the mapping of input to output) from the training data. The parameter values ​​of the trained model are determined. In the testing stage, the test input is applied to the trained model to test whether the model can provide the correct output, thereby determining the performance of the model. In the application stage, the model can be used to process the actual input based on the parameter values ​​obtained from the training to determine the corresponding output.

[0030] The embodiments of the present disclosure may involve user data, data acquisition and / or use, etc. These aspects are subject to the corresponding laws, regulations and relevant provisions. In the embodiments of the present disclosure, all data collection, acquisition, processing, processing, forwarding, use, etc. are carried out on the premise that the user knows and confirms. Accordingly, when implementing each embodiment of the present disclosure, the type, scope of use, usage scenario, etc. of the data or information that may be involved should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with the relevant laws and regulations. The specific notification and / or authorization method can vary according to the actual situation and application scenario, and the scope of the present disclosure is not limited in this respect.

[0031] As briefly discussed above, shared vehicles are a convenient green means of transportation that helps reduce automobile exhaust emissions and ease urban traffic pressure. Moreover, shared vehicles are highly flexible and convenient, and users can rent vehicles in any standardized parking area and return them in any standardized parking area. However, this also leads to uncertainty in the destination of shared two-wheeled vehicles. The control end is usually unable to accurately predict the user's destination, nor can it predict whether the user is about to return the vehicle.

[0032] In order to be able to report the vehicle's positioning information to the service end in time when returning the vehicle, and accurately determine whether the vehicle is located in the standard parking area. One solution is to start the positioning unit from the moment the user rents a shared two-wheeled vehicle, and report the vehicle's positioning information to the control end at a certain frequency. However, this processing method keeps the positioning unit and the communication unit in working mode, which consumes a lot of power, and the real-time reporting of positioning information consumes a lot of network traffic. Another solution is to turn on the positioning unit after receiving the return request. However, due to the startup time of the positioning unit, the time required to return the vehicle is increased, affecting the user experience.

[0033] According to various embodiments of the present disclosure, a method for model training, a method for behavior detection, an apparatus, a device, a storage medium, and a computer program product are provided. The method includes: obtaining a training sample set, the training sample set includes multiple training samples, the multiple training samples correspond to multiple actions with a time sequence relationship that occur before the target behavior, each training sample includes motion state data collected when the corresponding action occurs and a label for the action; and training multiple sub-models of the machine learning model respectively through multiple training samples, wherein each sub-model is respectively configured to determine the probability of occurrence of one of the multiple actions based on the input motion state data, and wherein the machine learning model is configured to determine the detection result of the target behavior based on the probability of occurrence of multiple actions output by multiple sub-models within a time period, and the time sequence relationship between the actions determined to have occurred in the multiple actions. In this way, the trained machine learning model can accurately detect the target behavior.

[0034] Example Environment

[0035] Figure 1A 1 is a schematic diagram of an example environment 100A in which embodiments of the present disclosure can be implemented. Figure 1A In the environment 100A, it is desirable to train and use such a machine learning model 130, which is configured for a variety of application environments. For example, when the machine learning model 130 is a vehicle behavior detection model, it can detect whether the shared vehicle is about to return the vehicle based on the motion state data. For another example, when the machine learning model is a terminal behavior detection model, it can detect whether the terminal device is about to perform a specific behavior based on the motion state data.

[0036] like Figure 1A As shown, environment 100A includes a training sample set 110 , a model training system 120 , and a model application system 140 . Figure 1A The upper part shows the process of the model training phase, and the lower part shows the process of the model application phase. Before training, the parameter values ​​of the machine learning model 130 may have initial values, or may have pre-trained parameter values ​​obtained through a pre-training process.

[0037] In the model training stage, the machine learning model 130 can be trained based on a training sample set 110 including a plurality of training samples 111 and using a model training system 120. Here, each training sample 111 may involve a tuple format. For example, for a target behavior detection task, the training sample 111 may include a model input 112 and a model output 113 referring to the target behavior detection task. The model input 112 referring to the target behavior detection task may include, for example, motion state data, and the model output 113 may include, for example, the detection result of the target behavior. The training sample 111 including the model input 112 and the model output 113 can be used to train the machine learning model 130. Specifically, the training process can be iteratively performed using a large number of training samples. The machine learning model 130 can be trained via forward propagation and back propagation, and the parameter values ​​of the machine learning model 130 can be updated and adjusted during the training process.

[0038] After the training is completed, the machine learning model 130' can be obtained. At this point, the parameter values ​​of the machine learning model 130' have been updated, and based on the updated parameter values, the machine learning model 130' can be used to implement the target behavior detection task in the model application stage. In some embodiments, the machine learning model 130 may adopt a polynomial linear regression model, a support vector machine model, etc., and the type of the machine learning model 130 is not limited here.

[0039] In the model application stage, the model machine learning model 130' (at this time, the machine learning model 130' has trained parameter values) can be used to perform the corresponding task through the model application system 140. For example, a model input 141 referring to a target behavior detection task can be received, and a corresponding model output 142 can be output.

[0040] exist Figure 1A In the present invention, the model training system 120 and the model application system 140 may include any computing system with computing capabilities, such as various computing devices / systems, terminal devices, servers, etc. The terminal device may involve any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. Servers include but are not limited to mainframes, edge computing nodes, computing devices in cloud environments, and the like.

[0041] Figure 1B 1 is a schematic diagram of another example environment 100B in which embodiments of the present disclosure can be implemented. Figure 1BAs shown, the environment 100B includes a vehicle 180 , a control terminal 150 , a user 170 , and a user terminal device 160 used by the user 170 .

[0042] In some embodiments, an application 161 may be installed and run on the user terminal device 160, and a page 163 may be presented for operation by the user 170. In an embodiment of the present disclosure, the application 161 may be any appropriate application related to the shared vehicle service. The page 163 may include, for example, a car rental page, a car return page, a reminder page, and the like. The user device 120 may be a terminal device on which a shared vehicle application is installed and run, including but not limited to a personal computer, a smart phone, a smart watch, a smart glasses, a smart helmet, a laptop, a tablet computer, a personal digital assistant, or any other appropriate portable electronic device.

[0043] In some embodiments, the user terminal device 160 may also be provided with a motion measurement unit 162. The motion measurement unit 162 here may include any component capable of measuring the motion state data (such as acceleration, direction, angular velocity, gravity, etc.) of the user terminal device 160. For example, the motion measurement unit may include an inertial measurement unit (IMU). For another example, the motion measurement unit 162 may also include an accelerometer, a gyroscope, a magnetometer, etc.

[0044] In some embodiments, the vehicle 180 may be a shared vehicle, for example, a shared two-wheeled vehicle, a shared electric motorcycle, a shared car, or any other shared transportation vehicle that complies with laws and regulations. Further, the vehicle 180 may include a control unit 181, a positioning unit 182, and a motion measurement unit 183. The control unit may be configured to manage and control the functions of the vehicle 180, and to communicate wirelessly with the control terminal 150 and the user terminal device 160. The positioning unit 182 may be configured to determine the positioning information (such as latitude and longitude information, heading information, etc.) of the vehicle 180. The positioning unit 182 includes but is not limited to a global navigation satellite positioning system, a base station triangulation positioning system, a Bluetooth beacon positioning system, and the like. The motion measurement unit 183 may be configured to measure the motion state data (such as acceleration, direction, angular velocity, gravity, etc.) of the vehicle 180. Exemplarily, the motion measurement unit 183 may include an inertial measurement unit (IMU), or the motion measurement unit 183 may also include one or more motion sensors such as an accelerometer, a gyroscope, and a magnetometer.

[0045] In some implementations, the control end 150 may be a remote server. In this case, the control end 150 may be configured as a remote server that centrally manages and controls various shared vehicles including the vehicle 180. For example, the control end 150 may manage and control the vehicle 180 by at least communicating with a control unit on the vehicle 180.

[0046] In some embodiments, the control terminal 150 can be implemented with an independent server or a server cluster composed of multiple servers. In other words, the control terminal 150 can be one or a group of servers that provide service functions, or one or a group of virtual machines that can provide services. The present disclosure is not limited in the implementation form of the control terminal 150.

[0047] It should be understood that Figure 1A and 1B Only exemplary environments are shown. In other embodiments, the environment may include more or fewer network elements / modules. For example, Figure 1B Any unit / module shown in is not essential and can be omitted according to actual needs. Figure 1B The number and connection relationship of the units / modules shown are also only for illustration and schematic purposes, and the embodiments of the present disclosure are not limited in this respect.

[0048] Example Process

[0049] Figure 2 A schematic diagram of an architecture 200 for model training according to some embodiments of the present disclosure is shown. For ease of discussion, reference is made to Figure 1A Environment 100A and Figure 1B The environment 100B will be discussed.

[0050] In an embodiment of the present disclosure, the model training system 120 may obtain a training sample set 110 for training a machine learning model 130. The training sample set 110 here includes a plurality of training samples 111, and the plurality of training samples 111 respectively correspond to a plurality of actions having a temporal relationship that occur before a target behavior, and each training sample 111 includes motion state data collected when a corresponding action occurs and a label for the action.

[0051] The target behavior here may include various behaviors that may occur by the user 170 of the user terminal device 160, and may also include behaviors that may occur by the user of the vehicle 180. It is understandable that when applied to other environments, the target behavior may also include various behaviors that may occur by other people or objects.

[0052] The multiple actions here refer to a series of actions that have a high probability of occurring in sequence according to a specific time sequence before the target behavior occurs. That is, before the target behavior occurs, the multiple actions have a high probability of occurring in sequence. After the multiple actions occur in sequence according to a specific time sequence, the target behavior occurs with a high probability. The multiple actions here are correlated with the occurrence of the target behavior, for example, the target behavior and the multiple actions may have a causal relationship, a conditional relationship, or a logical relationship, etc.

[0053] The specific data type and data content of the motion state data here mainly depend on the type of motion measurement unit that collects the motion state data. Taking the motion measurement unit including an inertial measurement unit (IMU) as an example, the motion state data may include acceleration, direction, angular rate, gravity, etc. When the motion measurement unit includes other sensors, the motion state data may also include one or more other data. Alternatively or additionally, the motion state data is not limited to the raw data collected by the motion measurement unit, but may also include posture data generated based on the raw data collected by the motion measurement unit. Posture data can be used to indicate the posture of the user 170 or the posture of the vehicle 180. Exemplarily, based on the acceleration, direction, angular rate and gravity collected by the inertial measurement unit, posture data that can indicate the posture of the user 170 or the posture of the vehicle 180 can be obtained.

[0054] In some embodiments, when it is determined that the target behavior has occurred, the motion state data for a period of time before the target behavior occurs can be collected. The motion state data for the period of time can be divided into multiple motion state data corresponding to multiple actions, and the annotations of the multiple actions can be obtained (for example, the multiple actions can be annotated manually). Afterwards, the model training system 120 is used to construct multiple training samples 111 corresponding to the multiple actions, and the training sample set 110 is formed by the multiple training samples 111.

[0055] It is understandable that in order to meet the training requirements of the machine learning model in specific implementation, the model training system 120 usually constructs multiple training samples 111 for each action. On this basis, the multiple training samples 111 can be broadly understood as multiple groups of training samples, and each group of training samples can include multiple samples corresponding to the same action.

[0056] For example, Figure 2 As shown, assuming that the first action, the second action, the third action, and the fourth action usually occur in sequence before the target behavior occurs, the model training system 120 can be used to construct a first training sample 211, a second training sample 212, a third training sample 213, and a fourth training sample 214 corresponding to the first action, the second action, the third action, and the fourth action, respectively. The first training sample 211 may include motion state data collected when the first action occurs and a first annotation of the first action, the second training sample 212 includes motion state data collected when the second action occurs and a second annotation of the second action, and so on. It can be understood that in a specific implementation, the training data set 110 usually includes multiple first training samples 211, multiple second training samples 212, multiple third training samples 213, and multiple fourth training samples 214.

[0057] In some embodiments, the target behavior may include a return behavior of the vehicle 180, and the motion state data includes at least the motion state data of the vehicle 180 and / or the user terminal device 160 associated with the vehicle. Exemplarily, when it is determined that the vehicle 180 has a return behavior, the model training system 120 may obtain the motion state data collected by the motion measurement unit 162 on the user terminal device 160 before the return behavior occurs, the model training system 120 may also obtain the motion state data collected by the motion measurement unit 183 on the vehicle 180 before the return behavior occurs, or the model training system 120 may also obtain the motion state data collected by the motion measurement unit 162 and the motion state data collected by the motion measurement unit 183 respectively.

[0058] In some embodiments, if the model training system 120 determines that the scheduled vehicle enters the first area, it can obtain motion state data at multiple times when the scheduled vehicle is located in the first area; if it is determined that the first action among the multiple actions occurs at the first time, construct a first training sample 211, and the first training sample 211 includes the motion state data at the first time and the annotation of the first action; and if it is determined that the second action among the multiple actions occurs at the second time, construct a second training sample 212, and the second training sample 213 includes the motion state data at the second time and the annotation of the second action. Alternatively or additionally, if the model training system 120 determines that the third action among the multiple actions occurs at the third time, it can construct a third training sample 213, and the third training sample 213 may include the motion state data at the third time and the annotation of the third action. If the model training system 120 determines that the fourth action among the multiple actions occurs at the fourth time, it can construct a fourth training sample 214, and the fourth training sample 214 may include the motion state data at the fourth time and the annotation of the fourth action.

[0059] The reserved vehicles here may include vehicles selected for motion state data collection. Taking the shared bicycle scenario as an example, some shared bicycles can be selected from the operating shared bicycles as reserved vehicles, and the shared bicycles can be provided with an inertial measurement unit (IMU). The positioning unit 183 of the shared bicycle can be configured to remain turned on after renting the bicycle and obtain positioning information at a predetermined frequency. The model training system 120 can be used to obtain the acceleration, direction, angular velocity, gravity and other data collected by the inertial measurement unit when the shared bicycle is located in the first area based on the positioning information as motion state data.

[0060] In order to better understand the construction process of multiple training samples, the construction process of multiple training samples will be described below using the shared bicycle return scenario as an example. The model training system 120 can obtain the motion state data collected by the motion measurement unit 183 of the shared bicycle and the motion measurement unit 162 of the user terminal device 160. The motion state data of multiple times when the shared bicycle is located in the first area are filtered out from the acquired motion state data. Afterwards, based on the motion state data of multiple times, it can be determined whether actions such as reducing the speed, getting off, operating the pedals, and operating the mobile phone occur. If it is determined that the shared bicycle has a speed reduction action at the first time, a label for the speed reduction action can be added. Based on the motion state data corresponding to the speed reduction action and the label for the speed reduction action, a first training sample is constructed. If it is determined that the user 170 gets off the vehicle at the second time, a label for the getting off action can be added. Based on the motion state data corresponding to the getting off action and the label for the getting off action, a second training sample is constructed. By analogy, if it is determined that the pedal operation action occurs at the third time, a corresponding third training sample is constructed. If it is determined that the mobile phone operation action occurs at the fourth time, a corresponding fourth training sample is constructed.

[0061] An example of the first area may include a designated parking area. To better understand the scope of the first area, reference will be made to Figure 3 Give a description. Figure 3 A schematic diagram of an example 300 of a parking area according to some embodiments of the present disclosure is shown, and the example 300 shows a box 301, a box 302, a box 303, and a shared bicycle 304. The area enclosed by the box 302 may be a designated parking area, the box 301 may be formed by extending the box 302 to the surroundings by an X distance, and the box 303 may be formed by contracting the box 302 inward by an X distance. In this example, the first area may be formed by the area enclosed by the box 302. The motion state data of the shared vehicle 304 after entering the box 302 may be obtained. Another example of the first area may include an adjacent area of ​​the parking area. For example, the first area may include an area between the box 301 and the box 302 in the example 300. Yet another example of the first area may include an adjacent area of ​​the parking area and an edge area in the parking area. For example, the first area may include an area between the box 301 and the box 303 in the example 300.

[0062] In some embodiments, the scheduled vehicle passes through the first area and enters the second area, and the return of the scheduled vehicle will occur in the second area. The second area here may include a designated parking area or a target parking area. For example, Figure 3 As shown, the first area may include an area between the box 301 and the box 303 in the example 300 , and the second area may include an area within the box 303 .

[0063] In some embodiments, the model training system 120 may determine a start time among the multiple times based on the location information of the scheduled vehicle or the user terminal device 160 indicating that the scheduled vehicle enters the first area. The model training system 120 may determine an end time among the multiple times based on detecting a trigger operation of a scheduled application from the user terminal device 160. The scheduled application may be configured to initiate a return request for the scheduled vehicle.

[0064] For example, Figure 3 As shown, the model training system 120 determines the time when the shared bicycle 304 enters the box 301 as the start time based on the positioning information of the shared bicycle 304 or the positioning information of the user terminal device 160 associated with the shared bicycle 304, and obtains the motion state data collected by the motion measurement unit 183 of the shared bicycle 304 and / or the motion measurement unit 162 of the user terminal device 160 after the start time. After the shared bicycle 304 enters the area surrounded by the box 303, the user 170 usually operates the rental application on the user terminal device 160 (such as a mobile phone, tablet or digital assistant, etc.) to initiate a return request for the shared bicycle 304. The model training system 120 can determine the time when the user 170 triggers the return application as the end time, and obtain the motion state data between the time when the shared bicycle 304 enters the box 301 and the time when the user 170 triggers the return application.

[0065] In the embodiment of the present disclosure, the model training system 120 can train multiple sub-models of the machine learning model 130 respectively through multiple training samples 111. Each sub-model is configured to determine the occurrence probability of one of the multiple actions based on the input motion state data. The machine learning model 130 is configured to determine the detection result of the target behavior based on the occurrence probabilities of multiple actions output by the multiple sub-models within a time period, and the temporal relationship between the actions determined to have occurred in the multiple actions.

[0066] The sub-models here can be composed of machine learning models or networks of any suitable structure. For example, the multiple sub-models can be multiple independent machine learning models, and the multiple sub-models can be constructed using polynomial linear regression models or support vector machine models respectively.

[0067] For example, Figure 2As shown, the machine learning model 130 may include a first sub-model 231, a second sub-model 232, a third sub-model 233, and a fourth sub-model 234. The model training system 120 may input the motion state data in the first training sample 211 into the first sub-model 231, and obtain the occurrence probability of the first action output by the first sub-model 231. The model training system 120 may input the motion state data in the second training sample 212 into the second sub-model 232, and obtain the occurrence probability of the second action output by the second sub-model 232. Similarly, the occurrence probability of the third action may be outputted by the third sub-model 233 based on the motion state data in the third training sample 213, and the occurrence probability of the fourth action may be outputted by the fourth sub-model 234 based on the motion state data in the fourth training sample.

[0068] Furthermore, taking the shared bicycle rental scenario as an example, the first sub-model can be configured to determine the action of reducing the speed of the vehicle, the second sub-model can be configured to determine the action of getting off the vehicle, the third sub-model can be configured to determine the action of operating the pedals, and the fourth sub-model can be configured to determine the action of operating a mobile phone.

[0069] In some embodiments, the machine learning model 130 is further configured to determine the actions that have occurred among the multiple actions based on the occurrence probabilities of the multiple actions output by the multiple sub-models within a time period, and determine the detection result of the target behavior based on the temporal relationship between the actions determined to have occurred and the weights of each action. In the model application stage, the process of using the machine learning model 130 to determine the detection result of the target behavior will be described in detail later in conjunction with Figure 4 For details, please refer to the subsequent introduction.

[0070] It should be noted that, although the above examples take the return behavior in the shared bicycle scenario as an example to introduce the improved scheme for model training of the embodiment of the present disclosure, it should not be understood that the target behavior is limited to the return behavior. In the shared bicycle scenario, the target behavior may also include renting a bicycle, getting on the bicycle, unsafe riding behavior, getting off the bicycle, and so on. In other application scenarios, the target behavior may also include other behaviors. Therefore, the above examples should not be understood as limiting the improved scheme for user model training of the embodiment of the present disclosure, and as long as they conform to the design concept of the embodiment of the present disclosure, they should be deemed to belong to the protection scope of the embodiment of the present disclosure.

[0071] In summary, according to the embodiments of the present disclosure, in a model training scenario, the trained machine learning model can accurately detect the target behavior. By obtaining a training sample set including multiple training samples, the multiple training samples respectively correspond to multiple actions with a temporal relationship that occur before the target behavior, and multiple sub-models of the machine learning model are trained respectively by the multiple training samples, the multiple sub-models can respectively determine the occurrence probabilities of multiple actions that occur before the target behavior. The machine learning model can accurately determine the detection result of the target behavior based on the occurrence probabilities of multiple actions and the temporal relationships between the actions determined to have occurred in the multiple actions.

[0072] Figure 4 FIG. 4 is a schematic diagram of an architecture 400 for behavior detection according to some embodiments of the present disclosure. Figure 1A Environment 100A and Figure 1B The environment 100B will be discussed.

[0073] In an embodiment of the present disclosure, the model application system 140 may collect motion state data at multiple times from at least one target device. The at least one target device here should be understood as a device related to the target behavior. In some embodiments, the target behavior may include returning the target vehicle (e.g., vehicle 180). On this basis, the motion state data may include the motion state data of the target vehicle and / or a user terminal device (e.g., user terminal device 160) associated with the target vehicle.

[0074] For example, Figure 4 As shown, the model application system 140 may sequentially obtain measurement data of the T period, measurement data of the T+1 period, measurement data of the T+2 period, and measurement data of the T+3 period from the measurement data 410 of the motion measurement unit 162 and / or the motion measurement unit 183. Based on the measurement data of the T period, the measurement data of the T+1 period, the measurement data of the T+2 period, and the measurement data of the T+3 period, the first motion state data 411, the second motion state data 412, the third motion state data 413, and the fourth motion state data 414 are obtained respectively.

[0075] In an embodiment of the present disclosure, the model application system 140 generates multiple probabilities based on the motion state data at each time, using multiple sub-models in the trained machine learning model 130', and the multiple probabilities are the probability of occurrence of one action at a corresponding time among multiple actions with a time sequence relationship that occur before the target behavior.

[0076] For example, Figure 4As shown, the model application system 140 can input the first motion state data 411 into the first sub-model 231, the second sub-model 232, the third sub-model 233 and the fourth sub-model 234 of the machine learning model 130, respectively, and obtain the probability P output by the first sub-model 231, the second sub-model 232, the third sub-model 233 and the fourth sub-model 234 based on the first motion state data 411. 11 , probability P 12 , probability P 13 and probability P 14 The probability P 11 is the probability of the first action occurring in period T, probability P 12 is the probability of the second action occurring in period T, probability P 13 is the probability of the third action occurring in period T, probability P 14 is the probability of the fourth action occurring in the T period. 11 , probability P 12 , probability P 13 and probability P 14 As the first data group 421. Similarly, the probability P can be obtained. 21 , probability P 22 , probability P 23 and probability P 24 The second data set 422 includes the probability P 31 , probability P 32 , probability P 33 and probability P 34 The third data set 423, and the probability P 41 , probability P 42 , probability P 43 and probability P 44 The fourth data set 424. It can be understood that the probability P 21 is the probability of the first action occurring in the T+1 period, probability P 33 is the probability of the third action occurring in the T+2 period, probability P 44 is the probability of the fourth action occurring in the T+3 period, and so on. The meanings of the above probabilities will not be introduced one by one here.

[0077] In an embodiment of the present disclosure, the model application system 140 determines the detection result of the target behavior based on multiple probabilities generated for motion state data at multiple times and based on the temporal relationship between actions determined to have occurred in multiple actions.

[0078] In some embodiments, the model application system 140 may determine the actions that have occurred among the multiple actions based on the multiple probabilities generated for the motion state data at multiple times; and determine the detection result of the target behavior based on the temporal relationship between the actions determined to have occurred and the weight of each action. It is understandable that in actual application, there may be multiple actions that are determined to have occurred, or there may be some actions among the multiple actions that are determined to have occurred.

[0079] For example, Figure 4 As shown, the machine learning model 130` can determine the action that has occurred in the T time period (for example, the first action 431) based on the first data group 421, determine the action that has occurred in the T+1 time period (for example, the second action 432) based on the second data group 422, determine the action that has occurred in the T+2 time period (for example, the third action 433) based on the third data group 423, and determine the action that has occurred in the T+3 time period (for example, the fourth action 434) based on the fourth data group 424.

[0080] Alternatively or additionally, the machine learning model 130' may compare the magnitudes of multiple probabilities in each data group, and may determine the action corresponding to the largest probability among the multiple probabilities as the action that has occurred at the corresponding time. The machine learning model 130' may also determine the probability that meets the probability threshold in each data group, and determine the action corresponding to the probability that meets the probability threshold as the action that has occurred. For example, assuming that the probability P in the first data group 421 is 11 The value of is the largest, and the probability P 11 If the probability threshold is met, the probability P 11 The corresponding first action 431 is determined to be the action that has occurred in the T period.

[0081] Alternatively or additionally, in order to determine the detection result of the target behavior based on the temporal relationship between the actions determined to have occurred and the weight of each action, the model application system 140 may pre-configure two judgment conditions, one of which may be a temporal relationship condition of multiple actions. Specifically, in the case of determining an action that has occurred among multiple actions, it may be determined whether the one or more actions that have occurred meet the temporal relationship conditions of multiple actions. Exemplarily, it is assumed that the temporal relationship conditions of multiple actions may include the first action 431, the second action 432, the third action 433, and the fourth action 434 occurring in sequence. If it is determined that the actions determined to have occurred from the T period to the T+3 period include the first action 431, the third action 433, and the fourth action 434, and the order of occurrence of the actions that have occurred is the first action 431, the third action 433, and the fourth action 434, it may be determined that the actions that have occurred meet the temporal relationship conditions. If the order of occurrence of the actions that have occurred is the first action 431, the fourth action 434, and the third action 433, it may be determined that the actions that have occurred do not meet the temporal relationship conditions.

[0082] The other of the two judgment conditions may be a target threshold. Specifically, a weight R may be set in advance for each of the multiple actions. When determining the action that has occurred, a detection value W may be calculated based on the weight R of each action, and the detection value may be compared with the target threshold. If the detection value meets the target threshold, it may be determined that the other judgment condition is met. If the detection value does not meet the target threshold, it may be determined that the other judgment condition is not met.

[0083] For example, a first threshold R1, a second threshold R2, a third threshold R3 and a fourth threshold R4 may be set for the first action 431, the second action 432, the third action 433 and the fourth action 434. The detection value W may be calculated by the following formula (1).

[0084] W=ω1*R1+ω2*R2+ω3*R3+ω4*R4 (1)

[0085] Where W represents the detection value, ω1 represents the index of the first action 431, ω2 represents the index of the second action 432, ω3 represents the index of the third action 433, and ω4 represents the index of the fourth action 434. An exemplary value-taking method of ω1, ω2, ω3 and ω4 is that if the corresponding action is determined to have occurred, the corresponding index value is 1, and if the corresponding action is not determined to have occurred, the corresponding index value is 0. Another exemplary value-taking method of ω1, ω2, ω3 and ω4 is that if the corresponding action is determined to have occurred, the corresponding index value is the corresponding probability. For example, if the first action 431 is determined to have occurred in the T period, ω1 takes P 11If the third action 433 is determined to be an action that has occurred in the T+2 period, then ω3 takes P 33 .

[0086] It should be noted that the above two judgment conditions can be in a logical AND relationship or a logical OR relationship. When the logical AND relationship is adopted, if both judgment conditions are met at the same time, the detection result is that the target behavior is about to occur, and if only one judgment condition is met, the detection result is that the target behavior will not occur. When the logical OR relationship is adopted, at least one judgment condition is met, and the detection result is that the target behavior is about to occur. Only when both judgment conditions are not met, the detection result is that the target behavior will not occur.

[0087] Next, we will take the target behavior as the target vehicle return behavior as an example and refer to Figure 5 Describe the process of user behavior detection. Figure 5 A flowchart of a process 500 of user behavior detection according to some embodiments of the present disclosure is shown. In the case where the target behavior is the return behavior of the target vehicle, the trained machine learning model 130' can be deployed on the vehicle 180 side in the environment 100B, can also be deployed on the user terminal device 160 side, and can also be deployed on the control end 150 side.

[0088] If the machine learning model 130' is deployed on the control terminal 150, the control terminal 150 can communicate with the vehicle 180 to obtain the motion state data collected by the motion measurement unit 183. The control terminal 150 can also communicate with the user terminal device 160 to obtain the motion state data collected by the motion measurement unit 162.

[0089] If the machine learning model 130' is deployed in the user terminal device 160, the motion state data collected by the motion measurement unit 162 can be obtained through, for example, the bus of the user terminal device 160, or the motion state data collected by the motion measurement unit 183 can be obtained by communicating with the vehicle 180 through the control terminal 150. The user terminal device 160 can also communicate with the vehicle 180 based on a wireless communication method such as Bluetooth to obtain the motion state data collected by the motion measurement unit 183.

[0090] If the machine learning model 130' is deployed in the vehicle 180, the motion state data collected by the motion measurement unit 183 can be obtained through the bus of the vehicle 180, and the motion state data collected by the motion measurement unit 162 can also be obtained by communicating with the user terminal device 160 through the control terminal 150. The vehicle 180 can also communicate with the user terminal device based on a wireless communication method such as Bluetooth to obtain the motion state data collected by the moving vehicle unit 162.

[0091] Next, the process 500 will be described with the trained machine learning model 130' deployed on the control end 150 side, but it should not be understood that the improved solution of the embodiment of the present disclosure is limited to being deployed on the control end 150 side.

[0092] In block 501, the control terminal 150 may obtain motion state data collected by at least one target device at multiple times. The at least one target device may include a vehicle 180 and / or a user terminal device 160. Afterwards, the motion state data at multiple times may be input into multiple sub-models of the machine learning model 130' to obtain detection results. Alternatively or additionally, the multiple actions may include, for example, reducing the speed of the vehicle, getting off the vehicle, operating a pedal, operating a mobile phone, and the like.

[0093] For example, Figure 4 As shown, the action of reducing vehicle speed can be determined by the first sub-model 231, the action of getting off the vehicle can be determined by the second sub-model 232, the action of operating the pedal can be determined by the third sub-model 233, and the action of operating the mobile phone can be determined by the fourth sub-model 234. On this basis, the motion state data collected by the motion measurement unit 162 and / or the motion measurement unit 183 at multiple times can be input into the first sub-model 231, the second sub-model 232, and the third sub-model 233 respectively to obtain the occurrence probabilities of the action of reducing vehicle speed, the action of getting off the vehicle, and the action of operating the pedal. The motion state data collected by the motion measurement unit 162 can be input into the fourth sub-model 234 to obtain the occurrence probability of the action of operating the mobile phone.

[0094] In block 502, the control terminal 150 may determine whether a return behavior is about to occur after a plurality of time periods based on the detection results. The process of using the machine learning model 130 to obtain the detection results of the target behavior and the process of determining whether the target behavior is about to occur based on the detection results have been described above. Figure 4 If the detection result indicates that the vehicle return behavior will not occur after a plurality of time periods, the process may return to block 501 to perform the vehicle return behavior detection in a loop.

[0095] In block 503, if the detection result indicates that the vehicle return behavior is about to occur after a plurality of time periods, the control end 150 puts the positioning unit 182 of the target vehicle in a target state of uploading positioning information at a target frequency. Alternatively or additionally, the control end 150 may communicate with the control unit 181 of the target vehicle and send instructions to the control unit 181. In the case where the positioning unit 182 of the target vehicle is not turned on, the control unit 181 may be instructed to turn on the positioning unit 182 and control the positioning unit 182 to upload positioning information to the control end 150 at a target frequency. In the case where the positioning unit 182 of the target vehicle is turned on, but the reporting frequency of the positioning unit 182 is less than the target frequency, the control unit 181 may be instructed to increase the reporting frequency of the positioning unit 182 to the target frequency.

[0096] In block 504 , the control terminal 150 receives the positioning information sent by the positioning unit 182 in the target state at the target frequency. Here, the control terminal 150 can obtain the positioning information by wirelessly communicating with the control unit 181 .

[0097] In some embodiments, the process 500 may further include blocks 505 to 507. In block 505, the control end 150 may determine whether the target vehicle meets the first return condition based on the positioning information, and the first return condition at least includes that the target vehicle is located in a predetermined area and the posture of the target vehicle meets the return posture. That is, the first return condition actually includes two sub-conditions, one of which is that the target vehicle is located in a predetermined area, and the predetermined area may be a designated parking area.

[0098] For example, Figure 3 As shown, the predetermined area may be the area enclosed by the box 302 in example 300. Or, in order to make the parking of the target vehicle more standardized, the predetermined area may also be the area enclosed by the box 303. Another sub-condition is that the posture of the target vehicle meets the return posture, and the return posture here may include the orientation of the target vehicle. In the case where the target vehicle is a shared two-wheeled vehicle, the return posture may also include a tilt angle, etc.

[0099] Alternatively or additionally, the control end 150 may automatically detect whether the target vehicle meets the first return condition based on the positioning information in response to receiving the positioning information according to the target frequency. The control end 150 may also detect whether the target vehicle meets the first return condition in response to a return request sent by the user terminal device 160, or in response to receiving a trigger operation of the locking mechanism of the target vehicle.

[0100] In block 506, if the control end 150 determines that the target vehicle meets the first return condition, the user terminal device 160 presents a return page, where the return page may include a return confirmation control. Alternatively or additionally, the return page may also present, for example, mileage, fees, etc. In block 507, the control end 150 may perform a return operation for the target vehicle in response to receiving a trigger operation for the return confirmation control.

[0101] In some embodiments, the process 500 may further include a block 508. In block 508, if the control end 150 determines that the target vehicle does not meet the first vehicle return condition, the user terminal device 160 may present a prompt message, where the prompt message is used to prompt the user to adjust the position and / or posture of the target vehicle. Specifically, if the control end 150 determines that the target vehicle does not meet the first vehicle return condition, the prompt message may be sent to the user terminal device 160, instructing the user terminal device 160 to present the prompt message, and prompting the user 170 to adjust the position and / or posture of the target vehicle through the prompt message.

[0102] In some implementations, the control end 150 may also enable the user terminal device 150 to pre-acquire at least one control of the return page when the detection result indicates that the return behavior is about to occur after a plurality of time periods. The control end 150 may enable the user terminal device 160 to present the return page including at least one control in response to detecting a trigger operation of a predetermined application from the user terminal device 160, and the predetermined application is configured to initiate a return request for the target vehicle. By pre-loading at least one control of the return page, the response time required to present the return page can be shortened.

[0103] In some embodiments, the control end 150 may determine whether the target vehicle meets the second return condition based on the positioning information. The second return condition at least includes that the target vehicle is located in a predetermined area, the posture of the target vehicle meets the return posture, and the target vehicle is in a stopped state for a period of time exceeding a predetermined length of time. If it is determined that the target vehicle meets the second return condition, the control end 150 performs a return operation for the target vehicle. In response to the completion of the return operation, the control end 150 performs a resource deduction operation required for the use of the target vehicle. Alternatively or additionally, the control end 150 may determine whether the target vehicle is in a stopped state based on the positioning information. It should be noted that the resource deduction operation will only be performed if the user 170 is authorized in advance. If the control end 150 does not obtain the user 170's authorization for the resource deduction operation in advance, even if the target vehicle meets the second return condition and the return operation has been completed, the control end 150 will not perform the resource deduction operation. The resource deduction operation here may include obtaining vehicle use fees according to a pre-authorized payment channel, and may also include deducting platform points, virtual currency or other virtual resources according to pre-authorization, etc. In this way, the resource deduction operation can be automatically performed with the user's authorization, which can improve the convenience of returning the vehicle.

[0104] For example, Figure 3 As shown, it is assumed that the area enclosed by the box 302 is the designated parking area. The predetermined area included in the second return condition can be reduced to the area enclosed by the box 303. That is, in the case where the resource deduction operation can be automatically performed, the user 170 can be required to park the shared bicycle 304 closer to the middle of the parking area on the basis of the designated parking area, rather than parking the shared bicycle 304 at the edge of the parking area. In this way, not only the convenience of returning the bicycle can be taken into account, but also the standardization of user parking can be improved.

[0105] In summary, according to the embodiments of the present disclosure, in the behavior detection scenario, the machine learning model can be used to accurately detect the target behavior. By collecting motion state data at multiple times from at least one target device. Using multiple sub-models in the machine learning model to generate multiple probabilities respectively, based on the multiple probabilities generated for the motion state data at multiple times, and the temporal relationship between the actions determined to have occurred, the detection result of the target behavior can be accurately determined.

[0106] Example Method

[0107] Fig. 6A FIG. 6 is a flowchart showing a process 600A for model training according to some embodiments of the present disclosure. For ease of discussion, reference is made to FIG. Figure 1A Environment 100A will be discussed.

[0108] In box 610, the model training system 120 obtains a training sample set, which includes multiple training samples. The multiple training samples respectively correspond to multiple actions with a temporal relationship that occur before the target behavior. Each training sample includes motion state data collected when the corresponding action occurs and an annotation of the action.

[0109] In box 620, the model training system 120 trains multiple sub-models of the machine learning model through multiple training samples, wherein each sub-model is configured to determine the probability of occurrence of one of multiple actions based on the input motion state data, and the machine learning model is configured to determine the detection result of the target behavior based on the occurrence probabilities of multiple actions output by the multiple sub-models within a time period, and the temporal relationship between the actions determined to have occurred in the multiple actions.

[0110] In some embodiments, the machine learning model is further configured to determine the actions that have occurred among multiple actions based on the occurrence probabilities of multiple actions output by multiple sub-models within a time period, and determine the detection results of the target behavior based on the temporal relationship between the actions determined to have occurred and the weights of each action.

[0111] In some embodiments, the target behavior includes a vehicle return behavior, and the motion state data includes at least motion state data from the vehicle and / or a user terminal device associated with the vehicle.

[0112] In some embodiments, process 600A also includes: if the model training system 120 determines that the scheduled vehicle enters the first area, obtaining motion state data at multiple times when the scheduled vehicle is located in the first area; if it is determined that a first action among multiple actions occurs at the first time, constructing a first training sample, the first training sample includes the motion state data at the first time and an annotation of the first action; and if it is determined that a second action among multiple actions occurs at the second time, constructing a second training sample, the second training sample includes the motion state data at the second time and an annotation of the second action.

[0113] In some embodiments, the scheduled vehicle passes through the first area and enters the second area and the return of the scheduled vehicle will occur in the second area.

[0114] In some embodiments, the start time among the multiple times is determined based on the positioning information of the scheduled vehicle or the user terminal device indicating that the scheduled vehicle enters the first area, and / or the end time among the multiple times is determined based on detecting a trigger operation of a scheduled application from the user terminal device, and the scheduled application is configured to initiate a return request for the scheduled vehicle.

[0115] Figure 6B FIG. 6 is a flowchart showing a process 600B for behavior detection according to some embodiments of the present disclosure. Figure 1B The environment 100B will be discussed.

[0116] In block 630 , the control terminal 150 collects motion state data at multiple times from at least one target device.

[0117] In box 640, the control end 150 generates multiple probabilities based on the motion state data at each time using multiple sub-models in the trained machine learning model, and the multiple probabilities are the probability of occurrence of one action at a corresponding time among multiple actions with a time sequence relationship that occur before the target behavior.

[0118] In block 650 , a detection result of the target behavior is determined based on a plurality of probabilities generated for the motion state data at a plurality of times and based on a temporal relationship between actions determined to have occurred in the plurality of actions.

[0119] In some embodiments, process 600B is further configured as: the control end 150 determines an action that has occurred among multiple actions based on multiple probabilities generated for motion state data at multiple times; and determines the detection result of the target behavior based on the temporal relationship between the actions determined to have occurred and the weights of each action.

[0120] In some embodiments, the target behavior includes returning the target vehicle, and the motion state data includes motion state data of the target vehicle and / or the user terminal device 160 associated with the target vehicle.

[0121] In some embodiments, process 600B also includes: if the detection result indicates that the vehicle return behavior is about to occur after a plurality of time periods, the control end 150 puts the positioning unit 182 of the target vehicle in a target state of uploading positioning information at a target frequency; and receives the positioning information sent by the positioning unit 182 in the target state at the target frequency.

[0122] In some embodiments, process 600B also includes: the control end 150 determines whether the target vehicle meets the first vehicle return condition based on the positioning information, and the first vehicle return condition at least includes that the target vehicle is located in a predetermined area and the posture of the target vehicle meets the vehicle return posture; if it is determined that the target vehicle meets the first vehicle return condition, the user terminal device 160 presents a vehicle return page, and the vehicle return page includes a vehicle return confirmation control; and in response to receiving a trigger operation for the vehicle return confirmation control, executes a vehicle return operation for the target vehicle.

[0123] In some embodiments, process 600B further includes: if the control end 150 determines that the target vehicle does not meet the first vehicle return condition, the user terminal device 160 presents a prompt message, where the prompt message is used to prompt the user to adjust the position and / or posture of the target vehicle.

[0124] In some embodiments, process 600B also includes: if the control end 150 determines that the detection result indicates that a vehicle return is about to occur after a plurality of time periods, the control end 150 enables the user terminal device 160 to pre-acquire at least one control of the vehicle return page; and in response to detecting a trigger operation on a predetermined application from the user terminal device 160, enables the user terminal device 160 to present a vehicle return page including at least one control, and the predetermined application is configured to initiate a vehicle return request for the target vehicle.

[0125] In some embodiments, process 600B also includes: the control end 150 determines whether the target vehicle meets the second vehicle return condition based on the positioning information, the second vehicle return condition at least including that the target vehicle is located in a predetermined area, the posture of the target vehicle meets the vehicle return posture, and the target vehicle is in a stopped state for a period of time exceeding a predetermined period of time; if it is determined that the target vehicle meets the second vehicle return condition, a vehicle return operation is performed for the target vehicle; and in response to the completion of the vehicle return operation, a resource deduction operation required for vehicle use of the target vehicle is performed.

[0126] Example devices and equipment

[0127] Fig. 7AA schematic structural block diagram of an apparatus 700A for model training according to some embodiments of the present disclosure is shown. The apparatus 700A may be implemented as or included in the model training system 120 in the environment 100A, or may be implemented as or included in the control terminal 150 or the user terminal device 160 in the environment 100B. Each module / component in the apparatus 700A may be implemented by hardware, software, firmware, or any combination thereof.

[0128] like Fig. 7A As shown, the device 700A includes an acquisition module 710 and a training module 720. The acquisition module 710 is configured to acquire a training sample set, the training sample set includes multiple training samples, the multiple training samples respectively correspond to multiple actions with a temporal relationship that occur before the target behavior, and each training sample includes motion state data collected when the corresponding action occurs and a label for the action. The training module 720 is configured to train multiple sub-models of the machine learning model through multiple training samples, wherein each sub-model is respectively configured to determine the probability of occurrence of one of the multiple actions based on the input motion state data, and the machine learning model is configured to determine the detection result of the target behavior based on the occurrence probabilities of the multiple actions output by the multiple sub-models within a time period, and the temporal relationship between the actions determined to have occurred in the multiple actions.

[0129] In some embodiments, the machine learning model 130 is further configured to determine the actions that have occurred among multiple actions based on the occurrence probabilities of multiple actions output by multiple sub-models within a time period, and determine the detection results of the target behavior based on the temporal relationship between the actions determined to have occurred and the weights of each action.

[0130] In some embodiments, the target behavior includes a vehicle return behavior, and the motion state data includes at least motion state data from the vehicle 180 and / or the user terminal device 160 associated with the vehicle 180 .

[0131] In some embodiments, the acquisition module 710 is further configured to: if it is determined that the scheduled vehicle enters the first area, acquire motion state data at multiple times when the scheduled vehicle is located in the first area; if it is determined that a first action among multiple actions occurs at the first time, construct a first training sample, the first training sample includes the motion state data at the first time and an annotation of the first action; and if it is determined that a second action among multiple actions occurs at the second time, construct a second training sample, the second training sample includes the motion state data at the second time and an annotation of the second action.

[0132] In some embodiments, the scheduled vehicle passes through the first area and enters the second area and the return of the scheduled vehicle will occur in the second area.

[0133] In some embodiments, the start time among the multiple times is determined based on the positioning information of the scheduled vehicle or the user terminal device indicating that the scheduled vehicle enters the first area, and / or the end time among the multiple times is determined based on detecting a trigger operation of a scheduled application from the user terminal device, and the scheduled application is configured to initiate a return request for the scheduled vehicle.

[0134] Figure 7B A schematic structural block diagram of an apparatus 700B for model training according to some embodiments of the present disclosure is shown. The apparatus 700B may be implemented as or included in the model application system 140 in the environment 100A, or may be implemented as or included in the control terminal 150, user terminal device 160 or vehicle 180 in the environment 100B. Each module / component in the apparatus 700B may be implemented by hardware, software, firmware or any combination thereof.

[0135] like Figure 7B As shown, the device 700B includes a collection module 730, a generation module 740 and a determination module 750. The collection module 730 is configured to collect motion state data at multiple times from at least one target device. The generation module 740 is configured to generate multiple probabilities based on the motion state data at each time, using multiple sub-models in a trained machine learning model, respectively, and the multiple probabilities are respectively the probability of occurrence of one action at a corresponding time among multiple actions with a temporal relationship that occur before the target behavior. The determination module 750 is configured to determine the detection result of the target behavior based on the multiple probabilities generated for the motion state data at the multiple times, and based on the temporal relationship between the actions determined to have occurred among the multiple actions.

[0136] In some embodiments, the determination module 750 is further configured to: determine the actions that have occurred among multiple actions based on multiple probabilities generated for motion state data at multiple times; and determine the detection results of the target behavior based on the timing relationship between the actions determined to have occurred and the weights of each action.

[0137] In some embodiments, the target behavior includes returning the target vehicle, and the motion state data includes motion state data of the target vehicle and / or the user terminal device 160 associated with the target vehicle.

[0138] In some embodiments, the device 700B also includes: a positioning unit control module, which is configured to put the positioning unit 182 of the target vehicle in a target state of uploading positioning information at a target frequency if the detection result indicates that a vehicle return is about to occur after a plurality of times; and receive positioning information sent by the positioning unit 182 in the target state at the target frequency.

[0139] In some embodiments, the device 700B also includes: a vehicle return condition determination module, which is configured to determine whether the target vehicle meets the first vehicle return condition based on the positioning information, the first vehicle return condition at least including that the target vehicle is located in a predetermined area and the posture of the target vehicle meets the vehicle return posture; if it is determined that the target vehicle meets the first vehicle return condition, the user terminal device 160 presents a vehicle return page, and the vehicle return page includes a vehicle return confirmation control; and in response to receiving a trigger operation for the vehicle return confirmation control, perform a vehicle return operation for the target vehicle.

[0140] In some embodiments, the apparatus 700B further includes: a vehicle return condition determination module, configured to cause the user terminal device 160 to present a prompt message if it is determined that the target vehicle does not meet the first vehicle return condition, the prompt message being used to prompt adjustment of the position and / or posture of the target vehicle.

[0141] In some embodiments, the apparatus 700B further includes: a control preloading module, configured to enable the user terminal device 160 to pre-acquire at least one control of the vehicle return page if it is determined that the detection result indicates that a vehicle return is about to occur after a plurality of time periods; and a page presentation module, configured to enable the user terminal device 160 to present a vehicle return page including at least one control in response to detecting a trigger operation on a predetermined application from the user terminal device 160, wherein the predetermined application is configured to initiate a vehicle return request for the target vehicle.

[0142] In some embodiments, the device 700B also includes: a vehicle return condition determination module, which is configured to determine whether the target vehicle meets the second vehicle return condition based on the positioning information, the second vehicle return condition at least including that the target vehicle is located in a predetermined area, the posture of the target vehicle meets the vehicle return posture, and the target vehicle is in a stopped state for a period of time exceeding a predetermined period of time; if it is determined that the target vehicle meets the second vehicle return condition, perform a vehicle return operation for the target vehicle; and in response to the completion of the vehicle return operation, perform a resource deduction operation required for vehicle use of the target vehicle.

[0143] Figure 8 8 is a block diagram of an electronic device 800 in which one or more embodiments of the present disclosure may be implemented. It should be understood that Figure 8 The electronic device 800 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. The electronic device 800 may include or be implemented as Figure 1A The model training system 120 or the model application system 140, the electronic device 800 may also include or be implemented as Figure 1B The control terminal 150, the user terminal device 160 or the vehicle 180, the electronic device 800 may also include or be implemented as Fig. 6A Device 600A or Figure 6B Device 600B.

[0144] like Figure 8 As shown, the electronic device 800 is in the form of a general-purpose computing device. The components of the electronic device 800 may include, but are not limited to, one or more processors or processing units 810, a memory 820, a storage device 830, one or more communication units 840, one or more input devices 850, and one or more output devices 860. The processing unit 810 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 820. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capabilities of the electronic device 800.

[0145] The electronic device 800 typically includes a plurality of computer storage media. Such media may be any available media accessible to the electronic device 800, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 820 may be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 830 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data (e.g., training data for training) and may be accessed within the electronic device 800.

[0146] The electronic device 800 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 8 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 820 may include a computer program product 825 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.

[0147] The communication unit 840 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 800 can be implemented with a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 800 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.

[0148] The input device 850 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 860 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 800 may also communicate with one or more external devices (not shown) through the communication unit 840 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 800, or communicate with any device that allows the electronic device 800 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).

[0149] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.

[0150] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0151] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0152] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0153] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.

[0154] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the marketplace, or to enable other persons of ordinary skill in the art to understand the disclosure herein.

Claims

1. A method for model training, comprising: Acquire a training sample set, the training sample set comprising a plurality of training samples, the plurality of training samples respectively corresponding to a plurality of actions having a time sequence relationship occurring before a target behavior, each of the training samples comprising motion state data collected when a corresponding action occurs and a label for the action; as well as Using the multiple training samples, multiple sub-models of the machine learning model are trained respectively. Each sub-model is configured to determine the occurrence probability of one of the plurality of actions based on the input motion state data, and The machine learning model is configured to determine the detection result of the target behavior based on the occurrence probabilities of the multiple actions output by the multiple sub-models within a time period, and the temporal relationship between the actions determined to have occurred in the multiple actions.

2. The method according to claim 1, wherein the machine learning model is further configured to determine the actions that have occurred among the multiple actions based on the occurrence probabilities of the multiple actions output by the multiple sub-models within a time period, and determine the detection result of the target behavior based on the temporal relationship between the actions determined to have occurred and the weights of each action.

3. The method according to claim 1, wherein the target behavior comprises a vehicle return behavior, and The motion state data at least includes motion state data from the vehicle and / or a user terminal device associated with the vehicle.

4. The method according to claim 3, wherein obtaining the training sample set comprises: If it is determined that the predetermined vehicle enters the first area, acquiring motion state data at multiple times when the predetermined vehicle is located in the first area; If it is determined that a first action among the plurality of actions occurs at a first time, constructing a first training sample, wherein the first training sample includes the motion state data at the first time and a label for the first action; and If it is determined that a second action among the plurality of actions occurs at a second time, a second training sample is constructed, wherein the second training sample includes the motion state data at the second time and a label for the second action. 5 . The method according to claim 4 , wherein the scheduled vehicle passes through the first area and enters a second area and the return of the scheduled vehicle will occur in the second area.

6. The method according to claim 4, wherein the starting time of the plurality of times is determined based on the location information of the scheduled vehicle or the user terminal device indicating that the scheduled vehicle enters the first area, and / or The end time among the plurality of times is determined based on detecting a trigger operation on a predetermined application from the user terminal device, and the predetermined application is configured to initiate a return request for the predetermined vehicle.

7. A method for behavior detection, comprising: Collecting motion state data at multiple times from at least one target device; Based on the motion state data at each time, multiple sub-models in the trained machine learning model are used to generate multiple probabilities respectively, where the multiple probabilities are the probability of occurrence of one action at a corresponding time among multiple actions with a temporal relationship occurring before the target behavior; as well as The detection result of the target behavior is determined based on a plurality of probabilities generated for the motion state data at the plurality of times and based on a temporal relationship between actions determined to have occurred among the plurality of actions.

8. The method according to claim 7, determining the detection result of the target behavior comprises: Determining an action that has occurred among the plurality of actions based on a plurality of probabilities generated for the motion state data at the plurality of times; as well as Based on the temporal relationship between the actions determined to have occurred and the weights of the respective actions, a detection result of the target behavior is determined.

9. The method according to claim 7, wherein the target behavior comprises a return behavior of the target vehicle, and The motion state data includes motion state data of the target vehicle and / or a user terminal device associated with the target vehicle.

10. The method according to claim 9, further comprising: If the detection result indicates that the vehicle return behavior is about to occur after the plurality of times, placing the positioning unit of the target vehicle in a target state of uploading positioning information at a target frequency; as well as The positioning information sent by the positioning unit in the target state at the target frequency is received.

11. The method according to claim 10, further comprising: Determining whether the target vehicle meets a first vehicle return condition based on the positioning information, the first vehicle return condition at least including that the target vehicle is located in a predetermined area and the posture of the target vehicle meets the vehicle return posture; If it is determined that the target vehicle meets the first vehicle return condition, causing the user terminal device to present a vehicle return page, wherein the vehicle return page includes a vehicle return confirmation control; and In response to receiving a trigger operation for the vehicle return confirmation control, a vehicle return operation for the target vehicle is performed.

12. The method according to claim 11, further comprising: If it is determined that the target vehicle does not meet the first vehicle return condition, the user terminal device is caused to present prompt information, where the prompt information is used to prompt the user to adjust the position and / or posture of the target vehicle.

13. The method according to claim 11, further comprising: If the detection result indicates that the vehicle return behavior is about to occur after the multiple times, enabling the user terminal device to pre-acquire at least one control of the vehicle return page; The step of causing the user terminal device to present a car return page includes: In response to detecting a trigger operation on a predetermined application from the user terminal device, the user terminal device presents a vehicle return page including the at least one control, and the predetermined application is configured to initiate a vehicle return request for the target vehicle.

14. The method according to claim 10, further comprising: Determining whether the target vehicle meets a second vehicle return condition based on the positioning information, the second vehicle return condition at least including that the target vehicle is located in a predetermined area, the posture of the target vehicle meets the vehicle return posture, and the target vehicle is in a stopped state for a time period exceeding a predetermined time period; If it is determined that the target vehicle meets the second vehicle return condition, performing a vehicle return operation for the target vehicle; and In response to the completion of the execution of the vehicle return operation, a resource deduction operation required for vehicle use of the target vehicle is performed.

15. A device for model training, comprising: An acquisition module is configured to acquire a training sample set, wherein the training sample set includes a plurality of training samples, wherein the plurality of training samples respectively correspond to a plurality of actions having a time sequence relationship occurring before a target behavior, and each of the training samples includes motion state data collected when a corresponding action occurs and a label for the action; as well as A training module is configured to train multiple sub-models of the machine learning model respectively through the multiple training samples, Each sub-model is configured to determine the occurrence probability of one of the plurality of actions based on the input motion state data, and The machine learning model is configured to determine the detection result of the target behavior based on the occurrence probabilities of the multiple actions output by the multiple sub-models within a time period, and the temporal relationship between the actions determined to have occurred in the multiple actions.

16. A device for behavior detection, comprising: A collection module, configured to collect motion state data at multiple times from at least one target device; A generation module is configured to generate a plurality of probabilities based on the motion state data at each time by using a plurality of sub-models in the trained machine learning model, wherein the plurality of probabilities are respectively the probability of occurrence of one action at a corresponding time among a plurality of actions having a temporal relationship that occur before the target behavior; as well as The determination module is configured to determine the detection result of the target behavior based on multiple probabilities generated for the motion state data of the multiple times and based on the temporal relationship between the actions determined to have occurred in the multiple actions.

17. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform a method according to any one of claims 1 to 6 or claims 7-14.

18. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 6 or claims 7 to 14.

19. A computer program product comprising computer executable instructions, wherein the computer executable instructions, when executed by a processor, implement the method according to any one of claims 1 to 6 or claims 7 to 14.

Citation Information

Patent Citations

  • Electric bicycle returning processing method and device and readable storage medium

    CN114694318A