WO2021135653A1 - Method and system for identifying abnormal stay of vehicle - Google Patents

Method and system for identifying abnormal stay of vehicle Download PDF

Info

Publication number
WO2021135653A1
WO2021135653A1 PCT/CN2020/127694 CN2020127694W WO2021135653A1 WO 2021135653 A1 WO2021135653 A1 WO 2021135653A1 CN 2020127694 W CN2020127694 W CN 2020127694W WO 2021135653 A1 WO2021135653 A1 WO 2021135653A1
Authority
WO
WIPO (PCT)
Prior art keywords
stay
abnormal
model
time
historical
Prior art date
Application number
PCT/CN2020/127694
Other languages
French (fr)
Chinese (zh)
Inventor
张腾剑
陈奥
Original Assignee
北京嘀嘀无限科技发展有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京嘀嘀无限科技发展有限公司 filed Critical 北京嘀嘀无限科技发展有限公司
Publication of WO2021135653A1 publication Critical patent/WO2021135653A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • G06Q50/40

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Traffic Control Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A method for identifying abnormal stay of a vehicle (150). The method comprises the following steps: obtaining real-time stay data of the vehicle (150) (501); and determining, on the basis of the real-time stay data, whether the vehicle (150) is in an abnormal stay state using an identification model (503), wherein the identification model comprises a machine learning model obtained by training historical stay data of a plurality of historical vehicles (150).

Description

一种识别车辆的异常停留的方法和系统Method and system for identifying abnormal stay of vehicles
优先权声明Priority statement
本申请要求2019年12月31日提交的申请号为201911421142.4的中国专利申请的优先权,所述申请以全文引用的方式并入本文中。This application claims the priority of the Chinese patent application with application number 201911421142.4 filed on December 31, 2019, which is incorporated herein by reference in its entirety.
技术领域Technical field
本申请涉及交通技术领域,特别涉及一种识别车辆的异常停留的方法和系统。This application relates to the field of traffic technology, and in particular to a method and system for identifying abnormal stops of vehicles.
背景技术Background technique
随着网络技术和通信技术的发展,各种运输服务例如网约车、外卖等车辆服务变得越来越流行。对于车辆服务平台而言,安全是平台可持续发展的保障。而行程中的异常停留是所有安全场景中最为常见和占比最大的场景,绝大多数案例都是因为发生司乘冲突或者交通事故导致人伤、人亡。基于司机和乘客的安全考虑,在行程过程中实时监控车辆是否存在异常停留,能够为车辆相关人员例如司机和/乘客提供安全保护。因此,有必要提出一种确定车辆异常停留行为的方法和系统。With the development of network technology and communication technology, various transportation services such as online car-hailing, takeaway and other vehicle services have become more and more popular. For the vehicle service platform, safety is the guarantee for the sustainable development of the platform. Abnormal stays in the itinerary are the most common and accounted for the largest proportion of all safety scenarios. The vast majority of cases are caused by driver and passenger conflicts or traffic accidents that cause injuries and deaths. Based on the safety considerations of drivers and passengers, real-time monitoring of whether the vehicle has abnormal stops during the journey can provide safety protection for vehicle-related personnel such as drivers and/or passengers. Therefore, it is necessary to propose a method and system for determining abnormal parking behavior of vehicles.
发明内容Summary of the invention
本申请一些实施例提供一种系统。所述系统包括至少一个存储介质,所述存储介质包括用于识别车辆的异常停留的指令。以及至少一个处理器,所述至少一个处理器与所述至少一个存储介质通信,其中,在执行所述指令时,所述至少一个处理器被配置为执行以下操作。获取所述车辆的实时停留数据;基于所述实时停留数据,利用识别模型确定所述车辆是否处于异常停留状态;其中,所述识别模型包括基于多个历史车辆的历史停留数据训练得到的机器学习模型。Some embodiments of the application provide a system. The system includes at least one storage medium that includes instructions for identifying an abnormal stay of the vehicle. And at least one processor, the at least one processor is in communication with the at least one storage medium, wherein, when the instruction is executed, the at least one processor is configured to perform the following operations. Acquire real-time stay data of the vehicle; based on the real-time stay data, use a recognition model to determine whether the vehicle is in an abnormal stay state; wherein the recognition model includes machine learning trained based on historical stay data of multiple historical vehicles model.
本申请一些实施例提供一种用于识别车辆的异常停留方法。所述方法包括以下操作。获取所述车辆的实时停留数据;基于所述实时停留数据,利用识别模型确定所述车辆是否处于异常停留状态;其中,所述识别模型包括基于多个历史车辆的历史停留数据训练得到的机器学习模型。Some embodiments of the present application provide a method for identifying an abnormal stop of a vehicle. The method includes the following operations. Acquire real-time stay data of the vehicle; based on the real-time stay data, use a recognition model to determine whether the vehicle is in an abnormal stay state; wherein the recognition model includes machine learning trained based on historical stay data of multiple historical vehicles model.
本申请一些实施例提供一种计算机可读存储介质,所述存储介质存储计算机指令,当计算机读取存储介质中的计算机指令后,计算机执行如下用于识别车辆的异常停留方法。所述方法包括获取所述车辆的实时停留数据;基于所述实时停留数据,利用识别模型确定所述车辆是否处于异常停留状态;其中,所述识别模型包括基于多个历史车辆的历史停留数据训练得到的机器学习模型。Some embodiments of the present application provide a computer-readable storage medium that stores computer instructions. After the computer reads the computer instructions in the storage medium, the computer executes the following method for identifying abnormal parking of a vehicle. The method includes acquiring real-time stay data of the vehicle; based on the real-time stay data, using a recognition model to determine whether the vehicle is in an abnormal stay state; wherein the recognition model includes training based on historical stay data of a plurality of historical vehicles The resulting machine learning model.
本申请一些实施例提供一种网约车的异常停留行为识别方法。所述方法包括以下操作。 采集网约车发生停留时的实时数据,所述实时数据包括当前停留位置、当前停留时长、司机服务状态以及预定特征信息;从数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述实时数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述实时数据相同时间段以及相同区域内的历史停留时长;根据所述实时数据、所述第一历史数据集合、所述第二历史数据集合以及预设模型,识别所述网约车当前是否出现异常停留行为。Some embodiments of the present application provide a method for recognizing abnormal stay behavior of online car-hailing. The method includes the following operations. Collect real-time data when the ride-hailing takes place, the real-time data includes the current stay location, current stay time, driver service status, and predetermined characteristic information; obtain the first historical data set and the second historical data set from the database; The first historical data set includes the historical stay time of at least one driver in the same service state as the real-time data, and the second historical data set includes the history of at least one driver in the same time period and in the same area as the real-time data. Staying time; according to the real-time data, the first historical data set, the second historical data set, and a preset model, identify whether the online car-hailing currently exhibits an abnormal staying behavior.
本申请一些实施例提供一种网约车的异常停留行为识别模型训练方法。所述方法包括以下操作。从数据库获取训练数据集合,所述训练数据包括属于异常停留行为的正例训练数据和不属于异常停留行为的负例训练数据;对于每一训练数据,提取所述训练数据的停留位置、停留时长、司机服务状态以及预定特征信息;从所述数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述训练数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述训练数据相同时间段以及相同区域内的历史停留时长;根据所述训练数据集合、每一训练数据对应的所述第一历史数据集合和所述第二历史数据集合,对预设模型进行训练,以使预设模型输出的异常停留行为判断结果的准确率和/或召回率达到目标值。Some embodiments of the present application provide a method for training an abnormal stay behavior recognition model for online car-hailing. The method includes the following operations. Obtain a training data set from a database. The training data includes positive training data belonging to abnormal staying behaviors and negative training data not belonging to abnormal staying behaviors; for each training data, the staying position and staying duration of the training data are extracted , Driver service status and predetermined feature information; obtain a first historical data set and a second historical data set from the database; the first historical data set includes the history of at least one driver in the same service state as the training data Staying time, the second historical data set includes the historical staying time of at least one driver in the same time period and in the same area as the training data; according to the training data set, the first historical data corresponding to each training data The data set and the second historical data set train the preset model so that the accuracy and/or recall rate of the abnormal stay behavior judgment result output by the preset model reaches the target value.
本申请一些实施例提供一种网约车的异常停留行为识别装置。所述装置包括采集模块、获取模块以及处理模块。所述采集模块用于采集网约车发生停留时的实时数据,所述实时数据包括当前停留位置、当前停留时长、司机服务状态以及预定特征信息。所述获取模块用于从数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述实时数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述实时数据相同时间段以及相同区域内的历史停留时长。所述处理模块用于根据所述实时数据、所述第一历史数据集合、所述第二历史数据集合以及预设模型,识别所述网约车当前是否出现异常停留行为。Some embodiments of the present application provide a device for identifying abnormal stay behavior of online car-hailing. The device includes an acquisition module, an acquisition module, and a processing module. The collection module is used to collect real-time data when the online car-hailing stops, and the real-time data includes the current staying position, the current staying time, the driver's service status, and predetermined characteristic information. The acquiring module is used to acquire a first historical data set and a second historical data set from a database; the first historical data set includes the historical stay time of at least one driver in the same service state as the real-time data, the The second historical data set includes the historical stay time of at least one driver in the same time period and in the same area as the real-time data. The processing module is configured to identify whether the online car-hailing currently exhibits abnormal stay behavior based on the real-time data, the first historical data set, the second historical data set, and a preset model.
本申请一些实施例提供一种网约车的异常停留行为识别模型训练装置。所述装置包括获取模块、特征提取模块和训练模块。所述获取模块用于从数据库获取训练数据集合,所述训练数据包括属于异常停留行为的正例训练数据和不属于异常停留行为的负例训练数据。所述特征提取模块用于对于每一训练数据,提取所述训练数据的停留位置、停留时长、司机服务状态以及预定特征信息。所述获取模块还用于从所述数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述训练数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述训练数据相同时间段以及相同区域内的历史停留时长。所述训练模块用于根据所述训练数据集合、每一训练数据 对应的所述第一历史数据集合和所述第二历史数据集合,对预设模型进行训练,以使预设模型输出的异常停留行为判断结果的准确率和/或召回率达到目标值。Some embodiments of the present application provide a device for training an abnormal stay behavior recognition model for online car-hailing. The device includes an acquisition module, a feature extraction module and a training module. The acquisition module is used to acquire a training data set from a database, and the training data includes positive training data belonging to abnormal staying behaviors and negative training data not belonging to abnormal staying behaviors. The feature extraction module is used for extracting the stay location, stay duration, driver service status and predetermined feature information of the training data for each training data. The acquiring module is further configured to acquire a first historical data set and a second historical data set from the database; the first historical data set includes the historical stay time of at least one driver in the same service state as the training data The second historical data set includes the historical stay time of at least one driver in the same time period and in the same area as the training data. The training module is configured to train a preset model according to the training data set, the first historical data set and the second historical data set corresponding to each training data, so that the output of the preset model is abnormal The accuracy and/or recall rate of the judgment result of the staying behavior reaches the target value.
本申请一些实施例提供一种网约车的异常停留行为识别设备。所述设备包括存储器、处理器以及计算机程序。其中,所述计算机程序存储在所述存储器中,并被配置为由所述处理器执行以实现如上所述的网约车的异常停留行为识别方法。Some embodiments of the present application provide a device for identifying abnormal stay behavior of online car-hailing. The device includes a memory, a processor, and a computer program. Wherein, the computer program is stored in the memory and is configured to be executed by the processor to implement the above-mentioned method for identifying abnormal stay behavior of online car-hailing.
本申请一些实施例提供一种网约车异常停留行为识别模型训练设备。所述设备包括存储器、处理器以及计算机程序。其中,所述计算机程序存储在所述存储器中,并被配置为由所述处理器执行以实现如上所述的网约车的异常停留行为识别模型的训练方法。Some embodiments of the present application provide a training device for a recognition model of abnormal stay behavior of online car-hailing. The device includes a memory, a processor, and a computer program. Wherein, the computer program is stored in the memory, and is configured to be executed by the processor to realize the above-mentioned training method of the abnormal stay behavior recognition model of online car-hailing.
附图说明Description of the drawings
本申请将以示例性实施例的方式进一步说明,这些示例性实施例将通过附图进行详细描述。这些实施例并非限制性的,在这些实施例中,相同的编号表示相同的结构,其中:This application will be further described in the form of exemplary embodiments, and these exemplary embodiments will be described in detail with the accompanying drawings. These embodiments are not restrictive. In these embodiments, the same number represents the same structure, in which:
图1是根据本申请一些实施例所示的示例性车辆监控系统的示意图;Fig. 1 is a schematic diagram of an exemplary vehicle monitoring system according to some embodiments of the present application;
图2是根据本申请一些实施例所示的示例性计算设备的示例性硬件组件和/或软件组件的示意图;Fig. 2 is a schematic diagram of exemplary hardware components and/or software components of an exemplary computing device according to some embodiments of the present application;
图3是根据本申请一些实施例所示的示例性移动设备的示例性硬件组件和/或软件组件的示意图;Fig. 3 is a schematic diagram of exemplary hardware components and/or software components of an exemplary mobile device according to some embodiments of the present application;
图4是根据本申请一些实施例所示的示例性处理设备的模块图;Fig. 4 is a block diagram of an exemplary processing device according to some embodiments of the present application;
图5是根据本申请一些实施例所示的车辆的异常停留行为识别方法的示例性流程图;Fig. 5 is an exemplary flowchart of a method for identifying abnormal stay behavior of a vehicle according to some embodiments of the present application;
图6是根据本申请一些实施例所示的利用识别模型确定车辆是否处于异常停留状态的示例性流程图;Fig. 6 is an exemplary flow chart for determining whether a vehicle is in an abnormal stay state by using a recognition model according to some embodiments of the present application;
图7是根据本申请一些实施例所示的确定当前停留时长是否为异常停留时长的示例性流程图;FIG. 7 is an exemplary flowchart for determining whether the current stay duration is an abnormal stay duration according to some embodiments of the present application;
图8是根据本申请一些实施例所示的确定当前车辆停留相关的特征信息是否满足停留规则的示例性流程图;和FIG. 8 is an exemplary flowchart for determining whether the characteristic information related to the current vehicle stay meets the stay rule according to some embodiments of the present application; and
图9是根据本申请一些实施例所示的识别模型的训练方法的示例性流程图。Fig. 9 is an exemplary flowchart of a method for training a recognition model according to some embodiments of the present application.
具体实施方式Detailed ways
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单的介绍。显而易见地,下面描述中的附图仅仅是本申请的一些示例或实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图将本申请应用于其它类似情景。除非从语言环境中显而易见或另做说明,图中相同标号代表相同结构 或操作。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some examples or embodiments of the application. For those of ordinary skill in the art, without creative work, the application can be applied to the application according to these drawings. Other similar scenarios. Unless it is obvious from the language environment or otherwise stated, the same reference numerals in the figures represent the same structure or operation.
应当理解,本文使用的“系统”、“装置”、“单元”和/或“模组”是用于区分不同级别的不同组件、元件、部件、部分或装配的一种方法。然而,如果其他词语可实现相同的目的,则可通过其他表达来替换所述词语。It should be understood that the “system”, “device”, “unit” and/or “module” used herein is a method for distinguishing different components, elements, parts, parts, or assemblies of different levels. However, if other words can achieve the same purpose, the words can be replaced by other expressions.
如本申请和权利要求书中所示,除非上下文明确提示例外情形,“一”、“一个”、“一种”和/或“该”等词并非特指单数,也可包括复数。一般说来,术语“包括”与“包含”仅提示包括已明确标识的步骤和元素,而这些步骤和元素不构成一个排它性的罗列,方法或者设备也可能包含其它的步骤或元素。As shown in the present application and claims, unless the context clearly suggests exceptional circumstances, the words "a", "an", "an" and/or "the" do not specifically refer to the singular, but may also include the plural. Generally speaking, the terms "include" and "include" only suggest that the clearly identified steps and elements are included, and these steps and elements do not constitute an exclusive list, and the method or device may also include other steps or elements.
本申请中使用了流程图用来说明根据本申请的实施例的系统所执行的操作。应当理解的是,前面或后面操作不一定按照顺序来精确地执行。相反,可以按照倒序或同时处理各个步骤。同时,也可以将其他操作添加到这些流程中,或从这些流程移除某一步或数步操作。In this application, a flowchart is used to illustrate the operations performed by the system according to the embodiment of the application. It should be understood that the preceding or following operations are not necessarily performed exactly in order. Instead, the steps can be processed in reverse order or at the same time. At the same time, you can also add other operations to these processes, or remove a step or several operations from these processes.
本申请的实施例可以应用于不同的运输系统,不同的运输系统包括但不限于陆地、海洋、航空、航天等中的一种或几种的组合。例如,出租车、专车、顺风车、巴士、代驾、火车、动车、高铁、船舶、飞机、热气球、无人驾驶的交通工具、收/送快递等应用了管理和/或分配的运输系统。本申请的不同实施例应用场景包括但不限于网页、浏览器插件、客户端、定制系统、企业内部分析系统、人工智能机器人等中的一种或几种的组合。应当理解的是,本申请的系统及方法的应用场景仅仅是本申请的一些示例或实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图将本申请应用于其它类似情景。例如,其他类似的引导用户停车系统。The embodiments of the present application can be applied to different transportation systems, and different transportation systems include, but are not limited to, one or a combination of land, ocean, aviation, aerospace, and the like. For example, taxis, private cars, ride-hailing cars, buses, agent driving, trains, high-speed trains, ships, airplanes, hot air balloons, unmanned vehicles, collection/delivery express delivery, etc. which apply management and/or distribution transportation systems . The application scenarios of different embodiments of the present application include, but are not limited to, one or a combination of web pages, browser plug-ins, clients, customized systems, enterprise internal analysis systems, artificial intelligence robots, and the like. It should be understood that the application scenarios of the system and method of the present application are only some examples or embodiments of the present application. For those of ordinary skill in the art, they can also be based on these drawings without creative work. Apply this application to other similar scenarios. For example, other similar guidance users to park systems.
本申请描述的“乘客”、“乘客端”、“用户终端”、“顾客”、“需求者”、“服务需求者”、“消费者”、“消费方”、“使用需求者”等是可以互换的,是指需要或者订购服务的一方,可以是个人,也可以是工具。同样地,本申请描述的“司机”、“司机端”、“提供者”、“供应者”、“服务提供者”、“服务者”、“服务方”等也是可以互换的,是指提供服务或者协助提供服务的个人、工具或者其他实体等。另外,本申请描述的“用户”可以是需要或者订购服务的一方,也可以是提供服务或者协助提供服务的一方。The "passenger", "passenger terminal", "user terminal", "customer", "demand", "service demander", "consumer", "consumer", "user demander", etc. described in this application are Interchangeable refers to the party that needs or subscribes to the service. It can be an individual or a tool. Similarly, the “driver”, “driver’s end”, “provider”, “provider”, “service provider”, “service provider”, “service provider”, etc. described in this application are also interchangeable and refer to Individuals, tools, or other entities that provide services or assist in providing services. In addition, the "user" described in this application may be a party that needs or subscribes to services, or a party that provides services or assists in providing services.
图1是根据本申请的一些实施例所示的示例性车辆监控系统的示意图。在一些实施例中,车辆监控系统100可以应用于多种应用场景。例如,车辆监控系统100可以应用于多种运输服务,运输服务可以包括出租车服务、快车服务、专车服务、小巴服务、拼车服务、顺风车服务、公交服务、代驾服务、快递服务、外卖服务、货运服务等。Fig. 1 is a schematic diagram of an exemplary vehicle monitoring system according to some embodiments of the present application. In some embodiments, the vehicle monitoring system 100 can be applied to a variety of application scenarios. For example, the vehicle monitoring system 100 can be applied to a variety of transportation services. The transportation services can include taxi services, express services, private car services, minibus services, carpooling services, ride-hailing services, bus services, driving services, courier services, and takeaways. Services, freight services, etc.
在一些实施例中,车辆监控系统100可以确定执行服务的车辆的停留是否属于异常停留。例如,对于打车服务,车辆监控系统100可以确定服务车辆在服务状态(例如,接送 乘客的过程中)和/或非服务状态(例如,等待服务请求的过程中)下的某一次或多次停留是否处于异常停留状态。又例如,对于外卖服务,车辆监控系统100可以确定外卖员的车辆在取餐和/或送餐的途中的某一次或几次停留是否处于异常停留状态。还例如,对于货运服务,车辆监控系统100可以确定送货车辆在货物运输过程中的某一次或多次停留是否处于异常停留状态。In some embodiments, the vehicle monitoring system 100 may determine whether the stay of the vehicle performing the service is an abnormal stay. For example, for a ride-hailing service, the vehicle monitoring system 100 may determine that the service vehicle is in a service state (for example, in the process of picking up passengers) and/or in a non-service state (for example, in the process of waiting for a service request) for one or more stops. Whether it is in an abnormal state. For another example, for a take-out service, the vehicle monitoring system 100 can determine whether the take-out person's vehicle is in an abnormal stop state during one or several stops in the way of picking up and/or delivering the meal. For another example, for freight services, the vehicle monitoring system 100 can determine whether the delivery vehicle is in an abnormal stay state during one or more stops during the freight transportation.
如图1所示,车辆监控系统100可以包括处理设备110、终端120、存储设备130、网络140以及车辆150。处理设备110可以处理从终端120、存储设备130和/或车辆150处获取的数据和/或信息。在一些实施例中,处理设备110可以获取多个终端120的定位/轨迹信息和/或与车辆相关的人员(例如,司机和乘客)的特征信息。处理设备110可以处理上述所获取的信息和/或数据以执行本申请描述的一个或多个功能。例如,处理设备110可以采集车辆150的实时停留数据并存储到存储设备130,也可从存储设备130中获取历史停留数据以进行识别模型的训练。在车辆的异常停留行为识别过程中,处理设备110可根据采集到的车辆150发生停留时的实时停留数据,根据由历史停留数据训练得到的识别模型,可识别出车辆150当前是否出现异常停留行为。在一些实施例中,处理设备110可以是独立的服务器或者服务器组。服务器组可以是集中式的或者分布式的(例如,处理设备110可以是分布系统)。在一些实施例中,处理设备110可以是本地的或者远程的。例如,处理设备110可通过网络140访问从终端120和/或存储设备130和/或车辆150处获取信息和/或数据。在一些实施例中,处理设备110可直接与终端120、存储设备130和/或车辆150连接以获取信息和/或数据。在一些实施例中,处理设备110可在云平台上执行。例如,云平台可包括私有云、公共云、混合云、社区云、分散式云、内部云等中的一种或其任意组合。在一些实施例中,处理设备110可以集成于终端120中。在一些实施例中,处理设备110可以通过图2所示的计算设备200实现。As shown in FIG. 1, the vehicle monitoring system 100 may include a processing device 110, a terminal 120, a storage device 130, a network 140 and a vehicle 150. The processing device 110 may process data and/or information obtained from the terminal 120, the storage device 130, and/or the vehicle 150. In some embodiments, the processing device 110 may obtain location/trajectory information of multiple terminals 120 and/or characteristic information of persons related to the vehicle (for example, drivers and passengers). The processing device 110 may process the information and/or data obtained above to perform one or more functions described in this application. For example, the processing device 110 may collect real-time stay data of the vehicle 150 and store it in the storage device 130, and may also obtain historical stay data from the storage device 130 to train the recognition model. In the process of identifying abnormal parking behaviors of the vehicle, the processing device 110 can identify whether the vehicle 150 currently has abnormal parking behaviors based on the collected real-time stay data when the vehicle 150 stays, and according to the recognition model trained from the historical stay data . In some embodiments, the processing device 110 may be an independent server or a server group. The server group may be centralized or distributed (for example, the processing device 110 may be a distributed system). In some embodiments, the processing device 110 may be local or remote. For example, the processing device 110 may access and obtain information and/or data from the terminal 120 and/or the storage device 130 and/or the vehicle 150 through the network 140. In some embodiments, the processing device 110 may be directly connected to the terminal 120, the storage device 130, and/or the vehicle 150 to obtain information and/or data. In some embodiments, the processing device 110 may be executed on a cloud platform. For example, the cloud platform may include one or any combination of private cloud, public cloud, hybrid cloud, community cloud, decentralized cloud, internal cloud, etc. In some embodiments, the processing device 110 may be integrated in the terminal 120. In some embodiments, the processing device 110 may be implemented by the computing device 200 shown in FIG. 2.
在一些实施例中,处理设备110可以包含一个或多个子处理设备(例如,单核处理器或多核处理器)。仅仅作为示例,处理设备110可以包括中央处理器(CPU)、专用集成电路(ASIC)、专用指令处理器(ASIP)、图形处理器(GPU)、物理处理器(PPU)、数字信号处理器(DSP)、现场可编程门阵列(FPGA)、可编辑逻辑电路(PLD)、控制器、微控制器单元、精简指令集电脑(RISC)、微处理器等或其任意组合。In some embodiments, the processing device 110 may include one or more sub-processing devices (for example, a single-core processor or a multi-core processor). For example only, the processing device 110 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), an application specific instruction processor (ASIP), a graphics processing unit (GPU), a physical processor (PPU), a digital signal processor ( DSP), Field Programmable Gate Array (FPGA), Editable Logic Circuit (PLD), Controller, Microcontroller Unit, Reduced Instruction Set Computer (RISC), Microprocessor, etc. or any combination thereof.
终端120可以是具有数据获取、存储和/或发送功能的设备。终端120可以包括服务提供者终端、服务请求者终端、车载终端等。服务提供者可以是提供服务的个人、工具或者其他实体。服务请求者可以是需要得到或者正在接受服务的个人、工具或者其他实体。例如,对于打车服务,服务提供者可以是司机或第三方平台,服务请求者可以是乘客或者其它接受 类似服务的个人或者设备(例如,物联网设备)。在一些实施例中,终端120可以用于采集各类数据,包括但不限于与服务相关的数据。终端120所采集的数据可以是实时数据也可以是各类历史数据。在一些实施例中,终端120可以通过自身的传感器进行数据采集,可以从外接传感器获取数据,也可以从其自身的存储器中读取数据,还可以通过网络140从存储设备130中读取数据。在一些实施例中,终端120的传感器可以包括定位装置、声音传感器、图像传感器、温湿度传感器、位置传感器、压力传感器、距离传感器、速度传感器、加速度传感器、重力传感器、位移传感器、力矩传感器、陀螺仪等或其任意组合。The terminal 120 may be a device with data acquisition, storage and/or transmission functions. The terminal 120 may include a service provider terminal, a service requester terminal, a vehicle-mounted terminal, and the like. Service providers can be individuals, tools, or other entities that provide services. Service requesters can be individuals, tools, or other entities that need to get or are receiving services. For example, for a taxi service, the service provider may be a driver or a third-party platform, and the service requester may be a passenger or other person or device (for example, an Internet of Things device) that receives similar services. In some embodiments, the terminal 120 may be used to collect various types of data, including but not limited to service-related data. The data collected by the terminal 120 may be real-time data or various historical data. In some embodiments, the terminal 120 may collect data through its own sensors, acquire data from external sensors, or read data from its own memory, or read data from the storage device 130 through the network 140. In some embodiments, the sensors of the terminal 120 may include positioning devices, sound sensors, image sensors, temperature and humidity sensors, position sensors, pressure sensors, distance sensors, speed sensors, acceleration sensors, gravity sensors, displacement sensors, torque sensors, and gyroscopes.仪, etc. or any combination thereof.
在一些实施例中,终端120可以包括移动设备120-1、车辆内置设备120-2、平板电脑120-3、笔记本电脑120-4、台式电脑120-5等或其任意组合。在一些实施例中,移动设备120-1可以包括智能家居设备、可穿戴设备、智能移动设备、虚拟现实设备、增强现实设备等或其任意组合。智能家居设备可以包括智能照明设备、智能电器控制设备、智能监控设备、智能电视、智能摄像机、对讲机等或其任意组合。可穿戴设备可以包括智能手镯、智能鞋袜、智能眼镜、智能头盔、智能手表、智能衣物、智能背包、智能配饰等或其任意组合。智能移动设备可以包括智能手机、个人数字助理(PDA)、游戏设备、导航设备、POS机等或其任意组合。虚拟现实/增强现实设备可以包括虚拟现实头盔、虚拟现实眼镜、虚拟现实眼罩、增强实境头盔、增强实境眼镜、增强实境眼罩等或其任意组合。在一些实施例中,车辆内置设备120-2可以包括车载计算机、汽车数据记录器、车载人机交互(HCI)系统、行车记录仪、车载电视等。In some embodiments, the terminal 120 may include a mobile device 120-1, a vehicle built-in device 120-2, a tablet computer 120-3, a notebook computer 120-4, a desktop computer 120-5, etc., or any combination thereof. In some embodiments, the mobile device 120-1 may include a smart home device, a wearable device, a smart mobile device, a virtual reality device, an augmented reality device, etc., or any combination thereof. Smart home devices may include smart lighting devices, smart electrical control devices, smart monitoring devices, smart TVs, smart cameras, walkie-talkies, etc., or any combination thereof. Wearable devices may include smart bracelets, smart footwear, smart glasses, smart helmets, smart watches, smart clothes, smart backpacks, smart accessories, etc., or any combination thereof. Smart mobile devices may include smart phones, personal digital assistants (PDAs), game devices, navigation devices, POS machines, etc., or any combination thereof. The virtual reality/augmented reality device may include a virtual reality helmet, virtual reality glasses, virtual reality goggles, augmented reality helmets, augmented reality glasses, augmented reality goggles, etc., or any combination thereof. In some embodiments, the in-vehicle device 120-2 may include an in-vehicle computer, an in-vehicle data recorder, an in-vehicle human-computer interaction (HCI) system, a driving recorder, an in-vehicle TV, and the like.
在一些实施例中,终端120可以是具有定位功能的设备,其定位功能可以通过多种定位技术实现,例如,全球定位系统(GPS)、全球卫星导航系统(GLONASS)、北斗导航系统(BDS)、伽利略定位系统(GALILEO)、准天顶卫星系统(QZSS)、无线保真(Wi-Fi)定位技术等。在一些实施例中,终端120可以将采集到的数据/信息通过网络140传输至处理设备110进行后续步骤。终端120还可以将采集到的数据/信息存储至自身的存储器中,或通过网络140传输至存储设备130进行存储。在一些实施例中,车辆监控系统100可以包括多个相互连接的终端,共同采集各类数据,并由其中的一个或者多个终端对这些数据进行预处理。In some embodiments, the terminal 120 may be a device with a positioning function, and its positioning function may be realized by a variety of positioning technologies, for example, the global positioning system (GPS), the global satellite navigation system (GLONASS), and the Beidou navigation system (BDS) , Galileo positioning system (GALILEO), quasi-zenith satellite system (QZSS), wireless fidelity (Wi-Fi) positioning technology, etc. In some embodiments, the terminal 120 may transmit the collected data/information to the processing device 110 via the network 140 for subsequent steps. The terminal 120 may also store the collected data/information in its own memory, or transmit it to the storage device 130 via the network 140 for storage. In some embodiments, the vehicle monitoring system 100 may include a plurality of interconnected terminals to collect various data together, and one or more of the terminals may preprocess the data.
存储设备130可以存储数据和/或指令。在一些实施例中,存储设备130可以存储终端120和/或处理设备110获取的数据/信息。例如,存储设备130可以存储多个车辆执行的历史运输服务相关的历史服务数据(例如,历史服务订单数据、历史服务参与方数据、历史车辆相关数据、历史行程数据、历史订单评价数据等)。在一些实施例中,存储设备130可以存储处理设备110用于执行或使用以完成本申请中描述的示例性方法的数据和/或指令。在 一些实施例中,存储设备130可以是处理设备110或者终端120的一部分。The storage device 130 may store data and/or instructions. In some embodiments, the storage device 130 may store data/information acquired by the terminal 120 and/or the processing device 110. For example, the storage device 130 may store historical service data related to historical transportation services performed by multiple vehicles (for example, historical service order data, historical service participant data, historical vehicle-related data, historical travel data, historical order evaluation data, etc.). In some embodiments, the storage device 130 may store data and/or instructions used by the processing device 110 to execute or use to complete the exemplary methods described in this application. In some embodiments, the storage device 130 may be a part of the processing device 110 or the terminal 120.
在一些实施例中,存储设备130可以包括大容量存储器、可移动存储器、易失性读写存储器、只读存储器(ROM)等或其任意组合。示例性的大容量存储器可以包括磁盘、光盘、固态磁盘等。示例性可移动存储器可以包括闪存驱动器、软盘、光盘、存储卡、压缩盘、磁带等。示例性的挥发性只读存储器可以包括随机存取内存(RAM)。示例性的RAM可包括动态RAM(DRAM)、双倍速率同步动态RAM(DDR SDRAM)、静态RAM(SRAM)、闸流体RAM(T-RAM)和零电容RAM(Z-RAM)等。示例性的ROM可以包括掩模ROM(MROM)、可编程ROM(PROM)、可擦除可编程ROM(EPROM)、电子可擦除可编程ROM(EEPROM)、光盘ROM(CD-ROM)和数字通用磁盘ROM等。在一些实施例中,存储设备130可以在云平台上实现。仅作为示例,云平台可以包括私有云、公共云、混合云、社区云、分布云、内部云、多层云等或其任意组合。在一些实施例中,特定类型的历史数据可以统一存储在一个云平台上,以便多个处理设备110或者终端120访问或者更新,且保证数据的实时性和跨平台使用。In some embodiments, the storage device 130 may include mass memory, removable memory, volatile read-write memory, read-only memory (ROM), etc., or any combination thereof. Exemplary mass storage devices may include magnetic disks, optical disks, solid state disks, and the like. Exemplary removable storage may include flash drives, floppy disks, optical disks, memory cards, compact disks, magnetic tapes, and the like. An exemplary volatile read-only memory may include random access memory (RAM). Exemplary RAM may include dynamic RAM (DRAM), double rate synchronous dynamic RAM (DDR SDRAM), static RAM (SRAM), thyristor RAM (T-RAM), zero capacitance RAM (Z-RAM), and the like. Exemplary ROMs may include mask ROM (MROM), programmable ROM (PROM), erasable programmable ROM (EPROM), electronically erasable programmable ROM (EEPROM), compact disk ROM (CD-ROM), and digital General-purpose disk ROM, etc. In some embodiments, the storage device 130 may be implemented on a cloud platform. For example only, the cloud platform may include private cloud, public cloud, hybrid cloud, community cloud, distributed cloud, internal cloud, multi-layer cloud, etc., or any combination thereof. In some embodiments, specific types of historical data may be uniformly stored on a cloud platform, so that multiple processing devices 110 or terminals 120 can access or update, and ensure the real-time and cross-platform use of the data.
在一些实施例中,存储设备130可以连接到网络140以与车辆监控系统100中的一个或以上组件(例如,处理设备110、终端120、车辆150)通信。车辆监控系统100中的一个或以上组件可以通过网络140访问存储设备130中存储的数据或指令。在一些实施例中,存储设备130可以与车辆监控系统100中的一个或以上组件(例如,处理设备110、终端120、车辆150)直接连接或通信。In some embodiments, the storage device 130 may be connected to the network 140 to communicate with one or more components in the vehicle monitoring system 100 (for example, the processing device 110, the terminal 120, the vehicle 150). One or more components in the vehicle monitoring system 100 can access data or instructions stored in the storage device 130 through the network 140. In some embodiments, the storage device 130 may directly connect or communicate with one or more components in the vehicle monitoring system 100 (for example, the processing device 110, the terminal 120, and the vehicle 150).
网络140可以促进信息和/或数据的交换。在一些实施例中,车辆监控系统100中的一个或以上组件(例如,处理设备110、终端120、存储设备130、车辆150)可以通过网络140向/从车辆监控系统100中的其他组件发送和/或接收信息和/或数据。例如,处理设备110可以通过网络140从终端120和/或车辆150获取与当前运输服务相关的数据/信息。又例如,处理设备110还可以通过网络140从存储设备130处获取历史运输服务相关的历史服务数据。The network 140 may facilitate the exchange of information and/or data. In some embodiments, one or more components in the vehicle monitoring system 100 (for example, the processing device 110, the terminal 120, the storage device 130, and the vehicle 150) may send and receive data to/from other components in the vehicle monitoring system 100 through the network 140. /Or receive information and/or data. For example, the processing device 110 may obtain data/information related to the current transportation service from the terminal 120 and/or the vehicle 150 through the network 140. For another example, the processing device 110 may also obtain historical service data related to historical transportation services from the storage device 130 via the network 140.
在一些实施例中,网络140可以为任意形式的有线或无线网络或其任意组合。仅作为示例,网络140可以包括缆线网络、有线网络、光纤网络、远程通信网络、内部网络、互联网、局域网(LAN)、广域网(WAN)、无线局域网(WLAN)、城域网(MAN)、公共交换电话网络(PSTN)、蓝牙 TM网络、紫蜂 TM网络、近场通讯(NFC)网络、全球移动通讯系统(GSM)网络、码分多址(CDMA)网络、时分多址(TDMA)网络、通用分组无线服务(GPRS)网络、增强数据速率GSM演进(EDGE)网络、宽带码分多址接入(WCDMA)网络、高速下行分组接入(HSDPA)网络、长期演进(LTE)网络、用户数据报协议(UDP) 网络、传输控制协议/互联网协议(TCP/IP)网络、短信息服务(SMS)网络、无线应用协议(WAP)网络、超宽带(UWB)网络、移动通信(1G、2G、3G、4G、5G)网络、Wi-Fi、Li-Fi、窄带物联网(NB-IoT)等或其任意组合。在一些实施例中,车辆监控系统100可以包括一个或以上网络接入点。例如,车辆监控系统100可以包括有线或无线网络接入点,例如基站和/或无线接入点,车辆监控系统100的一个或以上组件可以通过其连接到网络140以交换数据和/或信息。 In some embodiments, the network 140 may be any form of wired or wireless network or any combination thereof. For example only, the network 140 may include a cable network, a wired network, an optical fiber network, a telecommunication network, an internal network, the Internet, a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN), a metropolitan area network (MAN), public switched telephone network (PSTN), Bluetooth (TM) network, ZigBee TM network, near field communication (NFC) network, global system for mobile communications (GSM) network, Code division Multiple Access (CDMA) networks, Time division Multiple Access (TDMA) network , General Packet Radio Service (GPRS) network, Enhanced Data Rate GSM Evolution (EDGE) Network, Wideband Code Division Multiple Access (WCDMA) Network, High Speed Downlink Packet Access (HSDPA) Network, Long Term Evolution (LTE) Network, User Datagram Protocol (UDP) network, Transmission Control Protocol/Internet Protocol (TCP/IP) network, short message service (SMS) network, wireless application protocol (WAP) network, ultra-wideband (UWB) network, mobile communication (1G, 2G) , 3G, 4G, 5G) networks, Wi-Fi, Li-Fi, Narrowband Internet of Things (NB-IoT), etc. or any combination thereof. In some embodiments, the vehicle monitoring system 100 may include one or more network access points. For example, the vehicle monitoring system 100 may include wired or wireless network access points, such as base stations and/or wireless access points, through which one or more components of the vehicle monitoring system 100 may be connected to the network 140 to exchange data and/or information.
车辆150可以是执行服务请求的载体。例如,车辆150可以用于提供打车服务,司机使用车辆150接载乘客后将乘客送达至目的地。在一些实施例中,车辆150可以包括车载终端。在一些实施例中,车辆150的相关人员(例如,司机和/或乘客)可以配有使用者终端。车载终端和/或使用者终端与终端120的类型可以相同或不同。在一些实施例中,车辆150可以获取在行驶过程中自身所产生的行驶数据,例如,速度、加速度等。并可以通过网络120将以上行驶数据传输至车辆监控系统100的其他组件,例如,处理设备110。在一些实施例中,车辆150可以是电动车辆、燃料电池车辆、混合动力车辆或传统的内燃机车辆。车辆150的车身类型可以是任何车身类型,例如,摩托车、跑车、轿跑车、轿车、皮卡车、旅行车、运动型多功能车(SUV)、小型货车或换乘车。The vehicle 150 may be a carrier for performing service requests. For example, the vehicle 150 may be used to provide a taxi service, and the driver uses the vehicle 150 to pick up passengers and then deliver the passengers to the destination. In some embodiments, the vehicle 150 may include an in-vehicle terminal. In some embodiments, relevant personnel of the vehicle 150 (for example, a driver and/or passengers) may be equipped with a user terminal. The type of the vehicle-mounted terminal and/or the user terminal and the terminal 120 may be the same or different. In some embodiments, the vehicle 150 may obtain driving data generated by itself during driving, for example, speed, acceleration, and so on. The above driving data can be transmitted to other components of the vehicle monitoring system 100, for example, the processing device 110 through the network 120. In some embodiments, the vehicle 150 may be an electric vehicle, a fuel cell vehicle, a hybrid vehicle, or a traditional internal combustion engine vehicle. The body type of the vehicle 150 may be any body type, for example, a motorcycle, a sports car, a coupe, a sedan, a pickup truck, a station wagon, a sports utility vehicle (SUV), a minivan, or a transfer car.
本领域普通技术人员应当理解,当车辆监控系统100的组件执行时,该组件可以通过电信号和/或电磁信号执行。例如,当终端120处理任务时,例如确定、识别或选择对象时,终端120可在其处理器中操作逻辑电路来处理该任务。当终端120向处理设备110发送服务请求时,终端120的处理器可产生编码该请求的电信号。然后,终端120的处理器可以将电信号发送到输出端口。若终端120经由有线网络与处理设备110通信,则输出端口可物理连接至电缆,其进一步将电信号传输至处理设备110的输入端口。如果终端120通过无线网络与处理设备110通信,终端120的输出端口可以是一个或以上天线,天线可以将电信号转换为电磁信号。在电子设备中,当电子设备的处理器处理指令、发送指令和/或执行动作时,指令和/或动作经由电信号传导。例如,当处理器从储存介质(例如,存储设备130)检索或保存数据时,可以将电信号发送到储存介质的读/写设备,该读/写设备可在储存介质中读取或写入结构化数据。结构化数据可以电信号的形式经由电子设备的总线传输至处理器。此处,电信号可以指一个电信号、一系列电信号和/或多个不连续的电信号。A person of ordinary skill in the art should understand that when a component of the vehicle monitoring system 100 is executed, the component may be executed by an electrical signal and/or an electromagnetic signal. For example, when the terminal 120 processes a task, such as determining, identifying, or selecting an object, the terminal 120 may operate a logic circuit in its processor to process the task. When the terminal 120 sends a service request to the processing device 110, the processor of the terminal 120 may generate an electrical signal encoding the request. Then, the processor of the terminal 120 may send the electrical signal to the output port. If the terminal 120 communicates with the processing device 110 via a wired network, the output port may be physically connected to a cable, which further transmits electrical signals to the input port of the processing device 110. If the terminal 120 communicates with the processing device 110 through a wireless network, the output port of the terminal 120 may be one or more antennas, and the antennas may convert electrical signals into electromagnetic signals. In an electronic device, when the processor of the electronic device processes instructions, sends instructions, and/or performs actions, the instructions and/or actions are conducted via electrical signals. For example, when the processor retrieves or saves data from a storage medium (for example, the storage device 130), it can send an electrical signal to a read/write device of the storage medium, and the read/write device can read or write in the storage medium. Structured data. The structured data can be transmitted to the processor via the bus of the electronic device in the form of electrical signals. Here, the electrical signal may refer to one electrical signal, a series of electrical signals, and/or multiple discontinuous electrical signals.
为了解决现有技术中通过司机、乘客、警察主动上报到网约车平台、再对于网约车异常停留行为的识别方法存在的实时性和召回率不高的问题,以及通过与固定的停留时长阈值比较的异常停留行为的识别方法存在的准确率不高的问题,本发明实施例提供一种网约车的异常停留行为识别方法,可以通过采集网约车发生停留时的实时数据,包括当前停留位置、 当前停留时长、司机服务状态以及预定特征信息等多维度的特征信息,并结合数据库中的多维度的相关历史数据,采用预先训练得到的智能识别模型,可以实时、准确的识别出网约车当前是否出现异常停留行为,可避免采用固定的停留时长阈值时导致的误判,提高了实时性、准确率和召回率,从而提高网约车平台的安全感知能力和对交通事故、司机乘客冲突的识别能力,保障司机和乘客的安全。In order to solve the problems of real-time and low recall rate in the existing technology through the driver, passengers, and police actively reporting to the online car-hailing platform, and then the identification method of the abnormal parking behavior of the online car-hailing, and the passage and fixed length of stay The method for identifying abnormal staying behaviors based on threshold comparison has the problem of low accuracy. The embodiment of the present invention provides a method for identifying abnormal staying behaviors of online car-hailing, which can collect real-time data when online car-hailing occurs, including current Multi-dimensional feature information such as stay location, current stay time, driver service status, and scheduled feature information, combined with multi-dimensional related historical data in the database, and the intelligent recognition model obtained by pre-training, can identify the network in real time and accurately. Whether there are abnormal stay behaviors in the current ride-hailing, it can avoid misjudgment caused by the fixed stay time threshold, and improve the real-time performance, accuracy and recall rate, thereby improving the safety perception ability of the online ride-hailing platform and the ability to detect traffic accidents and drivers. The ability to recognize passenger conflicts ensures the safety of drivers and passengers.
本申请实施例提供的网约车的异常停留行为识别方法,可以适用于通信系统。所述通信系统包括网约车平台的服务器、数据库、以及与服务器通信连接的网约车终端(包括车载终端、司机终端或乘客终端)。其中服务器可以是一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心,可以从网约车终端采集网约车的实时数据并存储到数据库,也可从数据库中获取历史数据。在网约车的异常停留行为识别过程中,服务器可根据采集到的网约车发生停留时的实时数据,并根据实时数据从数据库中获取相关历史数据,根据实时数据、历史数据以及预定模型,可识别出所述网约车当前是否出现异常停留行为。The method for identifying abnormal stay behaviors of online car-hailing provided by the embodiments of the present application may be applicable to communication systems. The communication system includes a server of a car-hailing platform, a database, and a car-hailing terminal (including a vehicle-mounted terminal, a driver terminal, or a passenger terminal) connected in communication with the server. The server can be a server, or a server cluster composed of several servers, or a cloud computing service center, which can collect real-time data of online car-hailing from the online car-hailing terminal and store it in the database, or it can be obtained from the database historical data. In the process of identifying the abnormal stay behavior of online car-hailing, the server can obtain relevant historical data from the database according to the collected real-time data when the car-hailing occurs, and according to the real-time data, historical data and predetermined model, It can be identified whether the online car-hailing currently exhibits abnormal staying behavior.
在本申请中,所述网约车服务平台可以与运输服务平台相同或类似,所述网约车平台的服务器可以是与处理设备110相同或类似,所述网约车终端可以是与终端120相同或类似。In this application, the online car-hailing service platform can be the same as or similar to the transportation service platform, the server of the online car-hailing platform can be the same as or similar to the processing device 110, and the online car-hailing terminal can be the same as the terminal 120. Same or similar.
图2是根据本申请一些实施例所示的示例性计算设备的示例性硬件组件和/或软件组件的示意图。在一些实施例中,处理设备110和/或终端120可以通过计算设备200实现。如图2所示,计算设备200可包括处理器210、存储器220、输入/输出(I/O)230和通信端口240。Fig. 2 is a schematic diagram of exemplary hardware components and/or software components of an exemplary computing device according to some embodiments of the present application. In some embodiments, the processing device 110 and/or the terminal 120 may be implemented by the computing device 200. As shown in FIG. 2, the computing device 200 may include a processor 210, a memory 220, an input/output (I/O) 230, and a communication port 240.
处理器210可以执行计算机指令(例如,程序代码)并可以根据本申请中描述的技术执行处理设备110的功能。计算机指令可以用于执行本申请中描述的特定功能,计算机指令可以包括程序、对象、组件、数据结构、程序、模块、功能等。在一些实施例中,处理器210可以包括一个或多个硬件处理器,例如微控制器、微处理器、精简指令集计算机(reduced instruction set computer(RISC))、特定应用集成电路(application specific integrated circuit(ASIC))、应用程序特定的指令集处理器(application-specific instruction-set processor(ASIP))、中央处理单元(central processing unit(CPU))、图形处理单元(graphics processing unit(GPU))、物理处理单元(physics processing unit(PPU))、数字信号处理器(digital signal processor(DSP))、现场可编程门阵列(field programmable gate array(FPGA))、先进的RISC机器(advanced RISC machine(ARM))、可编程逻辑器件(programmable logic device(PLD))、能够执行一个或多个功能的任何电路或处理器等其中一种或几种的组合。The processor 210 may execute computer instructions (for example, program code) and may perform the functions of the processing device 110 according to the technology described in this application. Computer instructions can be used to perform specific functions described in this application, and computer instructions can include programs, objects, components, data structures, programs, modules, functions, and so on. In some embodiments, the processor 210 may include one or more hardware processors, such as a microcontroller, a microprocessor, a reduced instruction set computer (RISC), and an application specific integrated circuit. circuit (ASIC)), application-specific instruction-set processor (ASIP), central processing unit (CPU), graphics processing unit (GPU)) , Physical processing unit (physics processing unit (PPU)), digital signal processor (digital signal processor (DSP)), field programmable gate array (FPGA)), advanced RISC machine (advanced RISC machine( ARM)), programmable logic device (PLD), any circuit or processor capable of performing one or more functions, or a combination of several of them.
仅用于说明,在计算设备200中仅描述一个处理器。然而,需要说明的是,计算设备200也可以包括多个处理器。本申请中描述的由一个处理器执行的操作和/或方法也可以由多个处理器共同或分别执行。例如,如果本申请中描述的计算设备200的处理器执行操作A和操作B,应当理解的是,操作A和操作B也可以由计算设备中200中的两个或两个以上不同处理器共同或分别执行(例如,第一处理器执行操作A和第二处理器执行操作B,或第一处理器和第二处理器共同执行操作A和B)。For illustration only, only one processor is described in the computing device 200. However, it should be noted that the computing device 200 may also include multiple processors. The operations and/or methods described in this application that are executed by one processor may also be executed jointly or separately by multiple processors. For example, if the processor of the computing device 200 described in this application performs operation A and operation B, it should be understood that operation A and operation B can also be shared by two or more different processors in the computing device 200. Or separately (for example, the first processor performs operation A and the second processor performs operation B, or the first processor and the second processor jointly perform operations A and B).
存储器220可以存储从处理设备110、终端120、存储设备130和/或车辆监控系统100的任何其它组件获取的数据/信息。在一些实施例中,存储器220可包括大容量存储器、可移除存储器、易失性读写存储器、只读存储器(ROM)等或其任意组合。大容量存储可以包括磁盘、光盘、固态硬盘、移动存储等。可移除存储器可以包括闪存驱动器、软盘、光盘、存储卡、ZIP磁盘、磁带等。易失性读写存储器可以包括随机存取存储器(RAM)。RAM可以包括动态随机存储器(DRAM)、双数据率同步动态随机存取存储器(DDR SDRAM)、静态随机存取存储器(SRAM)、可控硅随机存取存储器(t-ram)、零电容随机存取存储器(Z-RAM)等。ROM可以包括掩模只读存储器(MROM)、可编程的只读存储器(PROM)、可擦除可编程只读存储器(EPROM),电可擦除可编程只读存储器(EEPROM)、光盘只读存储器(CD-ROM)、数字多功能光盘的光盘等。在一些实施例中,存储器220可以存储一个或多个程序和/或指令,用于执行本申请中描述的示例性方法。The memory 220 may store data/information acquired from the processing device 110, the terminal 120, the storage device 130, and/or any other components of the vehicle monitoring system 100. In some embodiments, the memory 220 may include mass memory, removable memory, volatile read-write memory, read-only memory (ROM), etc., or any combination thereof. Mass storage can include magnetic disks, optical disks, solid state drives, and mobile storage. Removable storage may include flash drives, floppy disks, optical disks, memory cards, ZIP disks, tapes, and so on. Volatile read-write memory may include random access memory (RAM). RAM can include dynamic random access memory (DRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), static random access memory (SRAM), thyristor random access memory (t-ram), zero capacitance random access memory Take memory (Z-RAM) and so on. ROM can include mask read-only memory (MROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), optical disk read-only memory Storage (CD-ROM), digital versatile disc, etc. In some embodiments, the memory 220 may store one or more programs and/or instructions for executing the exemplary methods described in this application.
输入/输出230可以输入和/或输出信号、数据、信息等。在一些实施例中,输入/输出230可以实现用户与处理设备110之间的交互。在一些实施例中,输入/输出230可以包括输入设备和输出设备。输入设备可以包括键盘、鼠标、触摸屏、麦克风等或其任意组合。输出装置可以包括显示装置、扬声器、打印机、投影仪等或其任意组合。显示装置可以包括液晶显示器(LCD)、发光二极管(LED)显示器、平板显示器、弧形屏幕、电视装置、阴极射线管(CRT)、触摸屏等或其任意组合。The input/output 230 may input and/or output signals, data, information, and the like. In some embodiments, the input/output 230 may implement the interaction between the user and the processing device 110. In some embodiments, the input/output 230 may include an input device and an output device. The input device may include a keyboard, a mouse, a touch screen, a microphone, etc., or any combination thereof. The output device may include a display device, a speaker, a printer, a projector, etc. or any combination thereof. The display device may include a liquid crystal display (LCD), a light emitting diode (LED) display, a flat panel display, a curved screen, a television device, a cathode ray tube (CRT), a touch screen, etc., or any combination thereof.
通信端口240可以连接网络(例如,网络140),以便于数据通信。通信端口240可以在处理设备110和终端120、存储设备130和/或车辆150之间建立连接。连接可以是有线连接、无线连接、任何能够实现数据传输和/或接收的连接等或其任意组合。有线连接可以包括电缆、光缆、电话线等或其任意组合。无线连接可以包括蓝牙 TM链接、Wi-Fi TM链接、WiMAX TM链路、无线局域网链接、ZigBee TM链接、移动网络链接(例如,3G、4G、5G等)等或其任意组合。在一些实施例中,通信端口240可以是和/或包括标准化通信端口,如RS232、RS485等。 The communication port 240 may be connected to a network (for example, the network 140) to facilitate data communication. The communication port 240 may establish a connection between the processing device 110 and the terminal 120, the storage device 130, and/or the vehicle 150. The connection may be a wired connection, a wireless connection, any connection capable of data transmission and/or reception, etc., or any combination thereof. Wired connections can include cables, optical cables, telephone lines, etc., or any combination thereof. The wireless connection may include a Bluetooth link, a Wi-Fi link, a WiMAX link, a wireless local area network link, a ZigBee link, a mobile network link (for example, 3G, 4G, 5G, etc.), etc., or any combination thereof. In some embodiments, the communication port 240 may be and/or include a standardized communication port, such as RS232, RS485, and the like.
图3是根据本申请一些实施例所示的示例性移动设备的示例性硬件组件和/或软件组 件的示意图。在一些实施例中,终端120可以通过移动设备300实现。如图3所示,移动设备300可包括通信单元310、显示单元320、图形处理器(GPU)330、中央处理器(CPU)340、输入/输出单元350、内存360和存储单元390。在一些实施例中,移动设备300也可以包括任何其它合适的组件,包括但不限于系统总线或控制器(图中未显示)。在一些实施例中,移动操作系统370(例如,iOS TM,Android,Windows Phone TM等)和一个或多个应用程序380可以从存储单元390装载入内存360,以便能够由中央处理器340执行。应用程序380可以包括浏览器或任何其他合适的移动应用程序,用于从处理设备110接收和呈现信息。信息流的用户交互可以通过输入/输出单元350实现,并且通过网络140提供给处理设备110和/或车辆监控系统100的其他组件。 Fig. 3 is a schematic diagram of exemplary hardware components and/or software components of an exemplary mobile device according to some embodiments of the present application. In some embodiments, the terminal 120 may be implemented by the mobile device 300. As shown in FIG. 3, the mobile device 300 may include a communication unit 310, a display unit 320, a graphics processing unit (GPU) 330, a central processing unit (CPU) 340, an input/output unit 350, a memory 360, and a storage unit 390. In some embodiments, the mobile device 300 may also include any other suitable components, including but not limited to a system bus or a controller (not shown in the figure). In some embodiments, the mobile operating system 370 (for example, iOS TM , Android, Windows Phone TM, etc.) and one or more application programs 380 can be loaded from the storage unit 390 into the memory 360 so as to be executed by the central processing unit 340 . The application program 380 may include a browser or any other suitable mobile application program for receiving and presenting information from the processing device 110. The user interaction of the information flow may be implemented through the input/output unit 350 and provided to the processing device 110 and/or other components of the vehicle monitoring system 100 through the network 140.
为了实现本申请中描述的各种模块、单元及其功能,计算机硬件平台可以用作本申请中描述的一个或多个元素的硬件平台。具有用户界面元素的计算机可用于实现个人计算机(PC)或任何其他类型的工作站或终端设备。如果适当编程,计算机也可以充当服务器。In order to realize the various modules, units and functions described in this application, a computer hardware platform may be used as a hardware platform for one or more elements described in this application. A computer with user interface elements can be used to implement a personal computer (PC) or any other type of workstation or terminal device. If properly programmed, the computer can also act as a server.
图4是根据本申请一些实施例所示的示例性处理设备的模块图。如图4所示,处理设备110可以包括获取模块410、确定模块420和训练模块430。Fig. 4 is a block diagram of an exemplary processing device according to some embodiments of the present application. As shown in FIG. 4, the processing device 110 may include an acquisition module 410, a determination module 420, and a training module 430.
获取模块410可以用于获取车辆的实时停留数据。所述实时停留数据可以包括当前停留时长以及与车辆停留相关的特征信息。在一些实施例中,为了提高司机和乘客的安全,获取模块410可以获取车辆发生停留时的实时数据。具体的,获取模块410可以从车辆150或终端140处获取实时数据。该实时数据可以包括但不限于位置信息、时间信息、所述车辆相关的人员(例如,司机和/或乘客)的一些状态信息和交互信息等。在一些实施例中,处理设备110(例如,获取模块410)可以获取车辆的定位数据,包括实时速度数据,并根据实时速度数据判断车辆是否停留。当车辆发生停留时,获取模块410可以从上述实时数据中获取所述车辆的当前停留时长服务提供者的状态和车辆停留相关的特征信息。The obtaining module 410 may be used to obtain real-time stay data of the vehicle. The real-time stay data may include the current stay time and characteristic information related to the stay of the vehicle. In some embodiments, in order to improve the safety of drivers and passengers, the acquisition module 410 may acquire real-time data when the vehicle stops. Specifically, the obtaining module 410 may obtain real-time data from the vehicle 150 or the terminal 140. The real-time data may include, but is not limited to, location information, time information, some status information and interaction information of persons related to the vehicle (for example, drivers and/or passengers). In some embodiments, the processing device 110 (for example, the acquisition module 410) may acquire positioning data of the vehicle, including real-time speed data, and determine whether the vehicle is staying based on the real-time speed data. When the vehicle stays, the acquisition module 410 may acquire the status of the service provider of the current stay of the vehicle and the characteristic information related to the vehicle stay from the above real-time data.
确定模块420可以基于实时停留数据,利用识别模型确定车辆是否处于异常停留状态。在一些实施例中,确定模块420可以使用所述识别模型处理所述实时停留数据,实现对车辆的异常停留行为的实时地识别。所述识别模型可以是融合模型,可以包括第一子识别模型、第二子识别模型和第三子识别模型。所述识别模型可以从不同的维度判断所述车辆的停留是否为异常停留行为。作为示例,所述第一子识别模型可以是基于分布的识别模型,所述第二子识别模型可以是基于统计的子识别模型,所述第三模型可以是基于密度的子识别模型。The determination module 420 may use the recognition model to determine whether the vehicle is in an abnormal stay state based on the real-time stay data. In some embodiments, the determination module 420 may use the recognition model to process the real-time stay data to realize the real-time recognition of the abnormal stay behavior of the vehicle. The recognition model may be a fusion model, and may include a first sub-recognition model, a second sub-recognition model, and a third sub-recognition model. The recognition model can judge whether the stay of the vehicle is an abnormal stay behavior from different dimensions. As an example, the first sub-recognition model may be a distribution-based recognition model, the second sub-recognition model may be a statistics-based sub-recognition model, and the third model may be a density-based sub-recognition model.
在一些实施例中,确定模块420可以基于第一子识别模型确定当前停留时长是否为异常停留时长。确定模块420可以将所述当前停留时长输入到第一子识别模型中,判断所述当前停留时长是否为异常停留时长。所述第一子识别模型可以是任意的基于异常值检测算法 所构建的识别模型。例如,异常值检测算法可以包括基于聚类的方法、孤立森林、统计学方法、基于分布的杜凯法事后比较(Tukey Method)等。第一子识别模型可以确定所述当前停留时长相对于用于训练所述第一子识别模型的历史停留时长是否为异常值(outlier)。若是,则可以判定所述当前停留时长为异常停留时长。In some embodiments, the determining module 420 may determine whether the current stay duration is an abnormal stay duration based on the first sub-recognition model. The determining module 420 may input the current stay duration into the first sub-recognition model, and determine whether the current stay duration is an abnormal stay duration. The first sub-recognition model may be any recognition model constructed based on an abnormal value detection algorithm. For example, the outlier detection algorithm may include clustering-based methods, isolated forests, statistical methods, distribution-based Tukey Method and so on. The first sub-recognition model can determine whether the current stay time is an outlier relative to the historical stay time used to train the first sub-recognition model. If yes, it can be determined that the current stay duration is the abnormal stay duration.
在一些实施例中,为基于第一子识别模型确定所述当前停留时长是否为异常停留时长,确定模块420可以基于所述基于分布的杜凯法事后比较模型确定识别系数,并基于所述识别系数确定至少一个最大异常估计值。在一些实施例中,确定模块420可以确定当前停留时间是否大于至少一个最大异常估计值中的至少一个。响应于所述当前停留时间大于所述至少一个最大异常估计值中的至少一个,确定模块420可以确定当前停留时长为异常停留时长。In some embodiments, in order to determine whether the current stay duration is an abnormal stay duration based on the first sub-recognition model, the determining module 420 may determine the recognition coefficient based on the distribution-based Dukai method post-comparison model, and based on the recognition The coefficient determines at least one maximum anomaly estimate. In some embodiments, the determination module 420 may determine whether the current stay time is greater than at least one of the at least one maximum abnormality estimation value. In response to the current stay time being greater than at least one of the at least one maximum abnormality estimation value, the determining module 420 may determine that the current stay time length is the abnormal stay time length.
在一些实施例中,响应于所述当前停留时长为异常停留时长,确定模块420可以基于第二子识别模型确定车辆停留相关的特征信息是否满足停留规则。所述第二识别子模型可以是基于统计的规则模型。确定模块420可以确定所述车辆停留相关的特征信息是否满足基于第二识别子模型确定的停留规则。In some embodiments, in response to the current stay duration being the abnormal stay duration, the determining module 420 may determine whether the characteristic information related to the vehicle stay meets the stay rule based on the second sub-recognition model. The second recognition sub-model may be a rule model based on statistics. The determining module 420 may determine whether the characteristic information related to the vehicle stay meets the stay rule determined based on the second recognition sub-model.
在一些实施例中,为基于第二子识别模型确定所述车辆停留相关的特征信息是否满足停留规则,确定模块420可以基于第二子识别模型确定所述停留规则。所述停留规则可以基于第二子识别模型预设的训练来确定。例如,通过对多个车辆的历史停留数据进行统计分析以获取停留规则。在一些实施例中,确定模块420可以确定车辆停留相关的特征信息是否满足停留规则。所述车辆停留相关的特征信息可以至少包括与所述车辆相关的人员的行为和所述车辆的当前停留位置。与所述车辆相关的人员的行为可以包括服务请求者和/或服务提供者的行为。所述服务请求者的行为可以包括服务请求者(例如,请求打车服务的乘客)的支付行为、评价行为、冲突行为等。所述服务提供者的行为可以包括服务提供者(例如,提供打车服务的司机)的评价行为、服务行为、冲突行为等。确定模块420可以确定所述与所述车辆的相关的人员的行为是否为正常行为,和/或确定所述当前停留位置是否处于热点区域。所述正常行为可以包括支付行为(例如,主动支付)、评价行为(例如,主动好评)等。非正常行为可以包括冲突行为(例如,司乘冲突)等。所述热点区域可以包括服务请求发送热点区域和/或交通拥堵区域。若确定模块420确定上述至少一项的判定结果为是,则可以确定当前车辆停留相关的特征信息满足第二模型预设的停留规则,从而确定车辆当前未出现异常停留行为。若上述判断结果均为否,则确定当前车辆停留相关的特征信息不满足第二模型预设的停留规则。In some embodiments, to determine whether the characteristic information related to the vehicle stay meets the stay rule based on the second sub-recognition model, the determining module 420 may determine the stay rule based on the second sub-recognition model. The stay rule may be determined based on the preset training of the second sub-recognition model. For example, by statistically analyzing the historical stay data of multiple vehicles to obtain stay rules. In some embodiments, the determination module 420 may determine whether the characteristic information related to the stay of the vehicle satisfies the stay rule. The characteristic information related to the stay of the vehicle may include at least the behavior of the person related to the vehicle and the current stay position of the vehicle. The behavior of the personnel related to the vehicle may include the behavior of the service requester and/or the service provider. The behavior of the service requester may include payment behavior, evaluation behavior, conflict behavior, etc. of the service requester (for example, a passenger requesting a taxi service). The behavior of the service provider may include the evaluation behavior, service behavior, conflict behavior, etc. of the service provider (for example, a driver who provides a taxi service). The determining module 420 may determine whether the behavior of the person related to the vehicle is a normal behavior, and/or determine whether the current stay location is in a hot spot area. The normal behavior may include payment behavior (for example, active payment), evaluation behavior (for example, active praise), and the like. Abnormal behavior may include conflict behavior (for example, driver and passenger conflict) and the like. The hot spot area may include a service request sending hot spot area and/or a traffic jam area. If the determination module 420 determines that the determination result of at least one of the above items is yes, it can be determined that the characteristic information related to the current vehicle stay meets the stay rules preset by the second model, so as to determine that the vehicle currently does not exhibit abnormal stay behavior. If the above judgment results are all no, it is determined that the characteristic information related to the current vehicle stay does not satisfy the stay rule preset by the second model.
在一些实施例中,响应于所述车辆停留相关的特征信息不满足所述停留规则。确定模块420可以于第三子识别模型确定所述当前停留时长相关的异常评估值。确定模块420可以 将所述当前停留时长输入到第三子识别模型中,获取所述当前停留时长的异常评估值。确定模块420可以通过第三子识别模型获取当前停留时长相对于训练该模型的样本数据的异常评估值。训练该模型的样本数据可以包括处于相同时间段和相同区域内的至少一个第二样本车辆的第二历史停留数据。所述第三子识别模型可以为任何可以确定离群值的模型,例如,Robust Random Cut Forest、IsolationForest、EllipticEnvelope、OneClassSVM、高斯异常点检测等。在一些实施例中,所述第三子识别模型可以包括为基于密度的局部异常因子模型(Local Outlier Factor,LOF模型)。确定模块420可以通过所述LOF模型获取所述当前停留时长的局部异常因子(LOF值),并将该LOF值指定为所述异常评估值。In some embodiments, the characteristic information related to the stay in response to the vehicle does not satisfy the stay rule. The determining module 420 may determine the abnormal evaluation value related to the current stay time in the third sub-recognition model. The determining module 420 may input the current stay time into the third sub-recognition model, and obtain the abnormal evaluation value of the current stay time. The determining module 420 may obtain the abnormal evaluation value of the current stay time relative to the sample data for training the model through the third sub-recognition model. The sample data for training the model may include second historical stay data of at least one second sample vehicle in the same time period and in the same area. The third sub-recognition model may be any model that can determine outliers, for example, Robust Random Cut Forest, Isolation Forest, Elliptic Envelope, OneClassSVM, Gaussian outlier detection, etc. In some embodiments, the third sub-recognition model may include a density-based local outlier factor model (Local Outlier Factor, LOF model). The determining module 420 may obtain the local abnormality factor (LOF value) of the current stay time through the LOF model, and designate the LOF value as the abnormality evaluation value.
在一些实施例中,确定模块420可以确定所述异常评估值是否大于异常停留阈值。确定模块420可以将异常评估值与异常停留阈值进行大小比较,以确定所述异常评估值是否大于异常停留阈值。响应于所述异常评估值大于所述异常停留阈值,确定模块420可以确定车辆处于异常停留状态。In some embodiments, the determination module 420 may determine whether the abnormality evaluation value is greater than the abnormal stay threshold. The determination module 420 may compare the abnormality evaluation value with the abnormal stay threshold value to determine whether the abnormality evaluation value is greater than the abnormal stay threshold value. In response to the abnormality evaluation value being greater than the abnormal stay threshold value, the determination module 420 may determine that the vehicle is in an abnormal stay state.
在一些实施例中,确定模块420在确定车辆是否处于异常停留状态时,若所述当前停留时间不为异常停留时长,或者所述车辆停留相关的特征信息满足所述停留规则,确定所述车辆不处于异常停留状态,或者所述异常评估值小于或等于所述预设阈值,确定模块420可以确定所述车辆不处于异常停留状态。In some embodiments, when the determining module 420 determines whether the vehicle is in an abnormal stay state, if the current stay time is not the abnormal stay time, or the characteristic information related to the vehicle stay meets the stay rules, determine the vehicle If the vehicle is not in an abnormal parking state, or the abnormal evaluation value is less than or equal to the preset threshold value, the determination module 420 may determine that the vehicle is not in an abnormal parking state.
在一些实施例中,确定模块420可以分别使用所述识别模型所包含的子模型识别车辆的异常停留。作为示例,确定模块420可以基于第一子识别模型确定所述当前停留时长是否为异常停留时长。同时,确定模块420可以基于第二子识别模型确定所述车辆停留相关的特征信息是否满足停留规则。另外,确定模块420还可以基于第三子模型确定所述当前停留时长相关的异常评估值并确定所述以确定所述异常评估值是否大于预设阈值。当所述当前停留时间为异常停留时长,所述车辆停留相关的特征信息不满足所述停留规则,和/或所述异常评估值大于所述预设阈值时,确定模块420可以确定所述车辆处于异常停留状态。In some embodiments, the determining module 420 may respectively use the sub-models included in the recognition model to recognize the abnormal stay of the vehicle. As an example, the determining module 420 may determine whether the current stay duration is an abnormal stay duration based on the first sub-recognition model. At the same time, the determining module 420 may determine whether the characteristic information related to the vehicle stay meets the stay rule based on the second sub-recognition model. In addition, the determining module 420 may also determine the abnormal evaluation value related to the current stay time based on the third sub-model and determine whether the abnormal evaluation value is greater than a preset threshold. When the current stay time is the abnormal stay time, the characteristic information related to the vehicle stay does not meet the stay rules, and/or the abnormal evaluation value is greater than the preset threshold, the determining module 420 may determine that the vehicle In an abnormal state.
训练模块430可以训练识别模型。训练模块430可以获取多个训练样本。多个训练样本包括在相同车辆状态下的至少一个第一样本车辆的第一历史停留数据,以及处于相同时间段和相同区域内的至少一个第二样本车辆的第二历史停留数据,包括属于异常停留行为的正样本和不属于异常停留行为的负样本。每一个训练样本包括车辆的历史停留时长、服务提供者的状态(如接驾状态、到达状态、服务状态)或非服务状态(如听单状态、收车状态)以及当前车辆停留相关的特征信息。The training module 430 can train a recognition model. The training module 430 can obtain multiple training samples. The multiple training samples include first historical stay data of at least one first sample vehicle in the same vehicle state, and second historical stay data of at least one second sample vehicle in the same time period and in the same area, including those belonging to Positive samples of abnormal staying behaviors and negative samples that do not belong to abnormal staying behaviors. Each training sample includes the historical stay time of the vehicle, the status of the service provider (such as driving status, arrival status, service status) or non-service status (such as order status, receiving status), and characteristic information related to the current vehicle stay .
在一些实施例中,训练模块430可以基于第一历史停留数据训练第一初始子识别模型以获取第一子识别模型,以及第一子识别模型相关的识别参数。所述第一初始子识别模型 可以是任意的基于异常值检测算法所构建的识别模型。例如,异常值检测算法可以包括基于聚类的方法、孤立森林、统计学方法、基于分布的杜凯法事后比较(Tukey Method)等。训练模块430可以利用所述第一历史停留数据,训练所述第一子识别模型的同时确定所述识别参数。In some embodiments, the training module 430 may train the first initial sub-recognition model based on the first historical stay data to obtain the first sub-recognition model and the recognition parameters related to the first sub-recognition model. The first initial sub-recognition model may be any recognition model constructed based on an abnormal value detection algorithm. For example, the outlier detection algorithm may include clustering-based methods, isolated forests, statistical methods, distribution-based Tukey Method and so on. The training module 430 may use the first historical stay data to train the first sub-recognition model while determining the recognition parameters.
在一些实施例中,训练模块430可以基于第一历史停留数据以及所述第二历史停留数据训练第二初始子识别模型以获取第二子识别模型,以及第二子识别模型相关的停留规则。所述第二初始子识别模型可以包括基于统计的规则模型。训练模块430可以对所述训练样本进行统计分析,以构建所述第二初始子模型。例如,对样本中所包含的历史停留时长属于异常停留时长但又是负样本的训练样本进行分析,以确定一个或以上的预设规则。随后,可以通过对预设规则的不断地调试和/或更改,得到最终的停留规则。同时,可以获取训练完毕的第二子识别模型。In some embodiments, the training module 430 may train the second initial sub-recognition model based on the first historical stay data and the second historical stay data to obtain the second sub-recognition model and stay rules related to the second sub-recognition model. The second initial sub-recognition model may include a rule model based on statistics. The training module 430 may perform statistical analysis on the training samples to construct the second initial sub-model. For example, the training samples whose historical stay duration included in the sample belong to the abnormal stay duration but are negative samples are analyzed to determine one or more preset rules. Subsequently, the final stay rule can be obtained through continuous debugging and/or modification of the preset rule. At the same time, the trained second sub-recognition model can be obtained.
在一些实施例中,训练模块430可以基于第二历史停留数据训练第三初始子识别模型以获取第三子识别模型,以及第三子识别模型相关的异常停留阈值。第三初始子识别模型可以为任何可以确定离群值的模型,例如,Robust Random Cut Forest、IsolationForest、EllipticEnvelope、OneClassSVM、高斯异常点检测等。在一些实施例中,所述第三子识别模型可以包括为基于密度的局部异常因子模型(Local Outlier Factor,LOF模型)。训练模块430可以利用第二历史停留数据训练第三初始子识别模型,例如,不断调整用于评价局部异常因子(LOF值)的异常停留阈值,以得到所述第三子识别模型,以及最终的异常停留阈值。In some embodiments, the training module 430 may train a third initial sub-recognition model based on the second historical stay data to obtain a third sub-recognition model and an abnormal stay threshold related to the third sub-recognition model. The third initial sub-recognition model can be any model that can determine outliers, for example, Robust Random Cut Forest, Isolation Forest, Elliptic Envelope, OneClassSVM, Gaussian outlier detection, and so on. In some embodiments, the third sub-recognition model may include a density-based local outlier factor model (Local Outlier Factor, LOF model). The training module 430 may use the second historical stay data to train the third initial sub-recognition model, for example, continuously adjust the abnormal stay threshold used to evaluate the local abnormality factor (LOF value) to obtain the third sub-recognition model, and the final Abnormal stay threshold.
在一些实施例中,处理设备110中的两个或以上模块可以组合为单个模块,模块中的任意一个可以被分成两个或以上单元。例如,获取模块410和确定模块420可以组合为单个模块,用于获取实时停留数据和确定车辆是否处于异常停留。又例如,处理设备110可以包括存储模块(图4中未示出),其可以被配置为存储处理设备执行过程中涉及的多种数据(例如,服务请求、历史停留数据)。In some embodiments, two or more modules in the processing device 110 may be combined into a single module, and any one of the modules may be divided into two or more units. For example, the acquisition module 410 and the determination module 420 may be combined into a single module for acquiring real-time stay data and determining whether the vehicle is in an abnormal stay. For another example, the processing device 110 may include a storage module (not shown in FIG. 4), which may be configured to store various data (for example, service requests, historical stay data) involved in the execution of the processing device.
应当理解,图4所示的系统及其模块可以利用各种方式来实现。例如,在一些实施例中,系统及其模块可以通过硬件、软件或者软件和硬件的结合来实现。其中,硬件部分可以利用专用逻辑来实现;软件部分则可以存储在存储器中,由适当的指令执行系统,例如微处理器或者专用设计硬件来执行。本领域技术人员可以理解上述的方法和系统可以使用计算机可执行指令和/或包含在处理器控制代码中来实现,例如在诸如磁盘、CD或DVD-ROM的载体介质、诸如只读存储器(固件)的可编程的存储器或者诸如光学或电子信号载体的数据载体上提供了这样的代码。本申请的系统及其模块不仅可以有诸如超大规模集成电路或门阵列、诸如逻辑芯片、晶体管等的半导体、或者诸如现场可编程门阵列、可编程逻辑设备等的可编 程硬件设备的硬件电路实现,也可以用例如由各种类型的处理器所执行的软件实现,还可以由上述硬件电路和软件的结合(例如,固件)来实现。It should be understood that the system and its modules shown in FIG. 4 can be implemented in various ways. For example, in some embodiments, the system and its modules may be implemented by hardware, software, or a combination of software and hardware. Among them, the hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. Those skilled in the art can understand that the above-mentioned methods and systems can be implemented using computer-executable instructions and/or included in processor control codes, for example on a carrier medium such as a disk, CD or DVD-ROM, such as a read-only memory (firmware Such codes are provided on a programmable memory or a data carrier such as an optical or electronic signal carrier. The system and its modules of this application can not only be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc. It may also be implemented by software executed by various types of processors, or may be implemented by a combination of the above hardware circuit and software (for example, firmware).
在本申请一些实施例中,提供了网约车的异常停留行为识别装置可以执行网约车的异常停留行为识别方法实施例提供的处理流程。所述网约车的异常停留行为识别装置包括采集模块、获取模块、以及处理模块。In some embodiments of the present application, a device for identifying abnormal stay behavior of online car-hailing is provided, which can execute the processing flow provided in the embodiment of the method for identifying abnormal stay behavior of online car-hailing. The device for identifying abnormal stay behavior of online car-hailing includes a collection module, an acquisition module, and a processing module.
采集模块,用于采集网约车发生停留时的实时数据,所述实时数据包括当前停留位置、当前停留时长、司机服务状态以及预定特征信息;The collection module is used to collect real-time data when a car-hailing stay occurs, and the real-time data includes the current stay location, the current stay time, the driver's service status, and predetermined characteristic information;
获取模块,用于从数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述实时数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述实时数据相同时间段以及相同区域内的历史停留时长;The acquiring module is used to acquire a first historical data set and a second historical data set from a database; the first historical data set includes the historical stay time of at least one driver in the same service state as the real-time data, and the first historical data set 2. The historical data set includes the historical stay time of at least one driver in the same time period and in the same area as the real-time data;
处理模块,用于根据所述实时数据、所述第一历史数据集合、所述第二历史数据集合以及预设模型,识别所述网约车当前是否出现异常停留行为。The processing module is configured to identify whether the online car-hailing currently exhibits abnormal stay behavior according to the real-time data, the first historical data set, the second historical data set, and a preset model.
在上述实施例的基础上,所述处理模块包括:On the basis of the foregoing embodiment, the processing module includes:
第一处理模块,用于将所述当前停留时长以及所述第一历史数据集合输入到第一模型中,判断所述当前停留时长相对于所述第一历史数据集合是否为异常停留时长;The first processing module is configured to input the current stay duration and the first historical data set into a first model, and determine whether the current stay duration is abnormal stay duration relative to the first historical data set;
第二处理模块,用于若确定所述当前停留时长为异常停留时长,则将所述预定特征信息输入第二模型中,判断所述预定特征信息是否满足所述第二模型的预设规则;The second processing module is configured to input the predetermined characteristic information into the second model if it is determined that the current stay duration is the abnormal stay duration, and determine whether the predetermined characteristic information meets the preset rules of the second model;
第三处理模块,用于若确定所述预定特征信息不满足所述第二模型的预设规则,则将所述当前停留时长以及所述第二历史数据集合输入到第三模型中,获取所述当前停留时长的离群程度因子,若所述离群程度因子大于预设阈值,则确定所述网约车当前出现异常停留行为。The third processing module is configured to, if it is determined that the predetermined characteristic information does not meet the preset rules of the second model, input the current stay time and the second historical data set into the third model to obtain all The outlier degree factor of the current stay duration, and if the outlier degree factor is greater than a preset threshold, it is determined that the online car-hailing currently has an abnormal stay behavior.
在上述实施例的基础上,所述第一模型为基于分布的Tukey Method模型,所述Tukey Method模型中用于表征异常程度的系数采用预设系数;On the basis of the foregoing embodiment, the first model is a distribution-based Tukey Method model, and a coefficient used to represent the degree of abnormality in the Tukey Method model adopts a preset coefficient;
所述第一处理模块在判断所述当前停留时长相对于所述第一历史数据集合是否为异常停留时长时,用于:The first processing module is configured to: when determining whether the current stay duration is abnormal stay duration relative to the first historical data set:
通过所述Tukey Method模型以所述预设系数获取所述第一历史数据集合的最大估计值;Obtaining the maximum estimated value of the first historical data set by using the Tukey Method model with the preset coefficient;
若所述当前停留时长大于所述最大估计值,则确定所述当前停留时长为异常停留时长。If the current stay duration is greater than the maximum estimated value, it is determined that the current stay duration is the abnormal stay duration.
在上述实施例的基础上,所述第一历史数据集合包括第一子集和第二子集;所述第一子集包括当前司机在与所述实时数据相同服务状态下历史停留时长;所述第二子集包括所述 数据库中所有司机在与所述实时数据相同服务状态以及相同区域内的历史停留时长;On the basis of the foregoing embodiment, the first historical data set includes a first subset and a second subset; the first subset includes the current driver's historical stay time in the same service state as the real-time data; The second subset includes the historical stay time of all drivers in the database in the same service state and in the same area as the real-time data;
所述第一处理模块在判断所述当前停留时长相对于所述第一历史数据集合是否为异常停留时长时,用于:The first processing module is configured to: when determining whether the current stay duration is abnormal stay duration relative to the first historical data set:
通过所述Tukey Method模型以所述预设系数获取所述第一子集的第一最大估计值、以及所述第二子集的第二最大估计值;Obtaining the first maximum estimated value of the first subset and the second maximum estimated value of the second subset using the preset coefficient through the Tukey Method model;
若所述当前停留时长大于所述第一最大估计值或所述第二最大估计值,则确定所述当前停留时长为异常停留时长。If the current stay duration is greater than the first maximum estimated value or the second maximum estimated value, it is determined that the current stay duration is an abnormal stay duration.
在上述实施例的基础上,所述预定特征信息包括以下至少一个:乘客的支付行为、乘客对司机的评价、发单热点区域;On the basis of the foregoing embodiment, the predetermined characteristic information includes at least one of the following: passenger's payment behavior, passenger's evaluation of the driver, and billing hot spots;
所述第二处理模块在判断所述预定特征信息是否满足所述第二模型的预设规则时,用于:The second processing module is configured to: when determining whether the predetermined feature information satisfies the preset rules of the second model:
判断所述乘客的支付行为是否为主动支付;和/或Determine whether the payment behavior of the passenger is active payment; and/or
判断所述乘客对司机的评价是否为主动好评;和/或Determine whether the passenger’s evaluation of the driver is positive; and/or
判断所述当前停留位置是否处于所述发单热点区域;Judging whether the current stay position is in the hot spot area for issuing bills;
若上述判断结果均为否,则确定所述预定特征信息不满足所述第二模型的预设规则。If the foregoing judgment results are all no, it is determined that the predetermined characteristic information does not satisfy the preset rule of the second model.
在上述实施例的基础上,所述第三模型为基于密度的LOF模型;On the basis of the foregoing embodiment, the third model is a density-based LOF model;
所述第三处理模块在获取所述当前停留时长的离群程度因子时,用于:When the third processing module obtains the outlier degree factor of the current stay time, it is used to:
通过所述LOF模型,根据所述当前停留时长以及所述第二历史数据集合,获取所述当前停留时长的离群程度因子LOF值。According to the LOF model, the outlier degree factor LOF value of the current stay time is obtained according to the current stay time and the second historical data set.
在上述实施例的基础上,在确定所述预定特征信息不满足所述第二模型的预设规则后,所述第三处理模块还用于:On the basis of the foregoing embodiment, after determining that the predetermined characteristic information does not satisfy the preset rule of the second model, the third processing module is further configured to:
若所述第二数据集中样本数少于预设数量,则直接确定所述网约车当前出现异常停留行为;If the number of samples in the second data set is less than the preset number, it is directly determined that the online car-hailing currently has an abnormal staying behavior;
所述第三处理模块还用于:The third processing module is also used for:
统计所述数据库中所有司机在与所述实时数据相同时间段内的历史停留数据的数量,并以所述历史停留数据的数量乘以预设百分比后得到的结果作为所述预设数量。The number of historical stay data of all drivers in the database in the same time period as the real-time data is counted, and the result obtained by multiplying the number of historical stay data by a preset percentage is used as the preset number.
在上述实施例的基础上,所述第一处理模块还用于,若确定所述当前停留时长不为异常停留时长,则确定所述网约车当前未出现异常停留行为;或者On the basis of the foregoing embodiment, the first processing module is further configured to, if it is determined that the current stay duration is not an abnormal stay duration, determine that the online car-hailing does not currently exhibit any abnormal stay behavior; or
所述第二处理模块还用于,若确定所述预定特征信息满足所述第二模型的预设规则,则确定所述网约车当前未出现异常停留行为;或者The second processing module is further configured to, if it is determined that the predetermined characteristic information satisfies the preset rules of the second model, determine that the online car-hailing does not currently exhibit abnormal stay behavior; or
所述第三处理模块还用于,若确定所述离群程度因子小于或等于预设阈值,则确定所 述网约车当前未出现异常停留行为。The third processing module is further configured to, if it is determined that the outlier degree factor is less than or equal to a preset threshold, determine that there is no abnormal staying behavior in the online car-hailing currently.
本发明实施例提供的网约车的异常停留行为识别装置可以具体用于执行图5-8所提供的方法实施例,具体功能此处不再赘述。The device for identifying abnormal stay behavior of online car-hailing provided by the embodiment of the present invention may be specifically used to implement the method embodiments provided in FIGS. 5-8, and the specific functions are not repeated here.
本发明实施例提供的网约车的异常停留行为识别装置,通过采集网约车发生停留时的实时数据,所述实时数据包括当前停留位置、当前停留时长、司机服务状态以及预定特征信息;从数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述实时数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述实时数据相同时间段以及相同区域内的历史停留时长;根据所述实时数据、所述第一历史数据集合、所述第二历史数据集合以及预设模型,识别所述网约车当前是否出现异常停留行为。本实施例利用海量网约车出行的多维度历史数据以及预设模型,考虑到停留时长、位置、服务状态等多维度的特征信息,可实时、准确的识别网约车当前是否出现异常停留行为,提高网约车平台的安全感知能力和对交通事故、司机乘客冲突的识别能力,保障司机和乘客的安全。The device for identifying abnormal stay behavior of online car-hailing provided by the embodiment of the present invention collects real-time data when a car-hailing stop occurs, and the real-time data includes current staying position, current staying time, driver service status, and predetermined characteristic information; A first historical data set and a second historical data set are obtained from the database; the first historical data set includes the historical stay time of at least one driver in the same service state as the real-time data, and the second historical data set includes at least The historical stay time of a driver in the same time period and in the same area as the real-time data; according to the real-time data, the first historical data set, the second historical data set, and a preset model, the network is identified Whether there are abnormal stopping behaviors in the current ride-hailing. This embodiment uses massive multi-dimensional historical data and preset models for online car-hailing travel, and takes into account the multi-dimensional feature information such as stay time, location, service status, etc., to accurately identify whether there is any abnormal staying behavior in online car-hailing in real time. , Improve the safety perception ability of the online car-hailing platform and the ability to recognize traffic accidents and driver-passenger conflicts, and ensure the safety of drivers and passengers.
本申请的一些实施例,提供一种网约车的异常停留行为识别模型训练装置可以执行网约车的异常停留行为识别模型训练方法实施例提供的处理流程。所述网约车的异常停留行为识别模型训练装置包括获取模块、特征提取模块、及训练模块。Some embodiments of the present application provide an apparatus for training an abnormal staying behavior recognition model for online car-hailing, which can execute the processing flow provided in the embodiment of the method for training an abnormal staying behavior recognition model for online car-hailing. The device for training an abnormal staying behavior recognition model for online car-hailing includes an acquisition module, a feature extraction module, and a training module.
获取模块,用于从数据库获取训练数据集合,所述训练数据包括属于异常停留行为的正例训练数据和不属于异常停留行为的负例训练数据;An obtaining module, configured to obtain a training data set from a database, the training data including positive training data belonging to abnormal staying behaviors and negative training data not belonging to abnormal staying behaviors;
特征提取模块,用于对于每一训练数据,提取所述训练数据的停留位置、停留时长、司机服务状态以及预定特征信息;The feature extraction module is used to extract the stay location, stay time, driver service status and predetermined feature information of the training data for each training data;
所述获取模块还用于,从所述数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述训练数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述训练数据相同时间段以及相同区域内的历史停留时长;The acquiring module is further configured to acquire a first historical data set and a second historical data set from the database; the first historical data set includes the historical stay of at least one driver in the same service state as the training data Duration, the second historical data set includes the historical stay duration of at least one driver in the same time period and in the same area as the training data;
训练模块,用于根据所述训练数据集合、每一训练数据对应的所述第一历史数据集合和所述第二历史数据集合,对预设模型进行训练,以使预设模型输出的异常停留行为判断结果的准确率和/或召回率达到目标值。The training module is used to train the preset model according to the training data set, the first historical data set and the second historical data set corresponding to each training data, so that the abnormal output of the preset model stays The accuracy and/or recall rate of the behavior judgment result reaches the target value.
在上述实施例的基础上,所述训练模块用于:On the basis of the foregoing embodiment, the training module is used for:
将所述停留时长以及所述第一历史数据集合输入到第一模型中进行训练,确定所述第一模型的预设系数;将所述预定特征信息输入第二模型中进行训练,确定所述第二模型的预设规则;将所述停留时长以及所述第二历史数据集合输入到第三模型中进行训练,确定离群 程度因子的预设阈值,以使得输出的异常停留行为判断结果的准确率和/或召回率达到目标值。Input the length of stay and the first historical data set into a first model for training, and determine the preset coefficients of the first model; input the predetermined feature information into a second model for training, and determine the The preset rules of the second model; input the stay duration and the second historical data set into the third model for training, determine the preset threshold of the outlier degree factor, so that the output judgment result of abnormal stay behavior The accuracy and/or recall rate reaches the target value.
本发明实施例提供的网约车的异常停留行为识别模型训练装置可以具体用于执行图9所提供的方法实施例,具体功能此处不再赘述。The device for training an abnormal staying behavior recognition model for online car-hailing provided by the embodiment of the present invention may be specifically used to execute the method embodiment provided in FIG. 9, and the specific functions are not repeated here.
本发明实施例提供的网约车的异常停留行为识别模型训练装置,通过从数据库获取训练数据集合,所述训练数据包括属于异常停留行为的正例训练数据和不属于异常停留行为的负例训练数据;对于每一训练数据,提取所述训练数据的停留位置、停留时长、司机服务状态以及预定特征信息;从所述数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述训练数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述训练数据相同时间段以及相同区域内的历史停留时长;根据所述训练数据集合、每一训练数据对应的所述第一历史数据集合和所述第二历史数据集合,对预设模型进行训练,以使预设模型输出的异常停留行为判断结果的准确率和/或召回率达到目标值。通过多对网约车的异常停留行为识别模型的训练,可得到网约车的异常停留行为识别模型,从而能够利用海量网约车出行的历史数据以及该模型,考虑到停留时长、位置、服务状态等多维度的特征信息,可实时、准确的识别网约车当前是否出现异常停留行为,提高网约车平台的安全感知能力和对交通事故、司机乘客冲突的识别能力,保障司机和乘客的安全。The device for training an abnormal staying behavior recognition model for online car-hailing provided by an embodiment of the present invention obtains a training data set from a database. The training data includes positive training data belonging to abnormal staying behaviors and negative training data not belonging to abnormal staying behaviors. Data; for each training data, extract the staying position, staying time, driver service status, and predetermined feature information of the training data; obtain the first historical data set and the second historical data set from the database; the first The historical data set includes the historical stay time of at least one driver in the same service state as the training data, and the second historical data set includes the historical stay time of at least one driver in the same time period and in the same area as the training data ; According to the training data set, the first historical data set and the second historical data set corresponding to each training data, the preset model is trained so that the judgment result of the abnormal stay behavior output by the preset model The accuracy and/or recall rate reaches the target value. Through the training of multiple pairs of online car-hailing abnormal staying behavior recognition models, the abnormal staying behavior recognition model of online car-hailing can be obtained, so that massive online car-hailing travel history data and the model can be used, taking into account the length of stay, location, and service. Multi-dimensional feature information such as status can accurately identify whether there are abnormal staying behaviors in the online car-hailing platform in real time, improve the safety perception ability of the online car-hailing platform and the ability to recognize traffic accidents, driver-passenger conflicts, and protect drivers and passengers. Safety.
图5是根据本申请一些实施例所示的车辆的异常停留行为识别方法的示例性流程图。在一些实施例中,流程500可以由处理设备(例如,图1所示的处理设备110)执行。例如,流程500可以以程序或指令的形式存储在存储设备(例如,存储设备130或处理设备的存储单元)中,当处理器210或图4所示的模块执行程序或指令时,可以实现流程500。在一些实施例中,流程500可以利用以下未描述的一个或以上附加操作,和/或不通过以下所讨论的一个或以上操作完成。另外,如图5所示的操作的顺序并非限制性的。如图5所示,流程500可以包括以下操作。Fig. 5 is an exemplary flowchart of a method for identifying abnormal stay behavior of a vehicle according to some embodiments of the present application. In some embodiments, the process 500 may be executed by a processing device (for example, the processing device 110 shown in FIG. 1). For example, the process 500 may be stored in a storage device (for example, the storage device 130 or a storage unit of a processing device) in the form of a program or instruction. When the processor 210 or the module shown in FIG. 4 executes the program or instruction, the process may be implemented. 500. In some embodiments, the process 500 may utilize one or more additional operations not described below, and/or not be completed by one or more operations discussed below. In addition, the order of operations shown in FIG. 5 is not restrictive. As shown in FIG. 5, the process 500 may include the following operations.
步骤501,获取车辆的实时停留数据。在一些实施例中,步骤510可以由获取模块410执行。Step 501: Acquire real-time stay data of the vehicle. In some embodiments, step 510 may be performed by the acquisition module 410.
在一些实施例中,所述车辆可以是执行服务请求的车辆。例如,所述车辆可以是执行包括打车服务请求、导航服务请求、送餐服务请求、货运服务请求等的交通运输服务请求的小客车、客车、货车、电动单车、电动摩托车等。如图1中所示的车辆150。在一些实施例中,所述服务请求可以是实时服务请求或预约服务请求。可以通过预设时间阈值定义“实时”或“预约”。例如,如果用户(例如,终端120的使用者)希望立刻或在距离当前时刻预设时间阈值内的时刻接受服务,则服务请求可以认为是实时服务请求。如果用户希望在距离当前时刻 预设时间阈值外的时刻接受服务,则服务请求可以认为是预约服务请求。预设时间阈值可以是系统默认值,也可以在不同情况下调整。例如,预设时间阈值可以是5分钟、10分钟、20分钟等。又例如,可以针对不同的城市、不同的地区、不同的时段等设定不同的预设时间阈值。In some embodiments, the vehicle may be a vehicle that executes a service request. For example, the vehicle may be a small passenger car, a passenger car, a truck, an electric bicycle, an electric motorcycle, etc., which execute a transportation service request including a ride-hailing service request, a navigation service request, a meal delivery service request, a freight service request, etc. The vehicle 150 is shown in FIG. 1. In some embodiments, the service request may be a real-time service request or a reservation service request. You can define "real-time" or "scheduled" by a preset time threshold. For example, if the user (for example, the user of the terminal 120) wants to receive the service immediately or at a time within a preset time threshold from the current time, the service request may be regarded as a real-time service request. If the user wants to receive the service at a time outside the preset time threshold from the current time, the service request can be regarded as a reservation service request. The preset time threshold can be the system default value, or it can be adjusted under different circumstances. For example, the preset time threshold may be 5 minutes, 10 minutes, 20 minutes, and so on. For another example, different preset time thresholds can be set for different cities, different regions, and different time periods.
在一些实施例中,所述实时停留数据可以包括当前停留时长以及与车辆停留相关的特征信息。In some embodiments, the real-time stay data may include the current stay time and characteristic information related to the stay of the vehicle.
在一些实施例中,为了提高司机和乘客的安全,获取模块410可以获取车辆发生停留时的实时数据。具体的,获取模块410可以从车辆150或终端140处获取实时数据。该实时数据可以包括但不限于位置信息、时间信息、所述车辆相关的人员(例如,司机和/或乘客)的一些状态信息和交互信息等。在一些实施例中,处理设备110(例如,获取模块410)可以获取车辆的定位数据,包括实时速度数据,并根据实时速度数据判断车辆是否停留。In some embodiments, in order to improve the safety of drivers and passengers, the acquisition module 410 may acquire real-time data when the vehicle stops. Specifically, the obtaining module 410 may obtain real-time data from the vehicle 150 or the terminal 140. The real-time data may include, but is not limited to, location information, time information, some status information and interaction information of persons related to the vehicle (for example, drivers and/or passengers). In some embodiments, the processing device 110 (for example, the acquisition module 410) may acquire positioning data of the vehicle, including real-time speed data, and determine whether the vehicle is staying based on the real-time speed data.
当车辆发生停留时,获取模块410可以从上述实时数据中获取所述车辆的当前停留时长服务提供者的状态和车辆停留相关的特征信息。所述与车辆停留相关的特征信息可以包括当前停留位置以及与所述车辆相关的人员的行为。其中,与所述车辆相关的人员的行为可以包括服务请求者(例如,请求打车服务的乘客)的支付行为、评价行为等。所述服务提供者的状态可以包括处于服务状态(如打车服务中,服务提供者比如司机处于接驾状态、到达状态、服务提供状态)或处于非服务状态(如打车服务中,服务提供者比如司机处于听单状态、收车状态)。当前车辆停留相关的特征信息包括但不限于乘客的支付行为、乘客对司机的评价、是否处于发单热点区域等等。When the vehicle stays, the acquisition module 410 may acquire the status of the service provider of the current stay of the vehicle and the characteristic information related to the vehicle stay from the above real-time data. The characteristic information related to the stay of the vehicle may include the current stay position and the behavior of the personnel related to the vehicle. Wherein, the behavior of the personnel related to the vehicle may include the payment behavior and evaluation behavior of the service requester (for example, the passenger requesting a taxi service). The status of the service provider may include being in a service state (for example, in a taxi service, a service provider such as a driver is in a pickup state, an arrival state, or a service provision state) or in a non-service state (for example, in a taxi service, a service provider such as The driver is in the state of taking orders and receiving the vehicle). The characteristic information related to the current vehicle stay includes, but is not limited to, the passenger's payment behavior, the passenger's evaluation of the driver, whether it is in a billing hot spot, and so on.
在本申请的另一些实施例中,为了提高网约车司机和乘客的安全,网约车平台的服务器可采集网约车发生停留时的实时数据,具体的,可从网约车终端(包括车载终端、司机终端或乘客终端)将一些实时数据上传到网约车平台的服务器,具体的,该些实时数据可包括但不限于位置信息、时间信息、司机及乘客的一些状态信息和交互信息等。更具体的,可获取网约车的GPS数据,包括实时速度数据,根据实时速度数据可以判断网约车是否停留。In other embodiments of this application, in order to improve the safety of online car-hailing drivers and passengers, the server of the online car-hailing platform can collect real-time data when the online car-hailing platform stops. Specifically, it can be obtained from online car-hailing terminals (including Vehicle terminal, driver terminal or passenger terminal) upload some real-time data to the server of the online car-hailing platform. Specifically, the real-time data may include but not limited to location information, time information, some status information and interaction information of the driver and passengers Wait. More specifically, GPS data of online car-hailing can be obtained, including real-time speed data, and it can be determined whether the online car-hailing is staying based on the real-time speed data.
当某一网约车发生停留时,可从上述实时数据中获取其当前停留位置、当前停留时长、司机服务状态以及预定特征信息。其中司机服务状态包括处于服务状态(如接驾状态、到达状态、服务状态)或处于非服务状态(如听单状态、收车状态);预定特征信息包括但不限于乘客的支付行为、乘客对司机的评价、是否处于发单热点区域等等。When a certain online car-hailing stops, the current stay location, current stay duration, driver service status, and predetermined feature information can be obtained from the above real-time data. The driver’s service status includes service status (such as pick-up status, arrival status, service status) or non-service status (such as order status, car collection status); predetermined feature information includes, but is not limited to, passenger’s payment behavior and passenger’s Driver’s evaluation, whether it is in a hot spot for billing, etc.
在本申请中,所述实时数据可以是与所述实时停留数据相同或类似。In this application, the real-time data may be the same as or similar to the real-time stay data.
步骤503,基于实时停留数据,利用识别模型确定车辆是否处于异常停留状态。在一些实施例中,步骤503可以由确定模块420执行。Step 503: Based on the real-time stay data, use the recognition model to determine whether the vehicle is in an abnormal stay state. In some embodiments, step 503 may be performed by the determining module 420.
在一些实施例中,确定模块420可以使用所述识别模型处理所述实时停留数据,实现对车辆的异常停留行为的实时地识别。在一些实施例中,所述异常停留可以是指车辆或与车辆相关的人员(例如,司机和/或乘客)由于某些原因导致的非正常停车。例如,由于车辆发生故障而导致的停车。又例如,由于司机和乘客发生冲突导致的停车。还例如,由于发生交通事故导致的停车。在一些实施例中,所述识别模型可以通过数据库(例如,存储设备130)中的历史数据进行训练。所述历史数据可以包括了多个车辆在历史行程中的历史停留数据,以及对应的停留行为的识别结果。在一些实施例中,所述识别模型可以为任意的能够进行异常值检测的模型,例如,数字异常值模型、Z-score模型、孤立森林模型、DBSCAN模型等。所述识别模型可以是预先训练好的,存储于存储设备(例如,存储设备130或处理设备的存储单元)中。确定模块420可以与存储设备进行通信,以获取所述识别模型。In some embodiments, the determination module 420 may use the recognition model to process the real-time stay data to realize the real-time recognition of the abnormal stay behavior of the vehicle. In some embodiments, the abnormal stay may refer to an abnormal parking of a vehicle or a person related to the vehicle (for example, a driver and/or a passenger) due to some reasons. For example, parking due to a breakdown of the vehicle. Another example is parking due to a conflict between the driver and the passenger. Another example is parking due to a traffic accident. In some embodiments, the recognition model may be trained through historical data in a database (for example, the storage device 130). The historical data may include historical stay data of multiple vehicles in historical trips, and the recognition results of corresponding stay behaviors. In some embodiments, the recognition model may be any model that can perform outlier detection, for example, a digital outlier model, a Z-score model, an isolated forest model, a DBSCAN model, and so on. The recognition model may be pre-trained and stored in a storage device (for example, the storage device 130 or the storage unit of the processing device). The determining module 420 may communicate with the storage device to obtain the recognition model.
在一些实施例中,所述识别模型可以是融合模型,可以包括第一子识别模型、第二子识别模型和第三子识别模型。所述识别模型可以从不同的维度判断所述车辆的停留是否为异常停留行为。作为示例,所述第一子识别模型可以是基于分布的识别模型,所述第二子识别模型可以是基于统计的子识别模型,所述第三模型可以是基于密度的子识别模型。所述识别模型可以从分布、统计以及密度三个维度准确地对车辆的停留进行识别。每个子识别模型的输入可以是不同的,以从不同的角度确定车辆的停留是否属于异常。关于确定车辆是否处于异常停留状态的其他描述可以参考本申请其他部分,例如,图6-图8。In some embodiments, the recognition model may be a fusion model, which may include a first sub-recognition model, a second sub-recognition model, and a third sub-recognition model. The recognition model can judge whether the stay of the vehicle is an abnormal stay behavior from different dimensions. As an example, the first sub-recognition model may be a distribution-based recognition model, the second sub-recognition model may be a statistics-based sub-recognition model, and the third model may be a density-based sub-recognition model. The recognition model can accurately recognize the stay of the vehicle from the three dimensions of distribution, statistics and density. The input of each sub-recognition model can be different to determine whether the stay of the vehicle is abnormal from a different angle. For other descriptions of determining whether the vehicle is in an abnormally parked state, reference may be made to other parts of this application, for example, Figs. 6-8.
可选的,本实施例中的预设模型为融合模型,可包括第一模型、第二模型和第三模型,从不同的维度逐步判断所述网约车当前是否出现异常停留行为。Optionally, the preset model in this embodiment is a fusion model, which may include a first model, a second model, and a third model, and it is gradually determined from different dimensions whether the online car-hailing currently exhibits an abnormal staying behavior.
在一些实施例中,所述识别模型可以是单一模型,可以利用一个模型实现上述融合模型的功能。例如,确定模块420可以将所述车辆的实时停留数据输入至所述识别模型,直接得到对于车辆的停留是否属于异常停留的判定。例如,所述识别模型的输出结果可以是1或0。1表示异常停留,0表示不是异常停留。In some embodiments, the recognition model may be a single model, and one model may be used to implement the functions of the aforementioned fusion model. For example, the determination module 420 may input the real-time stay data of the vehicle into the recognition model to directly determine whether the stay of the vehicle is an abnormal stay. For example, the output result of the recognition model may be 1 or 0. 1 means abnormal stay, and 0 means not abnormal stay.
在一些实施例中,针对不同的运输服务,可以构建不同的识别模型,例如,针对打车服务可以构建一个识别模型,针对货运服务可以构建另一识别模型。针对不同的运输服务使用不同的识别模型,可以提高在不同的运输服务中车辆发生停留时的异常行为判定的准确率。In some embodiments, different recognition models can be built for different transportation services. For example, one recognition model can be built for ride-hailing services, and another recognition model can be built for freight services. Using different recognition models for different transportation services can improve the accuracy of determining abnormal behavior when vehicles stay in different transportation services.
在一些实施例中,确定模块420可以分别使用所述识别模型所包含的子模型识别车辆的异常停留。作为示例,确定模块420可以基于第一子识别模型确定所述当前停留时长是否为异常停留时长。同时,确定模块420可以基于第二子识别模型确定所述车辆停留相关的特征信息是否满足停留规则。另外,确定模块420还可以基于第三子模型确定所述当前停留时长相关的异常评估值并确定所述以确定所述异常评估值是否大于预设阈值。当所述当前停 留时间为异常停留时长,所述车辆停留相关的特征信息不满足所述停留规则,和/或所述异常评估值大于所述预设阈值时,确定模块420可以确定所述车辆处于异常停留状态。例如,当所述当前停留时间为异常停留时长时,或所述车辆停留相关的特征信息不满足所述停留规则时,或所述异常评估值大于所述预设阈值时,确定模块420可以确定所述车辆处于异常停留状态。又例如,当所述当前停留时间为异常停留时长以及所述车辆停留相关的特征信息不满足所述停留规则时,或当所述当前停留时间为异常停留时长以及所述异常评估值大于所述预设阈值时,或当所述车辆停留相关的特征信息不满足所述停留规则以及所述异常评估值大于所述预设阈值时,确定模块420可以确定所述车辆处于异常停留状态。再例如,如前所述,当所述当前停留时间为异常停留时长时,所述车辆停留相关的特征信息不满足所述停留规则以及所述异常评估值大于所述预设阈值时,确定模块420可以确定所述车辆处于异常停留状态。In some embodiments, the determining module 420 may respectively use the sub-models included in the recognition model to recognize the abnormal stay of the vehicle. As an example, the determining module 420 may determine whether the current stay duration is an abnormal stay duration based on the first sub-recognition model. At the same time, the determining module 420 may determine whether the characteristic information related to the vehicle stay meets the stay rule based on the second sub-recognition model. In addition, the determining module 420 may also determine the abnormal evaluation value related to the current stay time based on the third sub-model and determine whether the abnormal evaluation value is greater than a preset threshold. When the current stay time is the abnormal stay time, the characteristic information related to the vehicle stay does not meet the stay rules, and/or the abnormal evaluation value is greater than the preset threshold, the determining module 420 may determine that the vehicle In an abnormal state. For example, when the current stay time is the abnormal stay time, or the characteristic information related to the vehicle stay does not meet the stay rules, or the abnormal evaluation value is greater than the preset threshold, the determining module 420 may determine The vehicle is in an abnormal parking state. For another example, when the current stay time is the abnormal stay time and the characteristic information related to the vehicle stay does not meet the stay rules, or when the current stay time is the abnormal stay time and the abnormal evaluation value is greater than the When the threshold is preset, or when the characteristic information related to the vehicle stay does not satisfy the stay rule and the abnormality evaluation value is greater than the preset threshold, the determination module 420 may determine that the vehicle is in an abnormal stay state. For another example, as mentioned above, when the current stay time is the abnormal stay duration, the characteristic information related to the vehicle stay does not meet the stay rules and the abnormal evaluation value is greater than the preset threshold, the determining module 420 It may be determined that the vehicle is in an abnormal state.
在本申请的另一些实施例中,可以从数据库中获取第一历史数据集合和第二历史数据集合。所述第一历史数据集合包括至少一个司机在与所述实时数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述实时数据相同时间段以及相同区域内的历史停留时长。数据库中存储有网约车平台维护的所有网约车的历史数据。为了识别网约车当期是否出现异常停留行为,可从数据库中获取多个维度的历史数据,从而从多个维度进行识别异常停留,提高准确率和召回率。本实施例中第一历史数据集合主要考虑司机服务状态的维度,而第二历史数据集合主要考虑时间和空间的维度。此外,本实施例中第一历史数据集合和第二历史数据集合可以从数据库中某一段时间内(例如近一个月内)的一个司机或多个司机(如满足某些要求的司机或所有司机)历史数据的范围内中获取对应的历史停留时长。In some other embodiments of the present application, the first historical data set and the second historical data set may be obtained from a database. The first historical data set includes the historical stay time of at least one driver in the same service state as the real-time data, and the second historical data set includes at least one driver in the same time period and the same area as the real-time data The length of stay in history. The database stores the historical data of all online car-hailing platforms maintained by the online car-hailing platform. In order to identify whether there are abnormal staying behaviors in the current period of online car-hailing, multiple dimensions of historical data can be obtained from the database, so as to identify abnormal stays from multiple dimensions, and improve the accuracy and recall rate. In this embodiment, the first historical data set mainly considers the dimensions of driver service status, while the second historical data set mainly considers the dimensions of time and space. In addition, in this embodiment, the first historical data set and the second historical data set can be obtained from one driver or multiple drivers (such as drivers who meet certain requirements or all drivers) within a certain period of time (for example, within a month) in the database. ) Obtain the corresponding historical stay time within the range of historical data.
在本申请的另一些实施例中,可以根据所述实时数据、所述第一历史数据集合、所述第二历史数据集合以及预设模型,识别所述网约车当前是否出现异常停留行为。可根据预设模型以及获取到的各种数据,实现对网约车的异常停留行为的识别,其中预设模型可以通过数据库中的历史数据进行训练。其中预设模型可以为任意的能够进行异常值检测的模型。可选的,本实施例中的预设模型为融合模型,可包括第一模型、第二模型和第三模型,从不同的维度逐步判断所述网约车当前是否出现异常停留行为。具体的,可以参见本申请图6部分。In other embodiments of the present application, it may be possible to identify whether the online car-hailing currently exhibits an abnormal staying behavior based on the real-time data, the first historical data set, the second historical data set, and a preset model. According to the preset model and various acquired data, the recognition of the abnormal staying behavior of the online car-hailing can be realized, and the preset model can be trained through the historical data in the database. The preset model can be any model that can perform outlier detection. Optionally, the preset model in this embodiment is a fusion model, which may include a first model, a second model, and a third model, and it is gradually determined from different dimensions whether the online car-hailing currently exhibits an abnormal staying behavior. For details, please refer to Figure 6 of this application.
在本申请中,所述预设模型可以是与所述识别模型相同或类似,所述第一模型可以是与所述第一子识别模型相同或类似,所述第二模型可以是与所述第二子识别模型相同或类似,所述第三模型可以是与所述第三子识别模型相同或类似。In this application, the preset model may be the same or similar to the recognition model, the first model may be the same or similar to the first sub-recognition model, and the second model may be the same as the The second sub-recognition model is the same or similar, and the third model may be the same or similar to the third sub-recognition model.
本申请所披露的识别车辆的异常停留的方法,利用基于海量的车辆出行的历史数据所 训练的识别模型处理车辆的当前停留数据,考虑不同的维度例如停留时长、位置、车辆相关的人员的状态等的特征信息,可实时、准确地识别出车辆当前是否出现异常停留行为,提供了车辆的安全感知能力和对交通事故、车辆内人员冲突例如司乘冲突的识别能力,保障了人员安全。The method for identifying abnormal stays of a vehicle disclosed in this application uses a recognition model trained based on massive vehicle travel history data to process the current stay data of the vehicle, and considers different dimensions such as stay time, location, and status of personnel related to the vehicle This feature information can accurately identify whether the vehicle currently has abnormal staying behavior in real time and accurately, providing the vehicle’s safety perception ability and the ability to recognize traffic accidents and conflicts in the vehicle, such as driver and passenger conflicts, and ensure the safety of personnel.
应当注意的是,上述有关流程500的描述仅仅是为了示例和说明,而不限定本申请的适用范围。对于本领域技术人员来说,在本申请的指导下可以对流程500进行各种修正和改变。然而,这些修正和改变仍在本申请的范围之内。It should be noted that the foregoing description of the process 500 is only for example and description, and does not limit the scope of application of the present application. For those skilled in the art, various modifications and changes can be made to the process 500 under the guidance of this application. However, these amendments and changes are still within the scope of this application.
图6是根据本申请一些实施例所示的利用识别模型确定车辆是否处于异常停留状态的示例性流程图。在一些实施例中,流程600可以由处理设备(例如,图1所示的处理设备110)执行。例如,流程600可以以程序或指令的形式存储在存储设备(例如,存储设备130或处理设备的存储单元)中,当处理器210或图4所示的模块执行程序或指令时,可以实现流程600。在一些实施例中,流程600可以由确定模块420执行。在一些实施例中,流程600可以利用以下未描述的一个或以上附加操作,和/或不通过以下所讨论的一个或以上操作完成。另外,如图6所示的操作的顺序并非限制性的。如图6所示,流程600可以包括以下操作。Fig. 6 is an exemplary flow chart for determining whether a vehicle is in an abnormal staying state by using a recognition model according to some embodiments of the present application. In some embodiments, the process 600 may be executed by a processing device (for example, the processing device 110 shown in FIG. 1). For example, the process 600 may be stored in a storage device (for example, the storage device 130 or a storage unit of a processing device) in the form of a program or instruction. When the processor 210 or the module shown in FIG. 4 executes the program or instruction, the process may be implemented. 600. In some embodiments, the process 600 may be executed by the determining module 420. In some embodiments, the process 600 may utilize one or more additional operations not described below, and/or not be completed by one or more operations discussed below. In addition, the order of operations shown in FIG. 6 is not restrictive. As shown in FIG. 6, the process 600 may include the following operations.
步骤601,基于第一子识别模型确定当前停留时长是否为异常停留时长。Step 601: Determine whether the current stay duration is an abnormal stay duration based on the first sub-recognition model.
在一些实施例中,确定模块420可以将所述当前停留时长输入到第一子识别模型中,判断所述当前停留时长是否为异常停留时长。在一些实施例中,所述第一子识别模型可以是任意的基于异常值检测算法所构建的识别模型。例如,异常值检测算法可以包括基于聚类的方法、孤立森林、统计学方法、基于分布的杜凯法事后比较(Tukey Method)等。第一子识别模型可以确定所述当前停留时长相对于用于训练所述第一子识别模型的历史停留时长是否为异常值(outlier)。若是,则可以判定所述当前停留时长为异常停留时长。关于基于第一子识别模型确定当前停留时长是否为异常停留时长的其他描述可以参考本申请图7,此处不再赘述。In some embodiments, the determining module 420 may input the current stay duration into the first sub-recognition model to determine whether the current stay duration is an abnormal stay duration. In some embodiments, the first sub-recognition model may be any recognition model constructed based on an outlier detection algorithm. For example, the outlier detection algorithm may include clustering-based methods, isolated forests, statistical methods, distribution-based Tukey Method and so on. The first sub-recognition model can determine whether the current stay time is an outlier relative to the historical stay time used to train the first sub-recognition model. If yes, it can be determined that the current stay duration is the abnormal stay duration. For other descriptions of determining whether the current stay duration is an abnormal stay duration based on the first sub-recognition model, reference may be made to FIG. 7 of the present application, which will not be repeated here.
步骤603,响应于所述当前停留时长为异常停留时长,基于第二子识别模型确定车辆停留相关的特征信息是否满足停留规则;Step 603: In response to the current stay duration being the abnormal stay duration, determine whether the characteristic information related to the vehicle stay meets the stay rule based on the second sub-recognition model;
在一些实施例中,所述第二识别子模型可以是基于统计的规则模型。确定模块420可以确定所述车辆停留相关的特征信息是否满足基于第二识别子模型确定的停留规则。可以理解的是,当确定了车辆的当前停留时长属于异常停留时长,也有可能存在某些正常原因所导致的长时间停留。例如,由于车辆处于交通拥堵路段导致等候通行的时间过长,从而使得第一子识别模型判定当前停留时长为异常停留时长。又例如,提供打车服务的车辆在完成服务后例如到达目的地后,乘客在车上进行付款或给予司机好评例如使用终端120上安装的打车 软件进行支付或评分,时间过久从而导致第一子识别模型判定当前停留时长为异常停留时长。因此,确定模块420可以使所述停留规则对之前的判定结果进行过滤。关于基于第二子识别模型确定车辆停留相关的特征信息是否满足停留规则的其他描述可以参考本申请图8,此处不再赘述。In some embodiments, the second recognition sub-model may be a rule model based on statistics. The determining module 420 may determine whether the characteristic information related to the vehicle stay meets the stay rule determined based on the second recognition sub-model. It is understandable that when it is determined that the current stay duration of the vehicle belongs to the abnormal stay duration, there may also be a long stay caused by some normal reasons. For example, because the vehicle is in a congested road section, the waiting time is too long, so that the first sub-recognition model determines that the current stay time is the abnormal stay time. For another example, after a vehicle that provides a ride-hailing service completes the service, such as arriving at the destination, the passenger pays on the car or gives the driver a good comment. For example, the ride-hailing software installed on the terminal 120 is used to pay or score. The time is too long, resulting in the first child The recognition model determines that the current stay time is the abnormal stay time. Therefore, the determination module 420 can make the stay rule filter the previous determination result. For other descriptions of determining whether the characteristic information related to the vehicle stay meets the stay rule based on the second sub-recognition model, please refer to FIG. 8 of the present application, which will not be repeated here.
在本申请的另一些实施例中,若确定所述当前停留时长为异常停留时长,则将所述预定特征信息输入第二模型中,判断所述预定特征信息是否满足所述第二模型的预设规则。第二模型为基于统计的规则模型,可预先设定一些规则,来过滤一些虽然当前停留时长属于异常停留时长、但不属于异常停留行为的情况,例如某些情况发生停留但乘客主动支付、主动给出好评,或者当前停留位置为一些发单热点区域也可能存在长时间停留、但不属于异常停留行为,也即出现这些特征时存在异常停留行为的概率很低,通过第二模型可大规模减少数据量,减少计算资源的消耗。第二的预设规则可预先通过训练来确定。In other embodiments of the present application, if it is determined that the current stay duration is the abnormal stay duration, the predetermined characteristic information is input into the second model, and it is determined whether the predetermined characteristic information meets the expectations of the second model. Set rules. The second model is a rule model based on statistics. Some rules can be set in advance to filter some cases where the current stay time is abnormal stay time but not abnormal stay behavior. For example, when staying occurs in some cases, passengers take the initiative to pay and take the initiative Give good comments, or if the current stay is in some billing hotspots, there may also be long stays, but they are not abnormal staying behaviors, that is, the probability of abnormal staying behaviors when these characteristics appear is very low, and the second model can be used on a large scale Reduce the amount of data and reduce the consumption of computing resources. The second preset rule can be determined in advance through training.
实施例中可将实时数据中的预定特征信息如乘客的支付行为、乘客对司机的评价、发单热点区域中的至少一个输入到第二模型中,判断所述乘客的支付行为是否为主动支付;和/或判断所述乘客对司机的评价是否为主动好评;和/或判断所述当前停留位置是否处于所述发单热点区域;若上述判断中至少一项判断结果为是,则确定预定特征信息满足第二模型的预设规则,从而确定网约车当前未出现异常停留行为;若上述判断结果均为否,则确定所述预定特征信息不满足所述第二模型的预设规则,可进行下一步的判断。In the embodiment, at least one of the predetermined characteristic information in the real-time data, such as the passenger's payment behavior, the passenger's evaluation of the driver, and the billing hotspot area, can be input into the second model to determine whether the passenger's payment behavior is active payment And/or determine whether the passenger’s evaluation of the driver is positive; and/or determine whether the current location is in the billing hotspot area; if the result of at least one of the above determinations is yes, then the reservation is determined The characteristic information satisfies the preset rules of the second model, thereby determining that there is no abnormal stay behavior in the online car-hailing; if the above judgment results are all no, it is determined that the predetermined characteristic information does not meet the preset rules of the second model, The next step can be judged.
在本申请中,所述预设规则可以与所述停留规则相同或相似。In this application, the preset rule may be the same as or similar to the stay rule.
步骤605,响应于所述车辆停留相关的特征信息不满足所述停留规则,基于第三子识别模型确定所述当前停留时长相关的异常评估值。Step 605: In response to the characteristic information related to the vehicle staying that does not satisfy the staying rule, determine the abnormal evaluation value related to the current staying time based on a third sub-recognition model.
在一些实施例中,若确定车辆停留相关的特征信息不满足所述第二模型的停留规则,则确定模块420可以将所述当前停留时长输入到第三子识别模型中,获取所述当前停留时长的异常评估值。In some embodiments, if it is determined that the characteristic information related to the vehicle stay does not meet the stay rules of the second model, the determining module 420 may input the current stay time into the third sub-recognition model to obtain the current stay The abnormal evaluation value of the duration.
在一些实施例中,确定模块420可以通过第三子识别模型获取当前停留时长相对于训练该模型的样本数据的异常评估值。训练该模型的样本数据可以包括处于相同时间段和相同区域内的至少一个第二样本车辆的第二历史停留数据。所述第二历史停留数据可以包括第二历史停留时长。确定模块420可以利用第二子识别模型确定所述当前停留时长与所述第二历史停留时长之间存在差异的大小。所述差异的大小可以被指定为所述异常评估值。在一些实施例中,可选的,为了增加第二历史停留数据的数据数量,提高计算异常评估值的准确性,当前停留位置所在的区域采用经纬度的geohash中的geo5区域(5位编码单位网格,覆盖面积约24平方千米)。In some embodiments, the determining module 420 may obtain the abnormal evaluation value of the current stay time relative to the sample data for training the model through the third sub-recognition model. The sample data for training the model may include second historical stay data of at least one second sample vehicle in the same time period and in the same area. The second historical stay data may include a second historical stay duration. The determining module 420 may use the second sub-recognition model to determine the magnitude of the difference between the current stay duration and the second historical stay duration. The magnitude of the difference may be designated as the abnormality evaluation value. In some embodiments, optionally, in order to increase the data quantity of the second historical stay data and improve the accuracy of calculating the abnormal evaluation value, the area where the current stay position is located adopts the geo5 area (5-digit coding unit network) in the geohash of latitude and longitude. Grid, covering an area of about 24 square kilometers).
在一些实施例中,所述第三子识别模型可以为任何可以确定离群值的模型,例如,Robust Random Cut Forest、IsolationForest、EllipticEnvelope、OneClassSVM、高斯异常点检测等。在一些实施例中,所述第三子识别模型可以包括为基于密度的局部异常因子模型(Local Outlier Factor,LOF模型)。确定模块420可以通过所述LOF模型获取所述当前停留时长的局部异常因子(LOF值),并将该LOF值指定为所述异常评估值。LOF值可以用于反映当前停留时长的邻域点的局部可达密度与当前停留时长的局部可达密度之比的平均数。当LOF值越大于1,则说明当前停留时长的局部可达密度越小于其邻域点的局部可达密度,当前停留时长越有可能为异常点。因此确定当前停留时长的异常评估值与预设阈值之间的大小关系,可以确定车辆是否出现异常停留行为。In some embodiments, the third sub-recognition model may be any model that can determine outliers, for example, Robust Random Cut Forest, Isolation Forest, Elliptic Envelope, OneClassSVM, Gaussian outlier detection, and so on. In some embodiments, the third sub-recognition model may include a density-based local outlier factor model (Local Outlier Factor, LOF model). The determining module 420 may obtain the local abnormality factor (LOF value) of the current stay time through the LOF model, and designate the LOF value as the abnormality evaluation value. The LOF value can be used to reflect the average of the ratio of the local reachable density of the neighborhood point of the current stay time to the local reachable density of the current stay time. When the LOF value is greater than 1, it means that the local reachable density of the current stay time is smaller than the local reachable density of its neighboring points, and the current stay time is more likely to be an abnormal point. Therefore, by determining the magnitude relationship between the abnormal evaluation value of the current stay time and the preset threshold value, it can be determined whether the vehicle has abnormal stay behavior.
步骤607,确定所述异常评估值是否大于异常停留阈值。Step 607: Determine whether the abnormality evaluation value is greater than the abnormal staying threshold.
在一些实施例中,所述异常停留阈值可以是预先确定的。在一些实施例中,所述异常停留阈值可以由训练过程得到。例如,采用训练前预先确定,训练过程中不断调整的方式确定。确定模块420可以将异常评估值与异常停留阈值进行大小比较,以确定所述异常评估值是否大于异常停留阈值。In some embodiments, the abnormal stay threshold may be predetermined. In some embodiments, the abnormal stay threshold may be obtained from a training process. For example, it is determined by pre-determining before training and continuously adjusting during training. The determination module 420 may compare the abnormality evaluation value with the abnormal stay threshold value to determine whether the abnormality evaluation value is greater than the abnormal stay threshold value.
步骤609,响应于所述异常评估值大于所述异常停留阈值,确定车辆处于异常停留状态。Step 609: In response to the abnormality evaluation value being greater than the abnormal stop threshold, it is determined that the vehicle is in an abnormal stop state.
在一些实施例中,当所述异常评估值大于异常停留阈值时,确定模块420可以确定车辆处于异常停留状态。In some embodiments, when the abnormality evaluation value is greater than the abnormal stay threshold, the determination module 420 may determine that the vehicle is in an abnormal stay state.
在一些实施例中,由于训练LOF模型需要一定的数据量,也就是说,LOF模型的训练需要第二历史停留数据中样本数不少于一定的预设数量。若第二历史停留数据中样本数少于预设数量,则LOF模型的准确性相对较差。此时,确定模块420可以直接在第二子识别模型确定车辆停留相关的特征信息不满足所述第二子识别模型的停留规则时直接确定所述车辆当前出现异常停留行为,而不需要再通过LOF模型确定当前停留时长的异常评估值。In some embodiments, since training the LOF model requires a certain amount of data, that is, the training of the LOF model requires that the number of samples in the second historical stay data is not less than a certain preset number. If the number of samples in the second historical stay data is less than the preset number, the accuracy of the LOF model is relatively poor. At this time, the determining module 420 may directly determine that the vehicle is currently exhibiting abnormal parking behavior when the second sub-recognition model determines that the characteristic information related to the vehicle stay does not meet the staying rules of the second sub-recognition model, and does not need to pass through. The LOF model determines the abnormal evaluation value of the current stay time.
在一些实施例中,预设数量可通过如下操作获取。统计存储所述第二历史停留数据的数据库(例如,存储设备130或处理设备110自带的存储器)中所有与所述实时停留数据对应的相同时间段内的历史停留数据的数量(例如,数据份数或数据大小),并以所述历史停留数据的数量乘以预设百分比(例如25%)后得到的结果作为所述预设数量。In some embodiments, the preset number can be obtained through the following operations. Count the number of historical stay data (for example, data in the same time period corresponding to the real-time stay data) in the database (for example, the storage device 130 or the memory of the processing device 110) storing the second historical stay data The number of copies or data size), and the result obtained by multiplying the number of historical stay data by a preset percentage (for example, 25%) is used as the preset number.
本实施例中获取不同维度条件下的停留次数,也就是说,通过统计数据库中所有车辆在各geo5区域中以及相同时间段内的历史停留的总次数(历史停留数据的数量),通过乘以预设百分比得到所述预设数量。当第二历史停留数据中样本数不少于该预设数量时才采用LOF模型进行后续计算过程。本实施例中预设百分比可通过预先训练获取。In this embodiment, the number of stays under different dimensional conditions is obtained, that is, the total number of historical stays (the number of historical stay data) of all vehicles in each geo5 area and the same time period in the statistical database is multiplied by The preset percentage obtains the preset quantity. When the number of samples in the second historical stay data is not less than the preset number, the LOF model is used for the subsequent calculation process. The preset percentage in this embodiment can be obtained through pre-training.
在本申请的另一些实施例中,若确定所述预定特征信息不满足所述第二模型的预设规则,则将所述当前停留时长以及所述第二历史数据集合输入到第三模型中,获取所述当前停留时长的离群程度因子,若所述离群程度因子大于预设阈值,则确定所述网约车当前出现异常停留行为。在实施例中,通过第三模型对当前停留时长进行最后的判断,获取当前停留时长相对于第二历史数据集合的离群程度因子,以判断当前停留时长与数据库中各司机在相同时间段以及相同区域内不同状态下的历史停留时长之间存在差异的大小,若离群程度因子大于预设阈值,则说明差异较大,从而可以确定网约车当前出现异常停留行为。可选的,为了增加第二历史数据集合数据数量,提高计算离群程度因子的准确性,本实施例中当前停留位置所述区域采用经纬度的geohash中的geo5区域(5位编码单位网格,覆盖面积约24平方千米)。In some other embodiments of the present application, if it is determined that the predetermined characteristic information does not satisfy the preset rules of the second model, the current stay time and the second historical data set are input into the third model , Acquiring the outlier degree factor of the current stay duration, and if the outlier degree factor is greater than a preset threshold, it is determined that the online car-hailing currently exhibits an abnormal stay behavior. In the embodiment, the third model is used to make a final judgment on the current stay time, and the outlier degree factor of the current stay time relative to the second historical data set is obtained to determine that the current stay time is the same time period as each driver in the database. The size of the difference between the historical stay time under different states in the same area. If the outlier degree factor is greater than the preset threshold, the difference is large, so that it can be determined that the current abnormal stay behavior of online car-hailing is present. Optionally, in order to increase the number of data in the second historical data set and improve the accuracy of calculating the outlier degree factor, in this embodiment, the area of the current stay position adopts the geo5 area in the geohash of latitude and longitude (a grid of 5-bit coding units, Covering an area of about 24 square kilometers).
进一步的,本实施例中的第三模型为基于密度的LOF(Local Outlier Factor)模型;通过所述LOF模型,根据所述当前停留时长以及所述第二历史数据集合,获取所述当前停留时长的离群程度因子LOF值,LOF值用于反映当前停留时长的邻域点的局部可达密度与当前停留时长的局部可达密度之比的平均数,当LOF值越大于1,则说明当前停留时长的局部可达密度越小于其邻域点的局部可达密度,当前停留时长越有可能为异常点,因此判断当前停留时长的离群程度因子LOF值大于预设阈值,可以确定网约车当前出现异常停留行为。其中预设阈值可预先通过训练获取。Further, the third model in this embodiment is a density-based LOF (Local Outlier Factor) model; through the LOF model, the current stay duration is obtained according to the current stay duration and the second historical data set The LOF value of the outlier degree factor is used to reflect the average of the ratio of the local reachable density of the neighborhood point of the current stay time to the local reachable density of the current stay time. When the LOF value is greater than 1, it means the current The more the local reachable density of the stay time is smaller than the local reachable density of its neighboring points, the more likely the current stay time is to be an abnormal point. Therefore, it is determined that the LOF value of the outlier degree factor of the current stay time is greater than the preset threshold value, and the network can be determined The ride-hailing is currently exhibiting abnormal stopping behavior. The preset threshold can be obtained through training in advance.
在上述实施例的基础上,由于LOF模型需要一定的数据量,也即需要第二数据集中样本数不少于一定的预设数量,若第二数据集中样本数少于预设数量,则LOF模型的准确性相对较差,可以直接在第二模型确定所述预定特征信息不满足所述第二模型的预设规则时直接确定所述网约车当前出现异常停留行为,而不需要再通过LOF模型计算当前停留时长的离群程度因子LOF值。On the basis of the above embodiment, since the LOF model requires a certain amount of data, that is, the number of samples in the second data set is not less than a certain preset number. If the number of samples in the second data set is less than the preset number, then LOF The accuracy of the model is relatively poor. When the second model determines that the predetermined feature information does not meet the preset rules of the second model, it can be directly determined that the online car-hailing is currently exhibiting abnormal staying behavior, without the need to pass The LOF model calculates the LOF value of the outlier degree factor for the current length of stay.
其中,预设数量可通过如下过程获取:统计所述数据库中所有司机在与所述实时数据相同时间段内的历史停留数据的数量,并以所述历史停留数据的数量乘以预设百分比(例如25%)后得到的结果作为所述预设数量。The preset number can be obtained through the following process: Count the number of historical stay data of all drivers in the database during the same time period as the real-time data, and multiply the number of historical stay data by a preset percentage ( For example, the result obtained after 25%) is used as the preset amount.
本实施例中获取不同维度条件下的停留次数,也即通过统计数据库中所有司机在各geo5区域中、相同时间段内的历史停留的总次数(也即历史停留数据的数量),通过乘以预设百分比得到所述预设数量。当第二数据集中样本数不少于该预设数量时才采用LOF模型进行后续计算过程。本实施例中预设百分比可通过预先训练获取。In this embodiment, the number of stays under different dimensional conditions is obtained, that is, the total number of historical stays (that is, the number of historical stay data) of all drivers in each geo5 area in the same time period in the statistics database, and multiply by The preset percentage obtains the preset quantity. When the number of samples in the second data set is not less than the preset number, the LOF model is used for the subsequent calculation process. The preset percentage in this embodiment can be obtained through pre-training.
在上述任一实施例的基础上,在第一模型中,若确定所述当前停留时长不为异常停留时长,则确定所述网约车当前未出现异常停留行为;或者On the basis of any of the foregoing embodiments, in the first model, if it is determined that the current stay duration is not an abnormal stay duration, it is determined that the online car-hailing does not currently exhibit abnormal stay behavior; or
在第二模型中,若确定所述预定特征信息满足所述第二模型的预设规则,则确定所述网约车当前未出现异常停留行为;或者In the second model, if it is determined that the predetermined characteristic information satisfies the preset rules of the second model, it is determined that the online car-hailing does not currently exhibit abnormal stay behavior; or
在第三模型中,若确定所述离群程度因子小于或等于预设阈值,则确定所述网约车当前未出现异常停留行为。In the third model, if it is determined that the outlier degree factor is less than or equal to a preset threshold, it is determined that the online car-hailing does not currently exhibit abnormal staying behavior.
需要说明的,若某一模型中确定网约车当前未出现异常停留行为,则不需要在进行后续模型的处理。It should be noted that if it is determined in a certain model that there is no abnormal staying behavior in the online car-hailing currently, there is no need to perform subsequent model processing.
此外,若识别网约车当前出现异常停留行为,则可进行人为干涉,例如由客服去了解相关情况,及时解决问题,提高司机和乘客的安全。In addition, if it is recognized that the current abnormal staying behavior of online car-hailing is present, human intervention can be carried out, such as the customer service to understand the relevant situation, solve the problem in time, and improve the safety of drivers and passengers.
本实施例提供的网约车的异常停留行为识别方法,通过采集网约车发生停留时的实时数据,所述实时数据包括当前停留位置、当前停留时长、司机服务状态以及预定特征信息;从数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述实时数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述实时数据相同时间段以及相同区域内的历史停留时长;根据所述实时数据、所述第一历史数据集合、所述第二历史数据集合以及预设模型,识别所述网约车当前是否出现异常停留行为。本实施例利用海量网约车出行的多维度历史数据以及预设模型,考虑到停留时长、位置、服务状态等多维度的特征信息,可实时、准确的识别网约车当前是否出现异常停留行为,提高网约车平台的安全感知能力和对交通事故、司机乘客冲突的识别能力,保障司机和乘客的安全。The method for identifying abnormal staying behaviors of online car-hailing provided by this embodiment collects real-time data when the car-hailing stops. The real-time data includes current staying position, current staying time, driver service status, and predetermined characteristic information; from a database The first historical data set and the second historical data set are obtained in the process; the first historical data set includes the historical stay time of at least one driver in the same service state as the real-time data, and the second historical data set includes at least one The historical stay time of the driver in the same time period and in the same area as the real-time data; according to the real-time data, the first historical data set, the second historical data set, and a preset model, the online appointment is identified Whether the car currently exhibits abnormal stopping behavior. This embodiment uses massive multi-dimensional historical data and preset models for online car-hailing travel, and takes into account the multi-dimensional feature information such as stay time, location, service status, etc., to accurately identify whether there is any abnormal staying behavior in online car-hailing in real time. , Improve the safety perception ability of the online car-hailing platform and the ability to recognize traffic accidents and driver-passenger conflicts, and ensure the safety of drivers and passengers.
在本申请中,所述群程度因子LOF值可以与所述异常评估值相同或类似。In this application, the LOF value of the cluster degree factor may be the same as or similar to the abnormality evaluation value.
在一些实施例中,当确定模块420在执行以上操作时,在以上的判定中,若所述当前停留时间不为异常停留时长,或者所述车辆停留相关的特征信息满足所述停留规则,确定所述车辆不处于异常停留状态,或者所述异常评估值小于或等于所述预设阈值,确定模块420可以确定所述车辆不处于异常停留状态。例如,在步骤601中,若所述当前停留时间不为异常停留时长,确定模块420可以直接确定所述车辆不处于异常停留状态。再例如,在步骤603中,若所述车辆停留相关的特征信息满足所述停留规则,确定模块420可以直接确定所述车辆不处于异常停留状态。还例如,若在步骤607中,若所述异常评估值小于或等于所述预设阈值,确定模块420可以确定所述车辆不处于异常停留状态。In some embodiments, when the determination module 420 is performing the above operations, in the above determination, if the current stay time is not the abnormal stay time, or the characteristic information related to the vehicle stay meets the stay rules, it is determined If the vehicle is not in an abnormal parking state, or the abnormal evaluation value is less than or equal to the preset threshold value, the determination module 420 may determine that the vehicle is not in an abnormal parking state. For example, in step 601, if the current stay time is not the abnormal stay time length, the determination module 420 may directly determine that the vehicle is not in the abnormal stay state. For another example, in step 603, if the characteristic information related to the stay of the vehicle satisfies the stay rule, the determination module 420 may directly determine that the vehicle is not in an abnormal stay state. For another example, if in step 607, if the abnormality evaluation value is less than or equal to the preset threshold value, the determination module 420 may determine that the vehicle is not in an abnormal parking state.
应当注意的是,上述有关流程600的描述仅仅是为了示例和说明,而不限定本申请的适用范围。对于本领域技术人员来说,在本申请的指导下可以对流程600进行各种修正和改变。然而,这些修正和改变仍在本申请的范围之内。It should be noted that the foregoing description of the process 600 is only for example and description, and does not limit the scope of application of the present application. For those skilled in the art, various modifications and changes can be made to the process 600 under the guidance of this application. However, these amendments and changes are still within the scope of this application.
图7是根据本申请一些实施例所示的确定当前停留时长是否为异常停留时长的示例 性流程图。在一些实施例中,流程700可以由处理设备(例如,图1所示的处理设备110)执行。例如,流程700可以以程序或指令的形式存储在存储设备(例如,存储设备130或处理设备的存储单元)中,当处理器210或图4所示的模块执行程序或指令时,可以实现流程700。在一些实施例中,流程700可以由确定模块420执行。在一些实施例中,流程700可以利用以下未描述的一个或以上附加操作,和/或不通过以下所讨论的一个或以上操作完成。另外,如图7所示的操作的顺序并非限制性的。Fig. 7 is an exemplary flowchart for determining whether the current stay duration is an abnormal stay duration according to some embodiments of the present application. In some embodiments, the process 700 may be executed by a processing device (for example, the processing device 110 shown in FIG. 1). For example, the process 700 may be stored in a storage device (for example, the storage device 130 or the storage unit of the processing device) in the form of a program or instruction. When the processor 210 or the module shown in FIG. 4 executes the program or instruction, the process may be implemented. 700. In some embodiments, the process 700 may be executed by the determining module 420. In some embodiments, the process 700 may utilize one or more additional operations not described below, and/or not be completed by one or more operations discussed below. In addition, the order of operations shown in FIG. 7 is not restrictive.
在一些实施例中,所述第一子识别模型可以是任意的基于异常值检测算法所构建的识别模型。例如,异常值检测算法可以包括基于聚类的方法、孤立森林、统计学方法、基于分布的杜凯法事后比较(Tukey Method)等。第一子识别模型可以确定所述当前停留时长相对于用于训练所述第一子识别模型的历史停留时长是否为异常值(outlier)。在一些实施例中,所述第一子识别模型包括基于分布的杜凯法事后比较模型。如图7所示,该方法具体步骤如下:In some embodiments, the first sub-recognition model may be any recognition model constructed based on an outlier detection algorithm. For example, the outlier detection algorithm may include clustering-based methods, isolated forests, statistical methods, distribution-based Tukey Method and so on. The first sub-recognition model can determine whether the current stay time is an outlier relative to the historical stay time used to train the first sub-recognition model. In some embodiments, the first sub-recognition model includes a Duke's post-comparison model based on distribution. As shown in Figure 7, the specific steps of the method are as follows:
步骤701,基于所述基于分布的杜凯法事后比较模型确定识别系数。Step 701: Determine the identification coefficient based on the distribution-based Dukai's post-comparison model.
基于分布的杜凯法事后比较模型可以基于训练该模型的数据集的四分位数以及用于表征异常程度的识别系数k,确定训练该模型的数据集中的最小异常估计值和最大异常估计值。超出最小异常估计值和最大异常估计值范围的数值即可能为异常值。其中用于表征异常程度的识别系数k越大,超出最小异常估计值和最大异常估计值范围的数值的异常程度越大,例如k=1.5时上述的异常程度为中度异常,k=3时上述的异常程度为极度异常。The distribution-based Dukai's post-comparison model can determine the minimum anomaly estimate and the maximum anomaly estimate in the data set for training the model based on the quartile of the data set for training the model and the identification coefficient k used to characterize the degree of anomaly . Values outside the range of the minimum anomaly estimated value and the maximum anomaly estimated value may be an outlier. The greater the identification coefficient k used to characterize the degree of abnormality, the greater the degree of abnormality of the value beyond the minimum and maximum estimated value of abnormality. For example, when k=1.5, the above-mentioned abnormality is moderately abnormal, and when k=3 The above-mentioned degree of abnormality is extremely abnormal.
在一些实施例中,所述识别系数k可以是预设确定的,例如,k=1.5、k=2、k=2.5、k=3等。在一些实施例中,识别系数k的可以通过第一子识别模型的训练过程确定。例如,采用训练前预先确定,训练过程中不断调整的方式确定。本申请对所述识别系数的确定方式不做具体限定。In some embodiments, the identification coefficient k may be predetermined and determined, for example, k=1.5, k=2, k=2.5, k=3, and so on. In some embodiments, the recognition coefficient k may be determined through the training process of the first sub-recognition model. For example, it is determined by pre-determining before training and continuously adjusting during training. This application does not specifically limit the determination method of the identification coefficient.
步骤703,基于所述识别系数确定至少一个最大异常估计值。Step 703: Determine at least one maximum abnormality estimated value based on the identification coefficient.
在一些实施例中,杜凯法事后比较模型可以获取训练该模型的样本数据的最大异常估计值。所述训练杜凯法事后比较模型的样本数据可以包括在相同车辆状态下的至少一个第一样本车辆的第一历史停留数据。所述相同车辆状态可以是指所述车辆处于相同的状态,或者说是所述服务提供者处于相同的状态。例如,假定所述车辆对应的服务提供者(例如,司机)处于服务状态(例如,接驾状态),则训练杜凯法事后比较模型的样本数据中,第一样本车辆对应的服务提供者(例如,司机)也处于服务状态(例如,接驾状态)。所述第一历史停留数据可以至少包括历史停留时长。若当前停留时长大于最大异常估计值,则确定所述当前停留时长为异常停留时长。作为示例,确定模块420可以将历史停留时长按照从小到大排序, 然后取排序中位于第25%的数据记为Q1,位于第50%的数据记为Q2,位于第75%的数据记为Q3,然后确定第一历史停留数据的最大异常估计值=Q3+k(Q3-Q1)。In some embodiments, the Dukai method can obtain the maximum abnormality estimate of the sample data used to train the model by comparing the model after the fact. The sample data of the training Dukai method post-comparison model may include first historical stay data of at least one first sample vehicle in the same vehicle state. The same vehicle state may mean that the vehicles are in the same state, or that the service providers are in the same state. For example, assuming that the service provider (for example, the driver) corresponding to the vehicle is in the service state (for example, the driving state), the service provider corresponding to the first sample vehicle in the sample data of the training Du Kaifa post-comparison model (For example, the driver) is also in the service state (for example, the driving state). The first historical stay data may at least include historical stay time. If the current stay duration is greater than the maximum abnormality estimated value, it is determined that the current stay duration is the abnormal stay duration. As an example, the determining module 420 may sort the historical stay time from smallest to largest, and then take the data located at the 25th percentile in the ranking as Q1, the data at the 50th percentile as Q2, and the data at the 75th percentile as Q3. , And then determine the maximum abnormality estimate of the first historical stay data=Q3+k(Q3-Q1).
在一些实施例中,所述训练杜凯法事后比较模型的样本数据可以包括第一子集和第二子集。第一子集可以包括所述车辆对应的服务提供者(例如,司机)与所述实时停留数据中所包括的服务提供者的状态相同状态下第一历史停留时长。第二子集包括训练杜凯法事后比较模型的样本数据中所有服务提供者(例如,司机)在处于与所述实时停留数据中所包括的服务提供者(例如,司机)的状态相同状态以及相同区域内的第二历史停留时长。在一些实施例中,通过第一子集,可以确定当前停留时长相对于所述车辆对应的服务提供者(例如,司机)在同样状态下的历史停留时长是否是异常值,可考虑到所述车辆对应的服务提供者(例如,司机)在同样状态下的个人习惯。通过第二子集,可以确定当前停留时长相对于所有服务提供者(例如,司机)在相同服务状态以及相同区域内的历史停留时长是否是异常值,可考虑到不同所述车辆对应的服务提供者(例如,司机)在相同服务状态以及相同区域内进行停留的一般状况。本申请在考虑所述车辆对应的服务提供者(例如,司机)服务状态维度的同时,兼顾了所述车辆对应的服务提供者(例如,司机)的个人习惯以及当前停留位置所属区域的状况,可以更加准确的确定当前停留时长是否为异常停留时长。在一些实施例中,上述描述中的区域采用经纬度的geohash中的geo6区域(6位编码单位网格,覆盖面积约0.73平方千米)。In some embodiments, the sample data for training the Dukai method post-comparison model may include a first subset and a second subset. The first subset may include the first historical stay duration in the same state of the service provider (for example, driver) corresponding to the vehicle and the service provider included in the real-time stay data. The second subset includes that all service providers (for example, drivers) in the sample data for training the Du Kaifa post-comparison model are in the same state as the status of the service providers (for example, drivers) included in the real-time stay data, and The second historical stay in the same area. In some embodiments, through the first subset, it can be determined whether the current stay time is an abnormal value relative to the historical stay time of the service provider (for example, the driver) corresponding to the vehicle in the same state. The personal habits of the service provider (for example, the driver) corresponding to the vehicle in the same state. Through the second subset, it can be determined whether the current stay time is an abnormal value relative to the historical stay time of all service providers (for example, drivers) in the same service state and in the same area, and the service provision corresponding to different vehicles can be considered. The general condition of a person (for example, a driver) staying in the same service state and in the same area. This application considers the service status dimension of the service provider (for example, the driver) corresponding to the vehicle, and takes into account the personal habits of the service provider (for example, the driver) corresponding to the vehicle and the status of the area where the current location belongs. It can be more accurately determined whether the current stay duration is abnormal stay duration. In some embodiments, the area in the above description adopts the geo6 area in the geohash of latitude and longitude (a 6-bit coding unit grid, covering an area of about 0.73 square kilometers).
类似地,基于所述识别系数,确定模块420可以获取第一子集的第一最大异常估计值、以及第二子集的第二最大异常估计值。Similarly, based on the identification coefficient, the determining module 420 may obtain the first maximum abnormality estimation value of the first subset and the second maximum abnormality estimation value of the second subset.
在一些实施例中,针对所述车辆对应的服务提供者(例如,司机)所处的状态的不同,可以有不同的最大异常估计值。例如,针对所述车辆对应的服务提供者(例如,司机)处于服务状态,和非服务状态,可以分别有最大异常估计值与之对应。In some embodiments, there may be different maximum abnormality estimates for different states of service providers (for example, drivers) corresponding to the vehicles. For example, for the service provider (for example, the driver) corresponding to the vehicle in the service state and the non-service state, the maximum abnormality estimated value may correspond to it respectively.
步骤705,确定当前停留时间是否大于至少一个最大异常估计值中的至少一个。Step 705: Determine whether the current stay time is greater than at least one of the at least one maximum abnormality estimation value.
在一些实施例中,所述至少一个最大异常估计值可以包括第一历史停留数据的最大异常估计值,第一子集的第一最大异常估计值、以及第二子集的第二最大异常估计值。确定模块420可以将所述当前停留时间与所述至少一个最大异常估计值中的每一个进行比较,以确定所述当前停留时间与所述至少一个最大异常估计值中的每一个之间的大小关系。In some embodiments, the at least one maximum abnormality estimate may include the maximum abnormality estimate of the first historical stay data, the first maximum abnormality estimate of the first subset, and the second maximum abnormality estimate of the second subset value. The determining module 420 may compare the current stay time with each of the at least one maximum abnormality estimated value to determine the magnitude between the current stay time and each of the at least one maximum abnormality estimated value relationship.
步骤707,响应于所述当前停留时间大于所述至少一个最大异常估计值中的至少一个,确定当前停留时长为异常停留时长。Step 707: In response to the current stay time being greater than at least one of the at least one maximum abnormality estimation value, it is determined that the current stay time length is the abnormal stay time length.
在一些实施例中,若当前停留时长大于所述至少一个最大异常估计值中的至少一个,确定模块420可以确定当前停留时长为异常停留时长。In some embodiments, if the current stay duration is greater than at least one of the at least one maximum abnormality estimation value, the determining module 420 may determine that the current stay duration is the abnormal stay duration.
在本申请的另一些实施例中,可以将所述当前停留时长以及所述第一历史数据集合输入到第一模型中,判断所述当前停留时长相对于所述第一历史数据集合是否为异常停留时长。第一模型可以基于第一历史数据集合初步判断当前停留时长是否为异常停留时长,也即判断当前停留时长相对于第一历史数据集合是否为可能的异常值(outlier),其中第一模型可以为现有的任意异常值检测方法,例如基于聚类的方法、孤立森林、统计学方法、基于分布的Tukey Method方法等。In other embodiments of the present application, the current stay time length and the first historical data set may be input into a first model to determine whether the current stay time length is abnormal relative to the first historical data set Length of stay. The first model may preliminarily determine whether the current stay time is an abnormal stay time based on the first historical data set, that is, determine whether the current stay time is a possible outlier relative to the first historical data set, where the first model may be Existing arbitrary outlier detection methods, such as clustering-based methods, isolated forests, statistical methods, and distribution-based Tukey Method methods.
在一种可选实施例中,第一模型为基于分布的Tukey Method模型,该模型通常可以基于数据集的四分位数以及用于表征异常程度的系数k,可计算出数据集中的最小估计值和最大估计值,超出最小估计值和最大估计值范围的数值即可能为异常值,其中用于表征异常程度的系数k越大,超出最小估计值和最大估计值范围的数值的异常程度越大,例如k=1.5时上述的异常程度为中度异常,k=3时上述的异常程度为极度异常。本实施例中的Tukey Method模型可仅获取第一历史数据集合的最大估计值,若当前停留时长大于最大估计值,则确定所述当前停留时长为异常停留时长。具体的,可将第一历史数据集合中的数据按照数据从小到大排序,然后取排序中位于第25%的数据记为Q1,位于第50%的数据记为Q2,位于第75%的数据记为Q3,然后计算第一历史数据集合的最大估计值=Q3+k(Q3-Q1)。其中用于表征异常程度的系数k采用预设系数,具体取值可预先通过训练过程确定。In an optional embodiment, the first model is a distribution-based Tukey Method model, which usually can be based on the quartile of the data set and the coefficient k used to characterize the degree of abnormality, and the minimum estimate in the data set can be calculated Value and maximum estimated value, the value beyond the minimum estimated value and maximum estimated value range may be an outlier. The larger the coefficient k used to characterize the degree of abnormality, the greater the abnormal degree of the value beyond the range of the minimum estimated value and the maximum estimated value. For example, when k=1.5, the above-mentioned abnormality degree is moderately abnormal, and when k=3, the above-mentioned abnormality degree is extremely abnormal. The Tukey Method model in this embodiment can only obtain the maximum estimated value of the first historical data set, and if the current stay duration is greater than the maximum estimated value, it is determined that the current stay duration is the abnormal stay duration. Specifically, the data in the first historical data set can be sorted from small to large, and then the data located at the 25th percentile in the sorting is recorded as Q1, the data located at the 50th percentile is recorded as Q2, and the data located at the 75th percentile is recorded as Q1. Mark it as Q3, and then calculate the maximum estimated value of the first historical data set=Q3+k(Q3-Q1). The coefficient k used to characterize the degree of abnormality adopts a preset coefficient, and the specific value can be determined in advance through the training process.
进一步的,所述第一历史数据集合包括第一子集和第二子集;所述第一子集包括当前司机在与所述实时数据相同服务状态下历史停留时长;所述第二子集包括所述数据库中所有司机在与所述实时数据相同服务状态以及相同区域内的历史停留时长;进一步的,所述的判断所述当前停留时长相对于所述第一历史数据集合是否为异常停留时长,具体包括:Further, the first historical data set includes a first subset and a second subset; the first subset includes the historical stay time of the current driver in the same service state as the real-time data; the second subset Including the historical stay time of all drivers in the database in the same service state and the same area as the real-time data; further, the judging whether the current stay time is abnormal stay relative to the first historical data set Duration, including:
通过所述Tukey Method模型以所述预设系数获取所述第一子集的第一最大估计值、以及所述第二子集的第二最大估计值;Obtaining the first maximum estimated value of the first subset and the second maximum estimated value of the second subset using the preset coefficient through the Tukey Method model;
若所述当前停留时长大于所述第一最大估计值或所述第二最大估计值,则确定所述当前停留时长为异常停留时长。If the current stay duration is greater than the first maximum estimated value or the second maximum estimated value, it is determined that the current stay duration is an abnormal stay duration.
在实施例中,通过第一子集,可以判断当前停留时长相对于当前司机在同样状态下的历史停留时长是否是异常值,可考虑到当前司机在同样状态下的个人习惯;通过第二子集,可以判断当前停留时长相对于所有司机在相同服务状态以及相同区域内的历史停留时长是否是异常值,可考虑到不同司机在相同服务状态以及相同区域内进行停留的通常状况。本实施例在考虑司机服务状态维度的同时,兼顾了当前司机的个人习惯以及当前停留位置所属区域的状况,可以更加准确的判断当前停留时长是否为异常停留时长。可选的,本实施例中当前停留位置所属区域采用经纬度的geohash中的geo6区域(6位编码单位网格,覆盖面积约 0.73平方千米)。In the embodiment, through the first subset, it can be judged whether the current stay time is an abnormal value relative to the historical stay time of the current driver in the same state, and the personal habits of the current driver in the same state can be considered; through the second sub-set Set, it can be judged whether the current stay time is an abnormal value relative to the historical stay time of all drivers in the same service state and the same area. It can take into account the normal situation of different drivers staying in the same service state and the same area. In this embodiment, while considering the dimension of the driver's service status, it also takes into account the current driver's personal habits and the conditions of the area to which the current stay location belongs, and can more accurately determine whether the current stay duration is an abnormal stay duration. Optionally, the area to which the current staying location belongs in this embodiment adopts the geo6 area in the geohash of latitude and longitude (a 6-bit coding unit grid, covering an area of about 0.73 square kilometers).
应当注意的是,上述有关流程700的描述仅仅是为了示例和说明,而不限定本申请的适用范围。对于本领域技术人员来说,在本申请的指导下可以对流程700进行各种修正和改变。然而,这些修正和改变仍在本申请的范围之内。It should be noted that the foregoing description of the process 700 is only for example and description, and does not limit the scope of application of the present application. For those skilled in the art, various modifications and changes can be made to the process 700 under the guidance of this application. However, these amendments and changes are still within the scope of this application.
图8是根据本申请一些实施例所示的确定当前车辆停留相关的特征信息是否满足停留规则的示例性流程图。在一些实施例中,流程800可以由处理设备(例如,图1所示的处理设备110)执行。例如,流程800可以以程序或指令的形式存储在存储设备(例如,存储设备130或处理设备的存储单元)中,当处理器210或图4所示的模块执行程序或指令时,可以实现流程800。在一些实施例中,流程800可以由确定模块420执行。在一些实施例中,流程800可以利用以下未描述的一个或以上附加操作,和/或不通过以下所讨论的一个或以上操作完成。另外,如图8所示的操作的顺序并非限制性的。Fig. 8 is an exemplary flowchart for determining whether the characteristic information related to the current vehicle stay meets the stay rule according to some embodiments of the present application. In some embodiments, the process 800 may be executed by a processing device (for example, the processing device 110 shown in FIG. 1). For example, the process 800 may be stored in a storage device (for example, the storage device 130 or the storage unit of the processing device) in the form of a program or instruction. When the processor 210 or the module shown in FIG. 4 executes the program or instruction, the process may be implemented. 800. In some embodiments, the process 800 may be executed by the determining module 420. In some embodiments, the process 800 may utilize one or more additional operations not described below, and/or not be completed by one or more operations discussed below. In addition, the order of operations shown in FIG. 8 is not restrictive.
步骤801,基于第二子识别模型确定所述停留规则。Step 801: Determine the stay rule based on the second sub-recognition model.
在一些实施例中,所述第二子识别模型可以包括基于统计的规则模型。可以知道的是,虽然所述当前停留时长被确定为异常停留时长,但也存在该停留不属于异常停留行为的情况。例如车辆在完成服务后例如到达目的地后,服务请求者例如乘客在车上进行付款或给予司机好评例如使用终端120上安装的打车软件进行支付或评分,或者服务请求者例如乘客有特殊要求/需求(例如,等待孩子放学),或者服务提供者例如司机对服务请求者例如乘客主动好评,或者车辆的当前停留位置为一些服务请求热点区域或交通拥堵区域。也就是说,在出现上述情况时,即使所述当前停留时长被确定为异常停留时长,但车辆发生异常停留行为的概率很低。因此,确定模块420通过第二子识别模型进行判定,以减少后续计算资源的消耗。在一些实施例中,所述停留规则可以基于第二子识别模型预设的训练来确定。例如,通过对多个车辆的历史停留数据进行统计分析以获取停留规则。In some embodiments, the second sub-recognition model may include a rule model based on statistics. It can be known that although the current stay duration is determined to be the abnormal stay duration, there are also cases where the stay does not belong to the abnormal stay behavior. For example, after the vehicle completes the service, for example, after arriving at the destination, the service requester, such as the passenger, pays in the vehicle or gives the driver a favorable comment, such as using the taxi software installed on the terminal 120 to pay or score, or the service requester, such as the passenger, has special requirements/ Demand (for example, waiting for children to leave school), or service providers such as drivers actively praise service requesters such as passengers, or the current location of the vehicle is some service request hot spot area or traffic jam area. That is to say, when the above situation occurs, even if the current stay duration is determined as the abnormal stay duration, the probability of the abnormal stay behavior of the vehicle is very low. Therefore, the determination module 420 makes a determination through the second sub-recognition model to reduce subsequent consumption of computing resources. In some embodiments, the stay rule may be determined based on training preset by the second sub-recognition model. For example, by statistically analyzing the historical stay data of multiple vehicles to obtain stay rules.
步骤803,确定车辆停留相关的特征信息是否满足停留规则。Step 803: Determine whether the characteristic information related to the stay of the vehicle satisfies the stay rule.
在一些实施例中,所述车辆停留相关的特征信息可以至少包括与所述车辆相关的人员的行为和所述车辆的当前停留位置。与所述车辆相关的人员的行为可以包括服务请求者和/或服务提供者的行为。所述服务请求者的行为可以包括服务请求者(例如,请求打车服务的乘客)的支付行为、评价行为、冲突行为等。所述服务提供者的行为可以包括服务提供者(例如,提供打车服务的司机)的评价行为、服务行为、冲突行为等。确定模块420可以确定所述与所述车辆的相关的人员的行为是否为正常行为,和/或确定所述当前停留位置是否处于热点区域。所述正常行为可以包括支付行为(例如,主动支付)、评价行为(例如,主动好评)等。非正常行为可以包括冲突行为(例如,司乘冲突)等。所述热点区域可以包括服务请求 发送热点区域和/或交通拥堵区域。若确定模块420确定上述至少一项的判定结果为是,则可以确定当前车辆停留相关的特征信息满足第二模型预设的停留规则,从而确定车辆当前未出现异常停留行为。若上述判断结果均为否,则确定当前车辆停留相关的特征信息不满足第二模型预设的停留规则,可由第三子识别模型进行下一步的判定。In some embodiments, the characteristic information related to the stay of the vehicle may include at least the behavior of the personnel related to the vehicle and the current stay position of the vehicle. The behavior of the personnel related to the vehicle may include the behavior of the service requester and/or the service provider. The behavior of the service requester may include payment behavior, evaluation behavior, conflict behavior, etc. of the service requester (for example, a passenger requesting a taxi service). The behavior of the service provider may include the evaluation behavior, service behavior, conflict behavior, etc. of the service provider (for example, a driver who provides a taxi service). The determining module 420 may determine whether the behavior of the person related to the vehicle is a normal behavior, and/or determine whether the current stay location is in a hot spot area. The normal behavior may include payment behavior (for example, active payment), evaluation behavior (for example, active praise), and the like. Abnormal behavior may include conflict behavior (for example, driver and passenger conflict) and the like. The hot spot area may include a service request sending hot spot area and/or a traffic jam area. If the determination module 420 determines that the determination result of at least one of the above items is yes, it can be determined that the characteristic information related to the current vehicle stay meets the stay rules preset by the second model, so as to determine that the vehicle currently does not exhibit abnormal stay behavior. If the above judgment results are all no, it is determined that the characteristic information related to the current vehicle stay does not meet the stay rules preset by the second model, and the third sub-recognition model can make the next determination.
应当注意的是,上述有关流程800的描述仅仅是为了示例和说明,而不限定本申请的适用范围。对于本领域技术人员来说,在本申请的指导下可以对流程800进行各种修正和改变。然而,这些修正和改变仍在本申请的范围之内。It should be noted that the foregoing description of the process 800 is only for example and description, and does not limit the scope of application of the present application. For those skilled in the art, various modifications and changes can be made to the process 800 under the guidance of this application. However, these amendments and changes are still within the scope of this application.
图9是根据本申请一些实施例所示的识别模型的训练方法的示例性流程图。在一些实施例中,流程900可以由处理设备(例如,图1所示的处理设备110)执行。例如,流程900可以以程序或指令的形式存储在存储设备(例如,存储设备130或处理设备的存储单元)中,当处理器210或图4所示的模块执行程序或指令时,可以实现流程900。在一些实施例中,流程900可以由训练模块430执行。在一些实施例中,流程900可以利用以下未描述的一个或以上附加操作,和/或不通过以下所讨论的一个或以上操作完成。另外,如图9所示的操作的顺序并非限制性的。Fig. 9 is an exemplary flowchart of a method for training a recognition model according to some embodiments of the present application. In some embodiments, the process 900 may be executed by a processing device (for example, the processing device 110 shown in FIG. 1). For example, the process 900 may be stored in a storage device (for example, the storage device 130 or a storage unit of a processing device) in the form of a program or instruction. When the processor 210 or the module shown in FIG. 4 executes the program or instruction, the process may be implemented. 900. In some embodiments, the process 900 may be executed by the training module 430. In some embodiments, the process 900 may utilize one or more additional operations not described below, and/or not be completed by one or more operations discussed below. In addition, the order of operations shown in FIG. 9 is not restrictive.
步骤901,获取多个训练样本。Step 901: Obtain multiple training samples.
多个训练样本包括在相同车辆状态下的至少一个第一样本车辆的第一历史停留数据,以及处于相同时间段和相同区域内的至少一个第二样本车辆的第二历史停留数据。The multiple training samples include first historical stay data of at least one first sample vehicle in the same vehicle state, and second historical stay data of at least one second sample vehicle in the same time period and in the same area.
在一些实施例中,所述多个训练样本包括属于异常停留行为的正样本和不属于异常停留行为的负样本。其中,正样本可以包括在不同场景下车辆发生异常停留行为时的数据。例如,仅在服务状态下发生异常停留(例如,打车服务中司机在乘客上车后或乘客即将下车后与乘客发生冲突,未结束服务订单),仅在非服务状态下发生异常停留(例如,打车服务中司机在行驶过程中结束服务订单、在非服务状态停留,与乘客发生冲突),在服务状态和非服务状态下发生异常停留(例如,打车服务中司机在服务中停留,结束订单,并开始与乘客发生冲突)。与乘客发生冲突可包括:与车辆相关的情况(如乘客损坏车辆、弄脏车辆),与费用相关的情况(如乘客对服务费用有异议),与司机安全相关的情况(如乘客辱骂或殴打司机),与交通事故相关的情况(如急刹车造成乘客受伤,或其他交通事故造成乘客受伤)。负样本则可以包括车辆长时间停留但不属于异常停留行为的数据、以及车辆未长时间停留的数据。其中,正样本和负样本中具体包括车辆相关的位置信息、时间信息、与车辆相关的人员的状态信息和交互信息等。In some embodiments, the multiple training samples include positive samples belonging to abnormal staying behaviors and negative samples not belonging to abnormal staying behaviors. Among them, the positive samples may include data when the vehicle has abnormal stopping behaviors in different scenarios. For example, abnormal stop only occurs in the service state (for example, the driver conflicts with the passenger after the passenger gets on the bus or the passenger is about to get off in the taxi service, and the service order is not ended), and the abnormal stop only occurs in the non-service state (for example, In the taxi service, the driver ends the service order during the driving process, stays in the non-service state, and conflicts with the passenger), and stops abnormally in the service state and the non-service state (for example, the driver stays in the service in the taxi service and ends the order , And began to clash with passengers). Conflicts with passengers can include: vehicle-related situations (such as passengers damaging the vehicle, dirtying the vehicle), cost-related situations (such as passengers disagreeing with service fees), and driver safety-related situations (such as passenger abuse or assault) Drivers), situations related to traffic accidents (such as sudden brakes causing injury to passengers, or other traffic accidents causing injury to passengers). Negative samples can include data where the vehicle has stayed for a long time but does not belong to abnormal parking behavior, and data where the vehicle has not stayed for a long time. Among them, the positive sample and the negative sample specifically include vehicle-related location information, time information, status information and interaction information of personnel related to the vehicle, and so on.
在一些实施例中,每一个训练样本包括车辆的历史停留时长、服务提供者的状态(如接驾状态、到达状态、服务状态)或非服务状态(如听单状态、收车状态)以及当前车辆停 留相关的特征信息。所述与车辆停留相关的特征信息可以包括当前停留位置以及与所述车辆相关的人员的行为。其中,与所述车辆相关的人员的行为可以包括服务请求者(例如,请求打车服务的乘客)的支付行为、评价行为等。In some embodiments, each training sample includes the historical stay time of the vehicle, the status of the service provider (such as driving status, arrival status, service status) or non-service status (such as order status, receiving status), and current Feature information related to vehicle stays. The characteristic information related to the stay of the vehicle may include the current stay position and the behavior of the personnel related to the vehicle. Wherein, the behavior of the personnel related to the vehicle may include the payment behavior and evaluation behavior of the service requester (for example, the passenger requesting a taxi service).
在一些实施例中,多个训练样本包括在相同车辆状态下的至少一个第一样本车辆的第一历史停留数据,以及处于相同时间段和相同区域内的至少一个第二样本车辆的第二历史停留数据。多个训练样本包括在相同车辆状态下的至少一个第一样本车辆的第一历史停留数据,以及处于相同时间段和相同区域内的至少一个第二样本车辆的第二历史停留数据。In some embodiments, the multiple training samples include the first historical stay data of at least one first sample vehicle in the same vehicle state, and the second historical stay data of at least one second sample vehicle in the same time period and in the same area. Historical stay data. The multiple training samples include first historical stay data of at least one first sample vehicle in the same vehicle state, and second historical stay data of at least one second sample vehicle in the same time period and in the same area.
在一些实施例中,数据库(例如,存储设备130或处理设备的存储单元)中存储有执行过运输服务的所有车辆的历史数据。为了识别车辆是否出现异常停留行为,可从数据库中获取多个维度的历史数据,从而从多个维度进行识别异常停留,提高准确率和召回率。第一历史停留数据主要考虑车辆对应的服务提供者的状态的维度,而第二历史停留数据主要考虑时间和空间的维度。此外,第一历史停留数据和第二历史停留数据可以从数据库中某一段时间内(例如近一个月内)的一个或多个服务提供者(如满足某些要求的司机或所有司机)历史数据的范围内中获取对应的历史停留数据。In some embodiments, the database (for example, the storage device 130 or the storage unit of the processing device) stores historical data of all vehicles that have performed transportation services. In order to identify whether the vehicle has abnormal staying behavior, multiple dimensions of historical data can be obtained from the database, so as to identify abnormal stays from multiple dimensions, and improve the accuracy and recall rate. The first historical stay data mainly considers the dimensions of the state of the service provider corresponding to the vehicle, while the second historical stay data mainly considers the dimensions of time and space. In addition, the first historical stay data and the second historical stay data may be from the historical data of one or more service providers (such as drivers who meet certain requirements or all drivers) within a certain period of time (for example, within a month) in the database Obtain the corresponding historical stay data within the range of.
在本申请的一些实施例中,可以从数据库获取训练数据集合,所述训练数据包括属于异常停留行为的正例训练数据和不属于异常停留行为的负例训练数据。为了对上述的预设模型进行训练,可以从数据库获取训练数据集合,其中正例训练数据可以包括在不同场景下网约车发生异常停留行为的数据,例如,仅在服务状态下发生异常停留(司机在乘客上车后或乘客即将下车后与乘客发生冲突,未结束订单),仅在非服务状态下发生异常停留(司机在行驶过程中结束订单、在非服务状态停留,与乘客发生冲突),在服务状态和非服务状态下发生异常停留(司机在服务中停留,结束订单,并开始与乘客发生冲突),具体的,与乘客发生冲突可包括:与车辆相关的情况(如乘客损坏车辆、弄脏车辆),与费用相关的情况(如乘客对费用有异议),与司机安全相关的情况(如乘客辱骂或殴打司机),与交通事故相关的情况(如急刹车造成乘客受伤,或其他交通事故造成乘客受伤)。负例训练数据则可以包括网约车长时间停留但不属于异常停留行为的数据、以及网约车未长时间停留的数据。其中,正例训练数据和负例训练数据中具体包括网约车相关的位置信息、时间信息、司机及乘客的一些状态信息和交互信息等。In some embodiments of the present application, a training data set may be obtained from a database, and the training data includes positive training data belonging to abnormal staying behaviors and negative training data not belonging to abnormal staying behaviors. In order to train the above-mentioned preset model, a training data set can be obtained from the database, where the positive training data can include data on abnormal staying behaviors of online ride-hailing in different scenarios, for example, abnormal staying only in the service state ( The driver conflicted with the passenger after the passenger got on the bus or the passenger was about to get off the bus, and did not end the order), and only stopped abnormally in the non-service state (the driver ended the order while driving, stayed in the non-service state, and conflicted with the passenger ), abnormal stays occur in service status and non-service status (the driver stays in service, ends the order, and begins to conflict with passengers). Specifically, conflicts with passengers can include: vehicle-related situations (such as passenger damage Vehicles, dirty vehicles), expenses-related circumstances (such as passengers disagreeing with the fees), driver safety-related circumstances (such as passengers verbally or assaulting the driver), traffic accident-related circumstances (such as sudden braking and injury to passengers, Or other traffic accidents caused passengers to be injured). Negative training data may include data that has been staying for a long time in online car-hailing but does not belong to abnormal staying behavior, and data that has not stayed for a long time in online car-hailing. Among them, the positive training data and negative training data specifically include location information, time information, some status information and interaction information of the driver and passengers related to the online car-hailing.
在本申请的一些实施例中,对于每一训练数据,可以提取所述训练数据的停留位置、停留时长、司机服务状态以及预定特征信息。对于上述每一训练数据,提取训练数据的停留位置、停留时长、司机服务状态(如接驾状态、到达状态、服务状态)或处于非服务状态(如听单状态、收车状态)以及预定特征信息(包括但不限于乘客的支付行为、乘客对司机的评 价、是否处于发单热点区域中至少一个),具体过程可参见上述图5中501的过程。In some embodiments of the present application, for each training data, the stay location, stay duration, driver service status, and predetermined feature information of the training data can be extracted. For each of the above training data, extract the training data's staying location, staying time, driver service status (such as driving status, arrival status, service status) or non-service status (such as order status, receiving status) and predetermined characteristics Information (including but not limited to at least one of the passenger's payment behavior, the passenger's evaluation of the driver, and whether it is in the billing hotspot area). For the specific process, please refer to the process of 501 in FIG. 5 above.
在本申请的一些实施例中,可以从所述数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述训练数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述训练数据相同时间段以及相同区域内的历史停留时长。对于每一训练数据获取第一历史数据集合和第二历史数据集合,其中获取第一历史数据集合和第二历史数据集合可参见上述图5中503的过程,此处不再赘述。In some embodiments of the present application, the first historical data set and the second historical data set may be obtained from the database; the first historical data set includes at least one driver in the same service state as the training data Historical stay time, the second historical data set includes the historical stay time of at least one driver in the same time period and in the same area as the training data. For each training data, the first historical data set and the second historical data set are obtained. For obtaining the first historical data set and the second historical data set, please refer to the process of 503 in FIG. 5, which will not be repeated here.
步骤903,基于第一历史停留数据训练第一初始子识别模型以获取第一子识别模型,以及第一子识别模型相关的识别参数。Step 903: Train a first initial sub-recognition model based on the first historical stay data to obtain a first sub-recognition model and recognition parameters related to the first sub-recognition model.
在一些实施例中,所述第一初始子识别模型可以是任意的基于异常值检测算法所构建的识别模型。例如,异常值检测算法可以包括基于聚类的方法、孤立森林、统计学方法、基于分布的杜凯法事后比较(Tukey Method)等。训练模块430可以利用所述第一历史停留数据,训练所述第一子识别模型的同时确定所述识别参数。作为示例,假定所述第一子识别模型为基于分布的杜凯法事后比较模型,训练模块430可以在训练前设定一个初始识别参数,在训练过程中通过对比针对每个训练样本的预测结果(例如,是否为异常停留)以及训练样本对应的车辆发生停留时的实际情况,调整初始识别参数,和/或第一初始子识别模型的模型参数。直至模型训练完毕。In some embodiments, the first initial sub-recognition model may be any recognition model constructed based on an outlier detection algorithm. For example, the outlier detection algorithm may include clustering-based methods, isolated forests, statistical methods, distribution-based Tukey Method and so on. The training module 430 may use the first historical stay data to train the first sub-recognition model while determining the recognition parameters. As an example, assuming that the first sub-recognition model is a distribution-based Dukai's post-comparison model, the training module 430 can set an initial recognition parameter before training, and compare the prediction results for each training sample during the training process. (For example, whether it is an abnormal stay) and the actual situation when the vehicle corresponding to the training sample stays, adjust the initial recognition parameters and/or the model parameters of the first initial sub-recognition model. Until the model is trained.
步骤905,基于第一历史停留数据以及所述第二历史停留数据训练第二初始子识别模型以获取第二子识别模型,以及第二子识别模型相关的停留规则。Step 905: Train a second initial sub-recognition model based on the first historical stay data and the second historical stay data to obtain a second sub-recognition model and stay rules related to the second sub-recognition model.
在一些实施例中,所述第二初始子识别模型可以包括基于统计的规则模型。训练模块430可以对所述训练样本进行统计分析,以构建所述第二初始子模型。例如,对样本中所包含的历史停留时长属于异常停留时长但又是负样本的训练样本进行分析,以确定一个或以上的预设规则。随后,可以通过对预设规则的不断地调试和/或更改,得到最终的停留规则。同时,可以获取训练完毕的第二子识别模型。In some embodiments, the second initial sub-recognition model may include a rule model based on statistics. The training module 430 may perform statistical analysis on the training samples to construct the second initial sub-model. For example, the training samples whose historical stay duration included in the sample belong to the abnormal stay duration but are negative samples are analyzed to determine one or more preset rules. Subsequently, the final stay rule can be obtained through continuous debugging and/or modification of the preset rule. At the same time, the trained second sub-recognition model can be obtained.
步骤907,基于第二历史停留数据训练第三初始子识别模型以获取第三子识别模型,以及第三子识别模型相关的异常停留阈值。Step 907: Train a third initial sub-recognition model based on the second historical stay data to obtain a third sub-recognition model and an abnormal stay threshold related to the third sub-recognition model.
在一些实施例中,第三初始子识别模型可以为任何可以确定离群值的模型,例如,Robust Random Cut Forest、IsolationForest、EllipticEnvelope、OneClassSVM、高斯异常点检测等。在一些实施例中,所述第三子识别模型可以包括为基于密度的局部异常因子模型(Local Outlier Factor,LOF模型)。训练模块430可以利用第二历史停留数据训练第三初始子识别模型,例如,不断调整用于评价局部异常因子(LOF值)的异常停留阈值,以得到所述第三子识别模型,以及最终的异常停留阈值。In some embodiments, the third initial sub-recognition model can be any model that can determine outliers, for example, Robust Random Cut Forest, Isolation Forest, Elliptic Envelope, OneClassSVM, Gaussian outlier detection, and so on. In some embodiments, the third sub-recognition model may include a density-based local outlier factor model (Local Outlier Factor, LOF model). The training module 430 may use the second historical stay data to train the third initial sub-recognition model, for example, continuously adjust the abnormal stay threshold used to evaluate the local abnormality factor (LOF value) to obtain the third sub-recognition model, and the final Abnormal stay threshold.
车辆的异常停留行为识别模型训练方法的执行主体可以与车辆的异常停留行为识别方法的执行主体相同,当然也可不同。The execution subject of the vehicle's abnormal stay behavior recognition model training method can be the same as the execution subject of the vehicle's abnormal stay behavior recognition method, of course, it can also be different.
在本申请的一些实施例中,可以根据所述训练数据集合、每一训练数据对应的所述第一历史数据集合和所述第二历史数据集合,对预设模型进行训练,以使预设模型输出的异常停留行为判断结果的准确率和/或召回率达到目标值。In some embodiments of the present application, a preset model may be trained based on the training data set, the first historical data set and the second historical data set corresponding to each training data, so that the preset model The accuracy and/or recall rate of the abnormal stay behavior judgment result output by the model reaches the target value.
在实施例中,根据训练数据集合中每一训练数据,以及该训练数据对应的第一历史数据集合和第二历史数据集合,对预设模型进行训练,在训练过程中,将每一训练数据,以及该训练数据对应的第一历史数据集合和第二历史数据集合输入到预设模型中,进行同上述图6-图8的过程,通过调试预设模型的相关参数,实现预设模型输出的异常停留行为判断结果的准确率和/或召回率达到目标值。In the embodiment, according to each training data in the training data set, and the first historical data set and the second historical data set corresponding to the training data, the preset model is trained. During the training process, each training data , And the first historical data set and the second historical data set corresponding to the training data are input into the preset model, and the process is the same as that in Figure 6 to Figure 8, and the preset model output is realized by debugging the relevant parameters of the preset model The accuracy and/or recall rate of the judgment result of abnormal stay behavior reached the target value.
更具体的,预设模型为融合模型,可包括第一模型、第二模型和第三模型,从不同的维度逐步判断所述网约车当前是否出现异常停留行为,S304所述的根据所述训练数据集合、每一训练数据对应的所述第一历史数据集合和所述第二历史数据集合,对预设模型进行训练,可包括:More specifically, the preset model is a fusion model, which may include a first model, a second model, and a third model. It is gradually determined from different dimensions whether the online car-hailing is currently exhibiting abnormal staying behavior. The step S304 is based on the The training data set, the first historical data set and the second historical data set corresponding to each training data, and the training of the preset model may include:
对于每一训练数据,将所述停留时长以及所述第一历史数据集合输入到第一模型中进行训练,确定所述第一模型的预设系数;For each training data, input the stay duration and the first historical data set into a first model for training, and determine the preset coefficients of the first model;
将所述预定特征信息输入第二模型中进行训练,确定所述第二模型的预设规则;Inputting the predetermined feature information into a second model for training, and determining a preset rule of the second model;
将所述停留时长以及所述第二历史数据集合输入到第三模型中进行训练,确定离群程度因子的预设阈值。The staying time and the second historical data set are input into a third model for training, and a preset threshold value of the outlier degree factor is determined.
在本实施例中,对于第一模型、第二模型和第三模型的训练过程与上述的图6和图7的过程相似,通过多次调试各模型中的相关参数,实现输出的异常停留行为判断结果的准确率和/或召回率达到目标值。例如若第一模型为基于分布的Tukey Method模型需要多次调试用于表征异常程度的系数;再如第二模型为基于统计的规则模型,可预先设定一些规则,然后调试各规则的相关阈值;再如第三模型为基于密度的LOF模型,需要多次调试用于评价离群程度因子LOF值大小的预设阈值;再如若第二数据集中样本数不少预设数量时不进行LOF模型的计算,直接确定所述网约车当前出现异常停留行为,其中预设数量的相关参数也需要多次调试。In this embodiment, the training process for the first model, the second model, and the third model is similar to the process of Fig. 6 and Fig. 7, and the abnormal stay behavior of the output is realized by repeatedly debugging the relevant parameters in each model. The accuracy and/or recall rate of the judgment result reaches the target value. For example, if the first model is a distribution-based Tukey Method model, the coefficients used to characterize the degree of abnormality need to be debugged multiple times; if the second model is a statistically-based rule model, some rules can be set in advance, and then the relevant thresholds of each rule can be debugged ; If the third model is a density-based LOF model, the preset threshold for evaluating the LOF value of the outlier degree factor needs to be debugged multiple times; if the second data set has a large number of samples, the LOF model is not performed The calculation directly determines that the online car-hailing is currently abnormally staying, and the preset number of related parameters also need to be debugged multiple times.
本实施例的网约车的异常停留行为识别模型训练方法的执行主体可以与网约车的异常停留行为识别方法的执行主体相同,当然也可不同。The execution subject of the method for identifying abnormal staying behavior recognition model for online car-hailing in this embodiment may be the same as the execution subject of the method for identifying abnormal staying behavior for online car-hailing, of course, it may also be different.
本实施例提供的网约车的异常停留行为识别模型训练方法,通过从数据库获取训练数据集合,所述训练数据包括属于异常停留行为的正例训练数据和不属于异常停留行为的负例 训练数据;对于每一训练数据,提取所述训练数据的停留位置、停留时长、司机服务状态以及预定特征信息;从所述数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述训练数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述训练数据相同时间段以及相同区域内的历史停留时长;根据所述训练数据集合、每一训练数据对应的所述第一历史数据集合和所述第二历史数据集合,对预设模型进行训练,以使预设模型输出的异常停留行为判断结果的准确率和/或召回率达到目标值。通过多对网约车的异常停留行为识别模型的训练,可得到网约车的异常停留行为识别模型,从而能够利用海量网约车出行的历史数据以及该模型,考虑到停留时长、位置、服务状态等多维度的特征信息,可实时、准确的识别网约车当前是否出现异常停留行为,提高网约车平台的安全感知能力和对交通事故、司机乘客冲突的识别能力,保障司机和乘客的安全。The method for training an abnormal staying behavior recognition model for online car-hailing provided in this embodiment is to obtain a training data set from a database, and the training data includes positive training data belonging to abnormal staying behaviors and negative training data not belonging to abnormal staying behaviors For each training data, extract the staying position, staying time, driver service status and predetermined feature information of the training data; obtain the first historical data set and the second historical data set from the database; the first history The data set includes the historical stay time of at least one driver in the same service state as the training data, and the second historical data set includes the historical stay time of at least one driver in the same time period and in the same area as the training data; According to the training data set, the first historical data set and the second historical data set corresponding to each training data, the preset model is trained to make the judgment result of the abnormal staying behavior output by the preset model accurate The rate and/or recall rate reach the target value. Through the training of multiple pairs of online car-hailing abnormal staying behavior recognition models, the abnormal staying behavior recognition model of online car-hailing can be obtained, so that massive online car-hailing travel history data and the model can be used, taking into account the length of stay, location, and service. Multi-dimensional feature information such as status can accurately identify whether there are abnormal staying behaviors in the online car-hailing platform in real time, improve the safety perception ability of the online car-hailing platform and the ability to recognize traffic accidents, driver-passenger conflicts, and protect drivers and passengers. Safety.
应当注意的是,上述有关流程900的描述仅仅是为了示例和说明,而不限定本申请的适用范围。对于本领域技术人员来说,在本申请的指导下可以对流程900进行各种修正和改变。然而,这些修正和改变仍在本申请的范围之内。It should be noted that the foregoing description of the process 900 is only for example and description, and does not limit the scope of application of the present application. For those skilled in the art, various modifications and changes can be made to the process 900 under the guidance of this application. However, these amendments and changes are still within the scope of this application.
本申请实施例还提供的网约车的异常停留行为识别设备的结构示意图。本申请实施例提供的网约车的异常停留行为识别设备可以执行网约车的异常停留行为识别方法实施例提供的处理流程。所述网约车的异常停留行为识别设备包括存储器、处理器、计算机程序和通讯接口;其中,计算机程序存储在存储器中,并被配置为由处理器执行以上实施例所述的网约车的异常停留行为识别方法。The embodiment of the present application also provides a schematic structural diagram of a device for identifying abnormal stay behavior of online car-hailing. The device for identifying abnormal staying behaviors of online car-hailing provided in the embodiments of the present application can execute the processing flow provided in the embodiment of the method for identifying abnormal staying behaviors of online car-hailing. The device for identifying abnormal staying behavior of online car-hailing includes a memory, a processor, a computer program, and a communication interface; wherein the computer program is stored in the memory and is configured to execute the online car-hailing operation described in the above embodiment by the processor. Method for identifying abnormal stay behavior.
上述实施例中的网约车的异常停留行为识别设备可用于执行上述方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device for identifying abnormal stay behavior of online car-hailing in the foregoing embodiment can be used to implement the technical solution of the foregoing method embodiment, and its implementation principles and technical effects are similar, and will not be repeated here.
本申请实施例还提供的网约车的异常停留行为识别模型训练设备的结构示意图。本发明实施例提供的网约车的异常停留行为识别模型训练设备可以执行网约车的异常停留行为识别模型训练方法实施例提供的处理流程。网约车的异常停留行为识别模型训练设备包括存储器、处理器、计算机程序和通讯接口;其中,计算机程序存储在存储器中,并被配置为由处理器执行以上实施例所述的网约车的异常停留行为识别模型训练方法。The embodiment of the present application also provides a schematic structural diagram of a training device for an abnormal stay behavior recognition model for online car-hailing. The device for training an abnormal staying behavior recognition model for online car-hailing provided by the embodiment of the present invention can execute the processing flow provided in the embodiment of the method for training an abnormal staying behavior recognition model for online car-hailing. The training equipment for the recognition model of abnormal staying behavior of online car-hailing includes a memory, a processor, a computer program, and a communication interface; wherein the computer program is stored in the memory and is configured to execute the online car-hailing system described in the above embodiments by the processor. Training method of abnormal stay behavior recognition model.
上述实施例中的网约车的异常停留行为识别模型训练设备可用于执行上述方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The training device for the recognition model of abnormal stay behavior of online car-hailing in the foregoing embodiment can be used to implement the technical solutions of the foregoing method embodiments, and its implementation principles and technical effects are similar, and will not be repeated here.
另外,本实施例还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行以实现上述实施例所述的网约车的异常停留行为识别方法。In addition, this embodiment also provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the method for identifying abnormal stay behavior of online car-hailing described in the foregoing embodiment.
另外,本实施例还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算 机程序被处理器执行以实现上述实施例所述的网约车的异常停留行为识别模型训练方法。In addition, this embodiment also provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the method for training an abnormal stay behavior recognition model for online car-hailing described in the foregoing embodiment.
上文已对基本概念做了描述,显然,对于本领域技术人员来说,上述详细披露仅仅作为示例,而并不构成对本申请的限定。虽然此处并没有明确说明,本领域技术人员可能会对本申请进行各种修改、改进和修正。该类修改、改进和修正在本申请中被建议,所以该类修改、改进、修正仍属于本申请示范实施例的精神和范围。The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only an example, and does not constitute a limitation to the application. Although it is not explicitly stated here, those skilled in the art may make various modifications, improvements and amendments to this application. Such modifications, improvements, and corrections are suggested in this application, so such modifications, improvements, and corrections still belong to the spirit and scope of the exemplary embodiments of this application.
同时,本申请使用了特定词语来描述本申请的实施例。如“一个实施例”、“一实施例”、和/或“一些实施例”意指与本申请至少一个实施例相关的某一特征、结构或特点。因此,应强调并注意的是,本说明书中在不同位置两次或多次提及的“一实施例”或“一个实施例”或“一个替代性实施例”并不一定是指同一实施例。此外,本申请的一个或多个实施例中的某些特征、结构或特点可以进行适当的组合。At the same time, this application uses specific words to describe the embodiments of the application. For example, "one embodiment", "an embodiment", and/or "some embodiments" mean a certain feature, structure, or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that “one embodiment” or “one embodiment” or “an alternative embodiment” mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. . In addition, some features, structures, or characteristics in one or more embodiments of the present application can be appropriately combined.
此外,本领域技术人员可以理解,本申请的各方面可以通过若干具有可专利性的种类或情况进行说明和描述,包括任何新的和有用的工序、机器、产品或物质的组合,或对他们的任何新的和有用的改进。相应地,本申请的各个方面可以完全由硬件执行、可以完全由软件(包括固件、常驻软件、微码等)执行、也可以由硬件和软件组合执行。以上硬件或软件均可被称为“数据块”、“模块”、“引擎”、“单元”、“组件”或“系统”。此外,本申请的各方面可能表现为位于一个或多个计算机可读介质中的计算机产品,该产品包括计算机可读程序编码。In addition, those skilled in the art can understand that various aspects of this application can be explained and described through a number of patentable categories or situations, including any new and useful process, machine, product, or combination of substances, or a combination of them. Any new and useful improvements. Correspondingly, various aspects of the present application can be completely executed by hardware, can be completely executed by software (including firmware, resident software, microcode, etc.), or can be executed by a combination of hardware and software. The above hardware or software can all be referred to as "data block", "module", "engine", "unit", "component" or "system". In addition, various aspects of the present application may be embodied as a computer product located in one or more computer-readable media, and the product includes computer-readable program codes.
计算机存储介质可能包含一个内含有计算机程序编码的传播数据信号,例如在基带上或作为载波的一部分。该传播信号可能有多种表现形式,包括电磁形式、光形式等,或合适的组合形式。计算机存储介质可以是除计算机可读存储介质之外的任何计算机可读介质,该介质可以通过连接至一个指令执行系统、装置或设备以实现通讯、传播或传输供使用的程序。位于计算机存储介质上的程序编码可以通过任何合适的介质进行传播,包括无线电、电缆、光纤电缆、RF、或类似介质,或任何上述介质的组合。The computer storage medium may contain a propagated data signal containing a computer program code, for example on a baseband or as part of a carrier wave. The propagated signal may have multiple manifestations, including electromagnetic forms, optical forms, etc., or a suitable combination. The computer storage medium may be any computer readable medium other than the computer readable storage medium, and the medium may be connected to an instruction execution system, device, or device to realize communication, propagation, or transmission of the program for use. The program code located on the computer storage medium can be transmitted through any suitable medium, including radio, cable, fiber optic cable, RF, or similar medium, or any combination of the above medium.
本申请各部分操作所需的计算机程序编码可以用任意一种或多种程序语言编写,包括面向对象编程语言如Java、Scala、Smalltalk、Eiffel、JADE、Emerald、C++、C#、VB.NET、Python等,常规程序化编程语言如C语言、Visual Basic、Fortran 2003、Perl、COBOL 2002、PHP、ABAP,动态编程语言如Python、Ruby和Groovy,或其他编程语言等。该程序编码可以完全在用户计算机上运行、或作为独立的软件包在用户计算机上运行、或部分在用户计算机上运行部分在远程计算机运行、或完全在远程计算机或服务器上运行。在后种情况下,远程计算机可以通过任何网络形式与用户计算机连接,比如局域网(LAN)或广域网(WAN),或连接至外部计算机(例如通过因特网),或在云计算环境中,或作为服务使用如软件即服务(SaaS)。The computer program codes required for the operation of each part of this application can be written in any one or more programming languages, including object-oriented programming languages such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB.NET, Python Etc., conventional programming languages such as C language, Visual Basic, Fortran 2003, Perl, COBOL 2002, PHP, ABAP, dynamic programming languages such as Python, Ruby and Groovy, or other programming languages. The program code can be run entirely on the user's computer, or run as an independent software package on the user's computer, or partly run on the user's computer and partly run on a remote computer, or run entirely on the remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any form of network, such as a local area network (LAN) or a wide area network (WAN), or connected to an external computer (for example, via the Internet), or in a cloud computing environment, or as a service Use software as a service (SaaS).
此外,除非权利要求中明确说明,本申请所述处理元素和序列的顺序、数字字母的使用、或其他名称的使用,并非用于限定本申请流程和方法的顺序。尽管上述披露中通过各种示例讨论了一些目前认为有用的发明实施例,但应当理解的是,该类细节仅起到说明的目的,附加的权利要求并不仅限于披露的实施例,相反,权利要求旨在覆盖所有符合本申请实施例实质和范围的修正和等价组合。例如,虽然以上所描述的系统组件可以通过硬件设备实现,但是也可以只通过软件的解决方案得以实现,如在现有的服务器或移动设备上安装所描述的系统。In addition, unless explicitly stated in the claims, the order of processing elements and sequences, the use of numbers and letters, or the use of other names in this application are not used to limit the order of the procedures and methods of this application. Although the foregoing disclosure uses various examples to discuss some embodiments of the invention that are currently considered useful, it should be understood that such details are only for illustrative purposes, and the appended claims are not limited to the disclosed embodiments. On the contrary, the rights are The requirements are intended to cover all modifications and equivalent combinations that conform to the essence and scope of the embodiments of the present application. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing server or mobile device.
同理,应当注意的是,为了简化本申请披露的表述,从而帮助对一个或多个发明实施例的理解,前文对本申请实施例的描述中,有时会将多种特征归并至一个实施例、附图或对其的描述中。但是,这种披露方法并不意味着本申请对象所需要的特征比权利要求中提及的特征多。实际上,实施例的特征要少于上述披露的单个实施例的全部特征。For the same reason, it should be noted that, in order to simplify the expressions disclosed in this application and thus help the understanding of one or more embodiments of the invention, in the foregoing description of the embodiments of this application, multiple features are sometimes combined into one embodiment. In the drawings or its description. However, this method of disclosure does not mean that the subject of the application requires more features than those mentioned in the claims. In fact, the features of the embodiment are less than all the features of the single embodiment disclosed above.
一些实施例中使用了描述成分、属性数量的数字,应当理解的是,此类用于实施例描述的数字,在一些示例中使用了修饰词“大约”、“近似”或“大体上”来修饰。除非另外说明,“大约”、“近似”或“大体上”表明所述数字允许有±20%的变化。相应地,在一些实施例中,说明书和权利要求中使用的数值参数均为近似值,该近似值根据个别实施例所需特点可以发生改变。在一些实施例中,数值参数应考虑规定的有效数位并采用一般位数保留的方法。尽管本申请一些实施例中用于确认其范围广度的数值域和参数为近似值,在具体实施例中,此类数值的设定在可行范围内尽可能精确。In some embodiments, numbers describing the number of ingredients and attributes are used. It should be understood that such numbers used in the description of the embodiments use the modifier "about", "approximately" or "substantially" in some examples. Retouch. Unless otherwise stated, "approximately", "approximately" or "substantially" indicates that the number is allowed to vary by ±20%. Correspondingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, and the approximate values can be changed according to the required characteristics of individual embodiments. In some embodiments, the numerical parameter should consider the prescribed effective digits and adopt the method of general digit retention. Although the numerical ranges and parameters used to confirm the breadth of the range in some embodiments of the present application are approximate values, in specific embodiments, the setting of such numerical values is as accurate as possible within the feasible range.
针对本申请引用的每个专利、专利申请、专利申请公开物和其他材料,如文章、书籍、说明书、出版物、文档等,特此将其全部内容并入本申请作为参考。与本申请内容不一致或产生冲突的申请历史文件除外,对本申请权利要求最广范围有限制的文件(当前或之后附加于本申请中的)也除外。需要说明的是,如果本申请附属材料中的描述、定义、和/或术语的使用与本申请所述内容有不一致或冲突的地方,以本申请的描述、定义和/或术语的使用为准。For each patent, patent application, patent application publication and other materials cited in this application, such as articles, books, specifications, publications, documents, etc., the entire contents of which are hereby incorporated into this application by reference. The application history documents that are inconsistent or conflicting with the content of this application are excluded, and documents that restrict the broadest scope of the claims of this application (currently or later attached to this application) are also excluded. It should be noted that if there is any inconsistency or conflict between the description, definition, and/or term usage in the attached materials of this application and the content described in this application, the description, definition and/or term usage of this application shall prevail .
最后,应当理解的是,本申请中所述实施例仅用以说明本申请实施例的原则。其他的变形也可能属于本申请的范围。因此,作为示例而非限制,本申请实施例的替代配置可视为与本申请的教导一致。相应地,本申请的实施例不仅限于本申请明确介绍和描述的实施例。Finally, it should be understood that the embodiments described in this application are only used to illustrate the principles of the embodiments of this application. Other variations may also fall within the scope of this application. Therefore, as an example and not a limitation, the alternative configuration of the embodiment of the present application can be regarded as consistent with the teaching of the present application. Correspondingly, the embodiments of the present application are not limited to the embodiments explicitly introduced and described in the present application.

Claims (43)

  1. 一种系统,包括:A system including:
    至少一个存储介质,所述存储介质包括用于识别车辆的异常停留的指令;At least one storage medium, the storage medium including an instruction for identifying the abnormal stay of the vehicle;
    至少一个处理器,所述至少一个处理器与所述至少一个存储介质通信,其中,在执行所述指令时,所述至少一个处理器被配置为:At least one processor, the at least one processor is in communication with the at least one storage medium, wherein, when the instruction is executed, the at least one processor is configured to:
    获取所述车辆的实时停留数据;Acquiring real-time stay data of the vehicle;
    基于所述实时停留数据,利用识别模型确定所述车辆是否处于异常停留状态;其中,所述识别模型包括基于多个历史车辆的历史停留数据训练得到的机器学习模型。Based on the real-time stay data, a recognition model is used to determine whether the vehicle is in an abnormal stay state; wherein the recognition model includes a machine learning model trained based on historical stay data of multiple historical vehicles.
  2. 根据权利要求1所述的系统,其中,所述实时停留数据包括当前停留时长以及车辆停留相关的特征信息,为基于所述实时停留数据,利用训练好的识别模型确定所述车辆是否处于异常停留状态,所述至少一个处理器被配置为:The system according to claim 1, wherein the real-time stay data includes the current stay time and characteristic information related to the vehicle stay. Based on the real-time stay data, a trained recognition model is used to determine whether the vehicle is in an abnormal stay. State, the at least one processor is configured to:
    基于第一子识别模型确定所述当前停留时长是否为异常停留时长;Determining whether the current stay time is an abnormal stay time based on the first sub-recognition model;
    响应于所述当前停留时间为异常停留时长,基于第二子识别模型确定所述车辆停留相关的特征信息是否满足停留规则;In response to the current stay time being the abnormal stay time length, determining whether the characteristic information related to the vehicle stay meets the stay rule based on the second sub-recognition model;
    响应于所述车辆停留相关的特征信息不满足所述停留规则,基于第三子模型确定所述当前停留时长相关的异常评估值;In response to the characteristic information related to the vehicle stay that does not satisfy the stay rule, determining the abnormal evaluation value related to the current stay time based on the third sub-model;
    确定所述异常评估值是否大于异常停留阈值;Determine whether the abnormality evaluation value is greater than the abnormal stay threshold;
    响应于所述异常评估值大于所述预设阈值,确定所述车辆处于异常停留状态。In response to the abnormality evaluation value being greater than the preset threshold value, it is determined that the vehicle is in an abnormal stay state.
  3. 根据权利要求2所述的系统,其中,所述第一子识别模型包括基于分布的杜凯法事后比较模型,为基于第一子识别模型确定所述当前停留时长是否为异常停留时长,所述至少一个处理器被配置为:3. The system according to claim 2, wherein the first sub-recognition model comprises a distribution-based Dukai's post-comparison model to determine whether the current stay duration is an abnormal stay duration based on the first sub-recognition model. At least one processor is configured as:
    基于所述基于分布的杜凯法事后比较模型确定识别系数;Determine the identification coefficient based on the distribution-based Dukai's post-comparison model;
    基于所述识别系数确定至少一个最大异常估计值;Determining at least one maximum anomaly estimated value based on the identification coefficient;
    确定所述当前停留时间是否大于所述至少一个最大异常估计值中的至少一个;Determining whether the current stay time is greater than at least one of the at least one maximum abnormality estimation value;
    响应于所述当前停留时间大于所述至少一个最大异常估计值中的至少一个,确定所述当前停留时长为异常停留时长。In response to the current stay time being greater than at least one of the at least one maximum abnormality estimation value, it is determined that the current stay time length is the abnormal stay time length.
  4. 根据权利要求2所述的系统,其中,所述车辆停留相关的特征信息包括以下至少一个:与 所述车辆相关的人员的行为和所述车辆的当前停留位置;为基于第二子识别模型确定所述车辆停留相关的特征信息是否满足停留规则,所述至少一个处理器被配置为:The system according to claim 2, wherein the characteristic information related to the stay of the vehicle includes at least one of the following: the behavior of the personnel related to the vehicle and the current staying position of the vehicle; it is determined based on the second sub-recognition model Whether the characteristic information related to the stay of the vehicle satisfies the stay rule, the at least one processor is configured to:
    基于所述第二子识别模型确定所述停留规则;Determining the stay rule based on the second sub-recognition model;
    确定所述车辆停留相关的特征信息是否满足所述停留规则,包括:Determining whether the characteristic information related to the vehicle stay meets the stay rule includes:
    确定所述与所述车辆的相关的人员的行为是否为正常行为;和/或Determine whether the behavior of the person related to the vehicle is a normal behavior; and/or
    确定所述当前停留位置是否处于热点区域;Determine whether the current stay position is in a hot spot area;
    响应于所述与所述车辆的相关的人员的行为不是正常行为,以及所述当前停留位置不处于热点区域,确定所述车辆停留相关的特征信息不满足停留规则。In response to that the behavior of the person related to the vehicle is not a normal behavior, and the current stay position is not in a hot spot area, it is determined that the characteristic information related to the stay of the vehicle does not satisfy the stay rule.
  5. 根据权利要求4所述的系统,其中,所述第三子识别模型包括基于密度的局部异常因子算法模型;为基于第三子模型确定所述当前停留时长相关的异常评估值,所述至少一个处理器被配置为:The system according to claim 4, wherein the third sub-recognition model comprises a density-based local abnormality factor algorithm model; to determine the abnormality evaluation value related to the current stay time based on the third sub-model, the at least one The processor is configured as:
    基于所述局部异常因子算法模型确定所述当前停留时长相关的局部异常因子,并将所述局部异常因子指定为所述异常评估值。The local abnormality factor related to the current stay time is determined based on the local abnormality factor algorithm model, and the local abnormality factor is designated as the abnormality evaluation value.
  6. 根据权利要求2所述的系统,其中,所述至少一个处理器进一步被配置为:The system of claim 2, wherein the at least one processor is further configured to:
    响应于所述当前停留时间不为异常停留时长,确定所述车辆不处于异常停留状态;或者In response to that the current stay time is not an abnormal stay time, it is determined that the vehicle is not in an abnormal stay state; or
    响应于所述车辆停留相关的特征信息满足所述停留规则,确定所述车辆不处于异常停留状态;或者In response to the feature information related to the stay of the vehicle satisfying the stay rule, it is determined that the vehicle is not in an abnormal stay state; or
    响应于所述异常评估值小于或等于所述预设阈值,确定所述车辆不处于异常停留状态。In response to the abnormality evaluation value being less than or equal to the preset threshold value, it is determined that the vehicle is not in an abnormal stay state.
  7. 根据权利要求1所述的系统,其中,所述实时停留数据包括当前停留时长以及车辆停留相关的特征信息,为基于所述实时停留数据,利用训练好的识别模型确定所述车辆是否处于异常停留状态,所述至少一个处理器被配置为:The system according to claim 1, wherein the real-time stay data includes the current stay time and characteristic information related to the vehicle stay. Based on the real-time stay data, a trained recognition model is used to determine whether the vehicle is in an abnormal stay. State, the at least one processor is configured to:
    基于第一子识别模型确定所述当前停留时长是否为异常停留时长;Determining whether the current stay time is an abnormal stay time based on the first sub-recognition model;
    基于第二子识别模型确定所述车辆停留相关的特征信息是否满足停留规则;Determining whether the characteristic information related to the vehicle stay meets the stay rule based on the second sub-recognition model;
    基于第三子模型确定所述当前停留时长相关的异常评估值并确定所述以确定所述异常评估值是否大于预设阈值;Determining the abnormal evaluation value related to the current stay time based on the third sub-model and determining whether the abnormal evaluation value is greater than a preset threshold;
    响应于所述当前停留时间为异常停留时长,所述车辆停留相关的特征信息不满足所述停留规则,和/或所述异常评估值大于所述预设阈值,确定所述车辆处于异常停留状态。In response to the current stay time being the abnormal stay time, the characteristic information related to the vehicle stay does not meet the stay rules, and/or the abnormality evaluation value is greater than the preset threshold, it is determined that the vehicle is in an abnormal stay state .
  8. 根据权利要求1所述的系统,其中,所述至少一个处理器被配置为:The system of claim 1, wherein the at least one processor is configured to:
    获取多个训练样本,所述多个训练样本包括在相同车辆状态下的至少一个第一样本车辆的第一历史停留数据,以及处于相同时间段和相同区域内的至少一个第二样本车辆的第二历史停留数据;所述第一历史停留数据以及所述第二历史停留包括历史停留时长以及历史车辆停留相关的特征信息,Acquire multiple training samples, the multiple training samples including first historical stay data of at least one first sample vehicle in the same vehicle state, and at least one second sample vehicle in the same time period and in the same area Second historical stay data; the first historical stay data and the second historical stay include historical stay duration and characteristic information related to historical vehicle stays,
    基于所述第一历史停留数据训练第一初始子识别模型以获取第一子识别模型,以及所述第一子识别模型相关的识别参数;Training a first initial sub-recognition model based on the first historical stay data to obtain a first sub-recognition model and recognition parameters related to the first sub-recognition model;
    基于所述第一历史停留数据以及所述第二历史停留数据训练第二初始子识别模型以获取第二子识别模型,以及所述第二子识别模型相关的停留规则;Training a second initial sub-recognition model based on the first historical stay data and the second historical stay data to obtain a second sub-recognition model and stay rules related to the second sub-recognition model;
    基于所述第二历史停留数据训练第三初始子识别模型以获取第三子识别模型,以及所述第三子识别模型相关的异常停留阈值。Training a third initial sub-recognition model based on the second historical stay data to obtain a third sub-recognition model and an abnormal stay threshold related to the third sub-recognition model.
  9. 根据权利要求1所述的系统,其中,所述至少一个处理器被配置为:The system of claim 1, wherein the at least one processor is configured to:
    基于所述实时停留数据,更新所述识别模型。Based on the real-time stay data, the recognition model is updated.
  10. 一种用于识别车辆的异常停留方法,其中,所述方法包括:An abnormal stay method for identifying vehicles, wherein the method includes:
    获取所述车辆的实时停留数据;Acquiring real-time stay data of the vehicle;
    基于所述实时停留数据,利用识别模型确定所述车辆是否处于异常停留状态;其中,所述识别模型包括基于多个历史车辆的历史停留数据训练得到的机器学习模型。Based on the real-time stay data, a recognition model is used to determine whether the vehicle is in an abnormal stay state; wherein the recognition model includes a machine learning model trained based on historical stay data of multiple historical vehicles.
  11. 根据权利要求10所述的方法,其中,所述实时停留数据包括当前停留时长以及车辆停留相关的特征信息,所述基于所述实时停留数据,利用训练好的识别模型确定所述车辆是否处于异常停留状态,包括:The method according to claim 10, wherein the real-time stay data includes current stay time and characteristic information related to vehicle stay, and based on the real-time stay data, a trained recognition model is used to determine whether the vehicle is abnormal Stay status, including:
    基于第一子识别模型确定所述当前停留时长是否为异常停留时长;Determining whether the current stay time is an abnormal stay time based on the first sub-recognition model;
    响应于所述当前停留时间为异常停留时长,基于第二子识别模型确定所述车辆停留相关的特征信息是否满足停留规则;In response to the current stay time being the abnormal stay time length, determining whether the characteristic information related to the vehicle stay meets the stay rule based on the second sub-recognition model;
    响应于所述车辆停留相关的特征信息不满足所述停留规则,基于第三子模型确定所述当前停留时长相关的异常评估值;In response to the characteristic information related to the vehicle stay that does not satisfy the stay rule, determining the abnormal evaluation value related to the current stay time based on the third sub-model;
    确定所述异常评估值是否大于异常停留阈值;Determine whether the abnormality evaluation value is greater than the abnormal stay threshold;
    响应于所述异常评估值大于所述预设阈值,确定所述车辆处于异常停留状态。In response to the abnormality evaluation value being greater than the preset threshold value, it is determined that the vehicle is in an abnormal stay state.
  12. 根据权利要求11所述的方法,其中,所述第一子识别模型包括基于分布的杜凯法事后比较模型,所述基于第一子识别模型确定所述当前停留时长是否为异常停留时长,包括:The method according to claim 11, wherein the first sub-recognition model comprises a distribution-based Dukai's post-comparison model, and the first sub-recognition model based on determining whether the current stay duration is an abnormal stay duration includes :
    基于所述基于分布的杜凯法事后比较模型确定识别系数;Determine the identification coefficient based on the distribution-based Dukai's post-comparison model;
    基于所述识别系数确定至少一个最大异常估计值;Determining at least one maximum anomaly estimated value based on the identification coefficient;
    确定所述当前停留时间是否大于所述至少一个最大异常估计值中的至少一个;Determining whether the current stay time is greater than at least one of the at least one maximum abnormality estimation value;
    响应于所述当前停留时间大于所述至少一个最大异常估计值中的至少一个,确定所述当前停留时长为异常停留时长。In response to the current stay time being greater than at least one of the at least one maximum abnormality estimation value, it is determined that the current stay time length is the abnormal stay time length.
  13. 根据权利要求11所述的方法,其中,所述车辆停留相关的特征信息包括以下至少一个:与所述车辆相关的人员的行为、所述车辆的当前停留位置;所述基于第二子识别模型确定所述车辆停留相关的特征信息是否满足停留规则,包括:The method according to claim 11, wherein the characteristic information related to the stay of the vehicle includes at least one of the following: behavior of a person related to the vehicle, a current stay position of the vehicle; Determining whether the characteristic information related to the vehicle stay meets the stay rules, including:
    基于所述第二子识别模型确定所述停留规则;Determining the stay rule based on the second sub-recognition model;
    确定所述车辆停留相关的特征信息是否满足所述停留规则,包括:Determining whether the characteristic information related to the vehicle stay meets the stay rule includes:
    确定所述与所述车辆的相关的人员的行为是否为正常行为;和/或Determine whether the behavior of the person related to the vehicle is a normal behavior; and/or
    确定所述当前停留位置是否处于热点区域;Determine whether the current stay position is in a hot spot area;
    响应于所述与所述车辆的相关的人员的行为不是正常行为,以及所述当前停留位置不处于热点区域,确定所述车辆停留相关的特征信息不满足停留规则。In response to that the behavior of the person related to the vehicle is not a normal behavior, and the current stay position is not in a hot spot area, it is determined that the characteristic information related to the stay of the vehicle does not satisfy the stay rule.
  14. 根据权利要求13所述的方法,其中,所述第三子识别模型包括基于密度的局部异常因子算法LOF模型;所述基于第三子模型确定所述当前停留时长相关的异常评估值,包括:The method according to claim 13, wherein the third sub-recognition model comprises a density-based local abnormality factor algorithm LOF model; the third sub-model to determine the abnormality evaluation value related to the current stay time includes:
    基于所述局部异常因子算法模型确定所述当前停留时长相关的局部异常因子,并将所述局部异常因子指定为所述异常评估值。The local abnormality factor related to the current stay time is determined based on the local abnormality factor algorithm model, and the local abnormality factor is designated as the abnormality evaluation value.
  15. 根据权利要求11所述的方法,其中,所述至少一个处理器进一步被配置为:The method of claim 11, wherein the at least one processor is further configured to:
    响应于所述当前停留时间不为异常停留时长,确定所述车辆不处于异常停留状态;或者In response to that the current stay time is not an abnormal stay time, it is determined that the vehicle is not in an abnormal stay state; or
    响应于所述车辆停留相关的特征信息满足所述停留规则,确定所述车辆不处于异常停留状态;或者In response to the feature information related to the stay of the vehicle satisfying the stay rule, it is determined that the vehicle is not in an abnormal stay state; or
    响应于所述异常评估值小于或等于所述预设阈值,确定所述车辆不处于异常停留状态。In response to the abnormality evaluation value being less than or equal to the preset threshold value, it is determined that the vehicle is not in an abnormal stay state.
  16. 根据权利要求10所述的方法,其中,所述实时停留数据包括当前停留时长以及车辆停留相关的特征信息,所述基于所述实时停留数据,利用训练好的识别模型确定所述车辆是否处 于异常停留状态,包括:The method according to claim 10, wherein the real-time stay data includes current stay time and characteristic information related to vehicle stay, and based on the real-time stay data, a trained recognition model is used to determine whether the vehicle is abnormal Stay status, including:
    基于第一子识别模型确定所述当前停留时长是否为异常停留时长;Determining whether the current stay time is an abnormal stay time based on the first sub-recognition model;
    基于第二子识别模型确定所述车辆停留相关的特征信息是否满足停留规则;Determining whether the characteristic information related to the vehicle stay meets the stay rule based on the second sub-recognition model;
    基于第三子模型确定所述当前停留时长相关的异常评估值并确定所述以确定所述异常评估值是否大于预设阈值;Determining the abnormal evaluation value related to the current stay time based on the third sub-model and determining whether the abnormal evaluation value is greater than a preset threshold;
    响应于所述当前停留时间为异常停留时长,所述车辆停留相关的特征信息不满足所述停留规则,和/或所述异常评估值大于所述预设阈值,确定所述车辆处于异常停留状态。In response to the current stay time being the abnormal stay time, the characteristic information related to the vehicle stay does not meet the stay rules, and/or the abnormality evaluation value is greater than the preset threshold, it is determined that the vehicle is in an abnormal stay state .
  17. 根据权利要求10所述的方法,其中,所述方法进一步包括:The method of claim 10, wherein the method further comprises:
    获取多个训练样本,所述多个训练样本包括在相同车辆状态下的至少一个第一样本车辆的第一历史停留数据,以及处于相同时间段和相同区域内的至少一个第二样本车辆的第二历史停留数据;所述第一历史停留数据以及所述第二历史停留包括历史停留时长以及历史车辆停留相关的特征信息,Acquire multiple training samples, the multiple training samples including first historical stay data of at least one first sample vehicle in the same vehicle state, and at least one second sample vehicle in the same time period and in the same area Second historical stay data; the first historical stay data and the second historical stay include historical stay duration and characteristic information related to historical vehicle stays,
    基于所述第一历史停留数据训练第一初始子识别模型以获取第一子识别模型,以及所述第一子识别模型相关的识别参数;Training a first initial sub-recognition model based on the first historical stay data to obtain a first sub-recognition model and recognition parameters related to the first sub-recognition model;
    基于所述第一历史停留数据以及所述第二历史停留数据训练第二初始子识别模型以获取第二子识别模型,以及所述第二子识别模型相关的停留规则;Training a second initial sub-recognition model based on the first historical stay data and the second historical stay data to obtain a second sub-recognition model and stay rules related to the second sub-recognition model;
    基于所述第二历史停留数据训练第三初始子识别模型以获取第三子识别模型,以及所述第三子识别模型相关的异常停留阈值。Training a third initial sub-recognition model based on the second historical stay data to obtain a third sub-recognition model and an abnormal stay threshold related to the third sub-recognition model.
  18. 根据权利要求10所述的方法,其中,所述方法进一步包括:The method of claim 10, wherein the method further comprises:
    基于所述实时停留数据,更新所述识别模型。Based on the real-time stay data, the recognition model is updated.
  19. 一种计算机可读存储介质,所述存储介质存储计算机指令,当计算机读取存储介质中的计算机指令后,计算机执行如下用于识别车辆的异常停留方法:A computer-readable storage medium that stores computer instructions. After the computer reads the computer instructions in the storage medium, the computer executes the following abnormal stopping method for identifying a vehicle:
    获取所述车辆的实时停留数据;Acquiring real-time stay data of the vehicle;
    基于所述实时停留数据,利用识别模型确定所述车辆是否处于异常停留状态;其中,所述识别模型包括基于多个历史车辆的历史停留数据训练得到的机器学习模型。Based on the real-time stay data, a recognition model is used to determine whether the vehicle is in an abnormal stay state; wherein the recognition model includes a machine learning model trained based on historical stay data of multiple historical vehicles.
  20. 一种网约车的异常停留行为识别方法,其特征在于,包括:A method for identifying abnormal staying behaviors of online car-hailing, which is characterized in that it includes:
    采集网约车发生停留时的实时数据,所述实时数据包括当前停留位置、当前停留时长、 司机服务状态以及预定特征信息;Collect real-time data when a car-hailing stay occurs, the real-time data includes current stay location, current stay time, driver service status, and predetermined feature information;
    从数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述实时数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述实时数据相同时间段以及相同区域内的历史停留时长;Acquire a first historical data set and a second historical data set from a database; the first historical data set includes the historical stay time of at least one driver in the same service state as the real-time data, and the second historical data set includes The historical stay time of at least one driver in the same time period and in the same area as the real-time data;
    根据所述实时数据、所述第一历史数据集合、所述第二历史数据集合以及预设模型,识别所述网约车当前是否出现异常停留行为。According to the real-time data, the first historical data set, the second historical data set, and a preset model, identify whether the online car-hailing currently exhibits an abnormal staying behavior.
  21. 根据权利要求20所述的方法,其特征在于,所述根据所述实时数据、所述第一历史数据集合、所述第二历史数据集合以及预设模型,识别所述网约车当前是否出现异常停留行为,包括:The method according to claim 20, wherein said identifying whether the online car-hailing is currently present based on the real-time data, the first historical data set, the second historical data set, and a preset model Abnormal stay behavior, including:
    将所述当前停留时长以及所述第一历史数据集合输入到第一模型中,判断所述当前停留时长相对于所述第一历史数据集合是否为异常停留时长;Input the current stay time length and the first historical data set into a first model, and determine whether the current stay time length is an abnormal stay time period relative to the first historical data set;
    若确定所述当前停留时长为异常停留时长,则将所述预定特征信息输入第二模型中,判断所述预定特征信息是否满足所述第二模型的预设规则;If it is determined that the current stay duration is the abnormal stay duration, input the predetermined characteristic information into the second model, and determine whether the predetermined characteristic information meets the preset rules of the second model;
    若确定所述预定特征信息不满足所述第二模型的预设规则,则将所述当前停留时长以及所述第二历史数据集合输入到第三模型中,获取所述当前停留时长的离群程度因子,若所述离群程度因子大于预设阈值,则确定所述网约车当前出现异常停留行为。If it is determined that the predetermined characteristic information does not meet the preset rules of the second model, the current stay time and the second historical data set are input into the third model to obtain the outliers of the current stay time The degree factor, if the outlier degree factor is greater than a preset threshold, it is determined that the online car-hailing currently exhibits an abnormal stay behavior.
  22. 根据权利要求21所述的方法,其特征在于,所述第一模型为基于分布的杜凯法事后比较模型,所述杜凯法事后比较模型中用于表征异常程度的系数采用预设系数;The method according to claim 21, wherein the first model is a distribution-based Dukai's post-comparison model, and the coefficients used to represent the degree of abnormality in the Dukai's post-comparison model are preset coefficients;
    所述判断所述当前停留时长相对于所述第一历史数据集合是否为异常停留时长,包括:The judging whether the current stay time is abnormal stay time relative to the first historical data set includes:
    通过所述杜凯法事后比较模型以所述预设系数获取所述第一历史数据集合的最大估计值;Obtaining the maximum estimated value of the first historical data set using the preset coefficient through the Du Kaifa post-comparison model;
    若所述当前停留时长大于所述最大估计值,则确定所述当前停留时长为异常停留时长。If the current stay duration is greater than the maximum estimated value, it is determined that the current stay duration is the abnormal stay duration.
  23. 根据权利要求22所述的方法,其特征在于,所述第一历史数据集合包括第一子集和第二子集;所述第一子集包括当前司机在与所述实时数据相同服务状态下历史停留时长;所述第二子集包括所述数据库中所有司机在与所述实时数据相同服务状态以及相同区域内的历史停留时长;The method according to claim 22, wherein the first historical data set includes a first subset and a second subset; the first subset includes the current driver in the same service state as the real-time data Historical stay time; the second subset includes the historical stay time of all drivers in the database in the same service state and in the same area as the real-time data;
    所述判断所述当前停留时长相对于所述第一历史数据集合是否为异常停留时长,包括:The judging whether the current stay time is abnormal stay time relative to the first historical data set includes:
    通过所述杜凯法事后比较模型以所述预设系数获取所述第一子集的第一最大估计值、以及所述第二子集的第二最大估计值;Obtaining the first maximum estimated value of the first subset and the second maximum estimated value of the second subset using the preset coefficient through the Dukai's post-comparison model;
    若所述当前停留时长大于所述第一最大估计值或所述第二最大估计值,则确定所述当前停留时长为异常停留时长。If the current stay duration is greater than the first maximum estimated value or the second maximum estimated value, it is determined that the current stay duration is an abnormal stay duration.
  24. 根据权利要求23所述的方法,其特征在于,所述预定特征信息包括以下至少一个:乘客的支付行为、乘客对司机的评价、发单热点区域;The method according to claim 23, wherein the predetermined characteristic information includes at least one of the following: passenger's payment behavior, passenger's evaluation of the driver, and billing hot spots;
    所述判断所述预定特征信息是否满足所述第二模型的预设规则,包括:The judging whether the predetermined characteristic information satisfies the preset rule of the second model includes:
    判断所述乘客的支付行为是否为主动支付;和/或Determine whether the payment behavior of the passenger is active payment; and/or
    判断所述乘客对司机的评价是否为主动好评;和/或Determine whether the passenger’s evaluation of the driver is positive; and/or
    判断所述当前停留位置是否处于所述发单热点区域;Judging whether the current stay position is in the hot spot area for issuing bills;
    若上述判断结果均为否,则确定所述预定特征信息不满足所述第二模型的预设规则。If the foregoing judgment results are all no, it is determined that the predetermined characteristic information does not satisfy the preset rule of the second model.
  25. 根据权利要求21-24任一项所述的方法,其特征在于,所述第三模型为基于密度的局部异常因子(LOF)模型;The method according to any one of claims 21-24, wherein the third model is a local outlier factor (LOF) model based on density;
    所述获取所述当前停留时长的离群程度因子,包括:The obtaining the outlier degree factor of the current stay time includes:
    通过所述LOF模型,根据所述当前停留时长以及所述第二历史数据集合,获取所述当前停留时长的离群程度因子LOF值。According to the LOF model, the outlier degree factor LOF value of the current stay time is obtained according to the current stay time and the second historical data set.
  26. 根据权利要求25所述的方法,其特征在于,所述确定所述预定特征信息不满足所述第二模型的预设规则后,包括:The method according to claim 25, wherein the determining that the predetermined characteristic information does not satisfy the preset rule of the second model comprises:
    若所述第二数据集中样本数少于预设数量,则直接确定所述网约车当前出现异常停留行为;If the number of samples in the second data set is less than the preset number, it is directly determined that the online car-hailing currently has an abnormal staying behavior;
    所述方法还包括:The method also includes:
    统计所述数据库中所有司机在与所述实时数据相同时间段内的历史停留数据的数量,并以所述历史停留数据的数量乘以预设百分比后得到的结果作为所述预设数量。The number of historical stay data of all drivers in the database in the same time period as the real-time data is counted, and the result obtained by multiplying the number of historical stay data by a preset percentage is used as the preset number.
  27. 根据权利要求21所述的方法,其特征在于,还包括:The method according to claim 21, further comprising:
    若确定所述当前停留时长不为异常停留时长,则确定所述网约车当前未出现异常停留行为;或者If it is determined that the current stay duration is not the abnormal stay duration, it is determined that the online car-hailing does not currently exhibit any abnormal stay behavior; or
    若确定所述预定特征信息满足所述第二模型的预设规则,则确定所述网约车当前未出现异常停留行为;或者If it is determined that the predetermined characteristic information satisfies the preset rules of the second model, it is determined that there is no abnormal stay behavior in the online car-hailing; or
    若确定所述离群程度因子小于或等于预设阈值,则确定所述网约车当前未出现异常停留 行为。If it is determined that the outlier degree factor is less than or equal to the preset threshold, it is determined that the online car-hailing does not currently exhibit abnormal staying behavior.
  28. 一种网约车的异常停留行为识别模型训练方法,其特征在于,包括:A method for training an abnormal staying behavior recognition model for online car-hailing, which is characterized in that it includes:
    从数据库获取训练数据集合,所述训练数据包括属于异常停留行为的正例训练数据和不属于异常停留行为的负例训练数据;Acquiring a training data set from a database, the training data including positive training data belonging to abnormal staying behaviors and negative training data not belonging to abnormal staying behaviors;
    对于每一训练数据,提取所述训练数据的停留位置、停留时长、司机服务状态以及预定特征信息;For each training data, extract the stay location, stay time, driver service status and predetermined feature information of the training data;
    从所述数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述训练数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述训练数据相同时间段以及相同区域内的历史停留时长;Acquire a first historical data set and a second historical data set from the database; the first historical data set includes the historical stay time of at least one driver in the same service state as the training data, and the second historical data The set includes the historical stay time of at least one driver in the same time period and in the same area as the training data;
    根据所述训练数据集合、每一训练数据对应的所述第一历史数据集合和所述第二历史数据集合,对预设模型进行训练,以使预设模型输出的异常停留行为判断结果的准确率和/或召回率达到目标值。According to the training data set, the first historical data set and the second historical data set corresponding to each training data, the preset model is trained to make the judgment result of the abnormal staying behavior output by the preset model accurate The rate and/or recall rate reach the target value.
  29. 根据权利要求28所述的方法,其特征在于,所述根据所述训练数据集合、每一训练数据对应的所述第一历史数据集合和所述第二历史数据集合,对预设模型进行训练,包括:The method according to claim 28, wherein the training of a preset model is performed according to the training data set, the first historical data set and the second historical data set corresponding to each training data ,include:
    对于每一训练数据,将所述停留时长以及所述第一历史数据集合输入到第一模型中进行训练,确定所述第一模型的预设系数;For each training data, input the stay duration and the first historical data set into a first model for training, and determine the preset coefficients of the first model;
    将所述预定特征信息输入第二模型中进行训练,确定所述第二模型的预设规则;Inputting the predetermined feature information into a second model for training, and determining a preset rule of the second model;
    将所述停留时长以及所述第二历史数据集合输入到第三模型中进行训练,确定离群程度因子的预设阈值。The staying time and the second historical data set are input into a third model for training, and a preset threshold value of the outlier degree factor is determined.
  30. 一种网约车的异常停留行为识别装置,其特征在于,包括:A device for identifying abnormal stay behavior of online car-hailing, which is characterized in that it comprises:
    采集模块,用于采集网约车发生停留时的实时数据,所述实时数据包括当前停留位置、当前停留时长、司机服务状态以及预定特征信息;The collection module is used to collect real-time data when a car-hailing stay occurs, and the real-time data includes the current stay location, the current stay time, the driver's service status, and predetermined characteristic information;
    获取模块,用于从数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述实时数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述实时数据相同时间段以及相同区域内的历史停留时长;The acquiring module is used to acquire a first historical data set and a second historical data set from a database; the first historical data set includes the historical stay time of at least one driver in the same service state as the real-time data, and the first historical data set 2. The historical data set includes the historical stay time of at least one driver in the same time period and in the same area as the real-time data;
    处理模块,用于根据所述实时数据、所述第一历史数据集合、所述第二历史数据集合以及预设模型,识别所述网约车当前是否出现异常停留行为。The processing module is configured to identify whether the online car-hailing currently exhibits abnormal stay behavior according to the real-time data, the first historical data set, the second historical data set, and a preset model.
  31. 根据权利要求30所述的装置,其特征在于,所述处理模块包括:The device according to claim 30, wherein the processing module comprises:
    第一处理模块,用于将所述当前停留时长以及所述第一历史数据集合输入到第一模型中,判断所述当前停留时长相对于所述第一历史数据集合是否为异常停留时长;The first processing module is configured to input the current stay duration and the first historical data set into a first model, and determine whether the current stay duration is abnormal stay duration relative to the first historical data set;
    第二处理模块,用于若确定所述当前停留时长为异常停留时长,则将所述预定特征信息输入第二模型中,判断所述预定特征信息是否满足所述第二模型的预设规则;The second processing module is configured to input the predetermined characteristic information into the second model if it is determined that the current stay duration is the abnormal stay duration, and determine whether the predetermined characteristic information meets the preset rules of the second model;
    第三处理模块,用于若确定所述预定特征信息不满足所述第二模型的预设规则,则将所述当前停留时长以及所述第二历史数据集合输入到第三模型中,获取所述当前停留时长的离群程度因子,若所述离群程度因子大于预设阈值,则确定所述网约车当前出现异常停留行为。The third processing module is configured to, if it is determined that the predetermined characteristic information does not meet the preset rules of the second model, input the current stay time and the second historical data set into the third model to obtain all The outlier degree factor of the current stay duration, and if the outlier degree factor is greater than a preset threshold, it is determined that the online car-hailing currently has an abnormal stay behavior.
  32. 根据权利要求31所述的装置,其特征在于,所述第一模型为基于分布的杜凯法事后比较模型,所述杜凯法事后比较模型中用于表征异常程度的系数采用预设系数;The device according to claim 31, wherein the first model is a distribution-based Dukai's post-comparison model, and a coefficient used to represent the degree of abnormality in the Dukai's post-comparison model adopts a preset coefficient;
    所述第一处理模块在判断所述当前停留时长相对于所述第一历史数据集合是否为异常停留时长时,用于:The first processing module is configured to: when determining whether the current stay duration is abnormal stay duration relative to the first historical data set:
    通过所述杜凯法事后比较模型以所述预设系数获取所述第一历史数据集合的最大估计值;Obtaining the maximum estimated value of the first historical data set by using the Dukai method post-comparison model with the preset coefficient;
    若所述当前停留时长大于所述最大估计值,则确定所述当前停留时长为异常停留时长。If the current stay duration is greater than the maximum estimated value, it is determined that the current stay duration is the abnormal stay duration.
  33. 根据权利要求32所述的装置,其特征在于,所述第一历史数据集合包括第一子集和第二子集;所述第一子集包括当前司机在与所述实时数据相同服务状态下历史停留时长;所述第二子集包括所述数据库中所有司机在与所述实时数据相同服务状态以及相同区域内的历史停留时长;The device according to claim 32, wherein the first historical data set includes a first subset and a second subset; the first subset includes the current driver in the same service state as the real-time data Historical stay time; the second subset includes the historical stay time of all drivers in the database in the same service state and in the same area as the real-time data;
    所述第一处理模块在判断所述当前停留时长相对于所述第一历史数据集合是否为异常停留时长时,用于:The first processing module is configured to: when determining whether the current stay duration is abnormal stay duration relative to the first historical data set:
    通过所述杜凯法事后比较模型以所述预设系数获取所述第一子集的第一最大估计值、以及所述第二子集的第二最大估计值;Obtaining the first maximum estimated value of the first subset and the second maximum estimated value of the second subset using the preset coefficient through the Dukai's post-comparison model;
    若所述当前停留时长大于所述第一最大估计值或所述第二最大估计值,则确定所述当前停留时长为异常停留时长。If the current stay duration is greater than the first maximum estimated value or the second maximum estimated value, it is determined that the current stay duration is an abnormal stay duration.
  34. 根据权利要求31所述的装置,其特征在于,所述预定特征信息包括以下至少一个:乘客的支付行为、乘客对司机的评价、发单热点区域;The device according to claim 31, wherein the predetermined characteristic information includes at least one of the following: passenger's payment behavior, passenger's evaluation of the driver, and billing hot spots;
    所述第二处理模块在判断所述预定特征信息是否满足所述第二模型的预设规则时,用于:The second processing module is configured to: when determining whether the predetermined feature information satisfies the preset rules of the second model:
    判断所述乘客的支付行为是否为主动支付;和/或Determine whether the payment behavior of the passenger is active payment; and/or
    判断所述乘客对司机的评价是否为主动好评;和/或Determine whether the passenger’s evaluation of the driver is positive; and/or
    判断所述当前停留位置是否处于所述发单热点区域;Judging whether the current stay position is in the hot spot area for issuing bills;
    若上述判断结果均为否,则确定所述预定特征信息不满足所述第二模型的预设规则。If the foregoing judgment results are all no, it is determined that the predetermined characteristic information does not satisfy the preset rule of the second model.
  35. 根据权利要求31-34任一项所述的装置,其特征在于,所述第三模型为基于密度的局部异常因子(LOF)模型;The device according to any one of claims 31-34, wherein the third model is a density-based local abnormality factor (LOF) model;
    所述第三处理模块在获取所述当前停留时长的离群程度因子时,用于:When the third processing module obtains the outlier degree factor of the current stay time, it is used to:
    通过所述LOF模型,根据所述当前停留时长以及所述第二历史数据集合,获取所述当前停留时长的离群程度因子LOF值。According to the LOF model, the outlier degree factor LOF value of the current stay time is obtained according to the current stay time and the second historical data set.
  36. 根据权利要求35所述的装置,其特征在于,在确定所述预定特征信息不满足所述第二模型的预设规则后,所述第三处理模块还用于:The device according to claim 35, wherein after determining that the predetermined characteristic information does not satisfy the preset rule of the second model, the third processing module is further configured to:
    若所述第二数据集中样本数少于预设数量,则直接确定所述网约车当前出现异常停留行为;If the number of samples in the second data set is less than the preset number, it is directly determined that the online car-hailing currently has an abnormal staying behavior;
    所述第三处理模块还用于:The third processing module is also used for:
    统计所述数据库中所有司机在与所述实时数据相同时间段内的历史停留数据的数量,并以所述历史停留数据的数量乘以预设百分比后得到的结果作为所述预设数量。The number of historical stay data of all drivers in the database in the same time period as the real-time data is counted, and the result obtained by multiplying the number of historical stay data by a preset percentage is used as the preset number.
  37. 根据权利要求31所述的装置,其特征在于,The device of claim 31, wherein:
    所述第一处理模块还用于,若确定所述当前停留时长不为异常停留时长,则确定所述网约车当前未出现异常停留行为;或者The first processing module is further configured to, if it is determined that the current stay duration is not an abnormal stay duration, determine that there is no abnormal stay behavior in the online car-hailing currently; or
    所述第二处理模块还用于,若确定所述预定特征信息满足所述第二模型的预设规则,则确定所述网约车当前未出现异常停留行为;或者The second processing module is further configured to, if it is determined that the predetermined characteristic information satisfies the preset rules of the second model, determine that the online car-hailing does not currently exhibit abnormal stay behavior; or
    所述第三处理模块还用于,若确定所述离群程度因子小于或等于预设阈值,则确定所述网约车当前未出现异常停留行为。The third processing module is further configured to, if it is determined that the outlier degree factor is less than or equal to a preset threshold, determine that there is no abnormal stay behavior in the online car-hailing currently.
  38. 一种网约车的异常停留行为识别模型训练装置,其特征在于,包括:An abnormal stay behavior recognition model training device for online car-hailing, which is characterized in that it comprises:
    获取模块,用于从数据库获取训练数据集合,所述训练数据包括属于异常停留行为的正例训练数据和不属于异常停留行为的负例训练数据;An obtaining module, configured to obtain a training data set from a database, the training data including positive training data belonging to abnormal staying behaviors and negative training data not belonging to abnormal staying behaviors;
    特征提取模块,用于对于每一训练数据,提取所述训练数据的停留位置、停留时长、司机服务状态以及预定特征信息;The feature extraction module is used to extract the stay location, stay time, driver service status and predetermined feature information of the training data for each training data;
    所述获取模块还用于,从所述数据库中获取第一历史数据集合和第二历史数据集合;所述第一历史数据集合包括至少一个司机在与所述训练数据相同服务状态下的历史停留时长,所述第二历史数据集合包括至少一个司机在与所述训练数据相同时间段以及相同区域内的历史停留时长;The acquiring module is further configured to acquire a first historical data set and a second historical data set from the database; the first historical data set includes the historical stay of at least one driver in the same service state as the training data Duration, the second historical data set includes the historical stay duration of at least one driver in the same time period and in the same area as the training data;
    训练模块,用于根据所述训练数据集合、每一训练数据对应的所述第一历史数据集合和所述第二历史数据集合,对预设模型进行训练,以使预设模型输出的异常停留行为判断结果的准确率和/或召回率达到目标值。The training module is used to train the preset model according to the training data set, the first historical data set and the second historical data set corresponding to each training data, so that the abnormal output of the preset model stays The accuracy and/or recall rate of the behavior judgment result reaches the target value.
  39. 根据权利要求38所述的装置,其特征在于,所述训练模块用于:The device according to claim 38, wherein the training module is used to:
    将所述停留时长以及所述第一历史数据集合输入到第一模型中进行训练,确定所述第一模型的预设系数;将所述预定特征信息输入第二模型中进行训练,确定所述第二模型的预设规则;将所述停留时长以及所述第二历史数据集合输入到第三模型中进行训练,确定离群程度因子的预设阈值,以使得输出的异常停留行为判断结果的准确率和/或召回率达到目标值。Input the length of stay and the first historical data set into a first model for training, and determine the preset coefficients of the first model; input the predetermined feature information into a second model for training, and determine the The preset rules of the second model; input the stay duration and the second historical data set into the third model for training, determine the preset threshold of the outlier degree factor, so that the output abnormal stay behavior judgment result The accuracy and/or recall rate reaches the target value.
  40. 一种网约车的异常停留行为识别设备,其特征在于,包括:A device for identifying abnormal stay behavior of online car-hailing, which is characterized in that it includes:
    存储器;Memory
    处理器;以及Processor; and
    计算机程序;Computer program;
    其中,所述计算机程序存储在所述存储器中,并被配置为由所述处理器执行以实现如权利要求20-27中任一项所述的方法。Wherein, the computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 20-27.
  41. 一种网约车的异常停留行为识别模型训练设备,其特征在于,包括:An equipment for training an abnormal staying behavior recognition model for online car-hailing, which is characterized in that it includes:
    存储器;Memory
    处理器;以及Processor; and
    计算机程序;Computer program;
    其中,所述计算机程序存储在所述存储器中,并被配置为由所述处理器执行以实现如权利要求28或29所述的方法。Wherein, the computer program is stored in the memory and is configured to be executed by the processor to implement the method according to claim 28 or 29.
  42. 一种计算机可读存储介质,其特征在于,其上存储有计算机程序;A computer-readable storage medium, characterized in that a computer program is stored thereon;
    所述计算机程序被处理器执行时实现如权利要求20-27中任一项所述的方法。When the computer program is executed by a processor, the method according to any one of claims 20-27 is implemented.
  43. 一种计算机可读存储介质,其特征在于,其上存储有计算机程序;A computer-readable storage medium, characterized in that a computer program is stored thereon;
    所述计算机程序被处理器执行时实现如权利要求28或29所述的方法。When the computer program is executed by a processor, the method according to claim 28 or 29 is realized.
PCT/CN2020/127694 2019-12-31 2020-11-10 Method and system for identifying abnormal stay of vehicle WO2021135653A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911421142.4A CN111860561B (en) 2019-12-31 2019-12-31 Abnormal stay behavior identification method, device and equipment of network appointment vehicle and storage medium
CN201911421142.4 2019-12-31

Publications (1)

Publication Number Publication Date
WO2021135653A1 true WO2021135653A1 (en) 2021-07-08

Family

ID=72970833

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/127694 WO2021135653A1 (en) 2019-12-31 2020-11-10 Method and system for identifying abnormal stay of vehicle

Country Status (2)

Country Link
CN (1) CN111860561B (en)
WO (1) WO2021135653A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113671287A (en) * 2021-08-16 2021-11-19 广东电力通信科技有限公司 Intelligent detection method and system for power grid automation terminal and readable storage medium
CN113723473A (en) * 2021-08-12 2021-11-30 一汽解放青岛汽车有限公司 Vehicle shake recognition method and device, computer equipment and storage medium
CN113807871A (en) * 2021-09-30 2021-12-17 南京领行科技股份有限公司 Abnormal behavior monitoring method and device, electronic equipment and storage medium
CN114475256A (en) * 2022-03-11 2022-05-13 中国第一汽车股份有限公司 Method and device for predicting motor over-temperature in electric automobile
CN114590604A (en) * 2022-01-28 2022-06-07 三一专用汽车有限责任公司 Material transport vehicle monitoring method and device and material transport vehicle
CN115188192A (en) * 2022-07-12 2022-10-14 重庆电子工程职业学院 Automatic control parking system and method based on travel prediction
CN115310204A (en) * 2022-08-09 2022-11-08 重庆大学 Intelligent tracing method for production abnormity affecting NVH performance of automobile
CN115790804A (en) * 2023-02-08 2023-03-14 福建省智能交通信息工程有限公司 Dynamic truck scale state monitoring method, medium, equipment and device
CN116415931A (en) * 2023-03-14 2023-07-11 成都电通能源有限公司 Big data-based power equipment operation state monitoring method and system
CN116721556A (en) * 2023-06-13 2023-09-08 联城科技(河北)股份有限公司 Vehicle management and control method, system, equipment and medium
CN117351725A (en) * 2023-12-05 2024-01-05 文诚恒远(天津)供应链管理服务有限公司 Abnormal behavior warning method and device for car and computer readable storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111860561B (en) * 2019-12-31 2024-02-27 北京嘀嘀无限科技发展有限公司 Abnormal stay behavior identification method, device and equipment of network appointment vehicle and storage medium
CN111666971A (en) * 2020-04-27 2020-09-15 深圳壹账通智能科技有限公司 Event identification method, device and equipment based on position location and storage medium
CN116166709B (en) * 2022-11-17 2023-10-13 北京白龙马云行科技有限公司 Time length correction method, device, electronic equipment and storage medium
CN115964408B (en) * 2022-11-17 2024-04-16 北京白龙马云行科技有限公司 Time length correction method, device, electronic equipment and storage medium
CN116343484B (en) * 2023-05-12 2023-10-03 天津所托瑞安汽车科技有限公司 Traffic accident identification method, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243838A (en) * 2015-11-09 2016-01-13 北京奇虎科技有限公司 Vehicle driving safety monitoring method, device and system
US20190050711A1 (en) * 2017-08-08 2019-02-14 Neusoft Corporation Method, storage medium and electronic device for detecting vehicle crashes
CN109584133A (en) * 2018-10-15 2019-04-05 深圳壹账通智能科技有限公司 Net about vehicle method of controlling security, device, computer equipment and storage medium
CN110516964A (en) * 2019-08-27 2019-11-29 北京三快在线科技有限公司 Determine the method, apparatus and computer storage medium of prompt information
CN110555536A (en) * 2019-09-06 2019-12-10 南京领行科技股份有限公司 security prediction method, device, equipment and storage medium for network taxi appointment orders
CN111860561A (en) * 2019-12-31 2020-10-30 北京嘀嘀无限科技发展有限公司 Method, device, equipment and storage medium for identifying abnormal stopping behavior of network appointment vehicle

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109146217A (en) * 2017-06-19 2019-01-04 北京嘀嘀无限科技发展有限公司 Safety travel appraisal procedure, device, server, computer readable storage medium
CN108021625B (en) * 2017-11-21 2021-01-19 深圳广联赛讯股份有限公司 Vehicle abnormal gathering place monitoring method and system, and computer readable storage medium
CN109785595A (en) * 2019-02-26 2019-05-21 成都古河云科技有限公司 A kind of vehicle abnormality track real-time identification method based on machine learning

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243838A (en) * 2015-11-09 2016-01-13 北京奇虎科技有限公司 Vehicle driving safety monitoring method, device and system
US20190050711A1 (en) * 2017-08-08 2019-02-14 Neusoft Corporation Method, storage medium and electronic device for detecting vehicle crashes
CN109584133A (en) * 2018-10-15 2019-04-05 深圳壹账通智能科技有限公司 Net about vehicle method of controlling security, device, computer equipment and storage medium
CN110516964A (en) * 2019-08-27 2019-11-29 北京三快在线科技有限公司 Determine the method, apparatus and computer storage medium of prompt information
CN110555536A (en) * 2019-09-06 2019-12-10 南京领行科技股份有限公司 security prediction method, device, equipment and storage medium for network taxi appointment orders
CN111860561A (en) * 2019-12-31 2020-10-30 北京嘀嘀无限科技发展有限公司 Method, device, equipment and storage medium for identifying abnormal stopping behavior of network appointment vehicle

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113723473A (en) * 2021-08-12 2021-11-30 一汽解放青岛汽车有限公司 Vehicle shake recognition method and device, computer equipment and storage medium
CN113671287A (en) * 2021-08-16 2021-11-19 广东电力通信科技有限公司 Intelligent detection method and system for power grid automation terminal and readable storage medium
CN113671287B (en) * 2021-08-16 2024-02-02 广东电力通信科技有限公司 Intelligent detection method, system and readable storage medium for power grid automation terminal
CN113807871A (en) * 2021-09-30 2021-12-17 南京领行科技股份有限公司 Abnormal behavior monitoring method and device, electronic equipment and storage medium
CN114590604B (en) * 2022-01-28 2023-11-10 三一专用汽车有限责任公司 Material transport vehicle monitoring method and device and material transport vehicle
CN114590604A (en) * 2022-01-28 2022-06-07 三一专用汽车有限责任公司 Material transport vehicle monitoring method and device and material transport vehicle
CN114475256A (en) * 2022-03-11 2022-05-13 中国第一汽车股份有限公司 Method and device for predicting motor over-temperature in electric automobile
CN114475256B (en) * 2022-03-11 2024-03-19 中国第一汽车股份有限公司 Method and device for predicting motor over-temperature in electric automobile
CN115188192A (en) * 2022-07-12 2022-10-14 重庆电子工程职业学院 Automatic control parking system and method based on travel prediction
CN115188192B (en) * 2022-07-12 2023-05-23 重庆电子工程职业学院 Automatic control parking system and method based on travel prediction
CN115310204A (en) * 2022-08-09 2022-11-08 重庆大学 Intelligent tracing method for production abnormity affecting NVH performance of automobile
CN115310204B (en) * 2022-08-09 2023-07-14 重庆大学 Production anomaly intelligent tracing method for influencing NVH performance of automobile
CN115790804B (en) * 2023-02-08 2023-04-21 福建省智能交通信息工程有限公司 Dynamic truck scale state monitoring method, medium, equipment and device
CN115790804A (en) * 2023-02-08 2023-03-14 福建省智能交通信息工程有限公司 Dynamic truck scale state monitoring method, medium, equipment and device
CN116415931A (en) * 2023-03-14 2023-07-11 成都电通能源有限公司 Big data-based power equipment operation state monitoring method and system
CN116721556A (en) * 2023-06-13 2023-09-08 联城科技(河北)股份有限公司 Vehicle management and control method, system, equipment and medium
CN116721556B (en) * 2023-06-13 2024-02-06 联城科技(河北)股份有限公司 Vehicle management and control method, system, equipment and medium
CN117351725A (en) * 2023-12-05 2024-01-05 文诚恒远(天津)供应链管理服务有限公司 Abnormal behavior warning method and device for car and computer readable storage medium
CN117351725B (en) * 2023-12-05 2024-02-13 文诚恒远(天津)供应链管理服务有限公司 Abnormal behavior warning method and device for car and computer readable storage medium

Also Published As

Publication number Publication date
CN111860561A (en) 2020-10-30
CN111860561B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
WO2021135653A1 (en) Method and system for identifying abnormal stay of vehicle
TWI722302B (en) Systems and methods for transport capacity scheduling
US10689002B2 (en) System and method for determining safety score of driver
EP3258430A1 (en) Transport capacity scheduling method and system
JP2021168193A (en) Intelligent self-adaptive automobile device for measurement and integration of risk based on dynamic score using telematics connection search engine and corresponding method thereof
US20180240045A1 (en) Systems and methods for allocating sharable orders
CN114944059B (en) Method and system for determining estimated arrival time
CN110675267B (en) Method and system for carrying out vehicle insurance early warning according to real-time road conditions
JP6918137B2 (en) Driving behavior evaluation method, device and computer-readable storage medium
BR112016024779B1 (en) SERVICE PROVISION MANAGEMENT SYSTEM AND METHOD
US20220260380A1 (en) System and Method for Estimating and Predicting Vehicle Trip Energy Consumption
US20190139070A1 (en) Systems and methods for cheat examination
TWI703526B (en) Systems and methods for price estimation using machine learning techniques
CN109931856A (en) Acquisition method/system of road evenness, evaluation system, medium and server-side
CN103927866A (en) Method for forecasting traffic light waiting time of vehicle based on GPS
WO2021052451A1 (en) Method and system for determining estimated time of arrival
Amini et al. Long-term vehicle speed prediction via historical traffic data analysis for improved energy efficiency of connected electric vehicles
WO2020108219A1 (en) Traffic safety risk based group division and difference analysis method and system
CN111210537A (en) Oil consumption analysis method, device, equipment and storage medium
CN113776610A (en) Method and device for determining vehicle oil consumption
WO2023241388A1 (en) Model training method and apparatus, energy replenishment intention recognition method and apparatus, device, and medium
Pagano Intelligent transportation systems: From good practices to standards
WO2021121206A1 (en) Method for determining responsibility for service accident and system
CN111598372A (en) Risk prevention method and system
CN111598370A (en) Female safety risk prevention method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20909052

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20909052

Country of ref document: EP

Kind code of ref document: A1