Prediction method, device, electronic device and storage medium of dangerous driving area
By calculating the parameters of historical service orders, the risk index of dangerous driving is determined, which solves the problem of inaccurate prediction in the prior art and improves the accuracy of identification of areas with high incidence of drunk driving.
Patent Information
- Application Number
- CN202011285747.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-17
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing prediction methods for high incidence areas for drunk driving are simple, the prediction is inaccurate, and it is impossible to effectively identify the real high incidence areas for high incidence areas for drunk driving.
By obtaining historical service orders for the target area within the historical time period, calculating its order cancellation rate, average estimated price, average response time and average arrival time and other parameters, calculate the hazardous driving risk index, and determine whether it is High incidence area.
It improves the accuracy of dangerous driving area prediction, can more effectively identify areas with real high incidence of drunk driving, and reduces misjudgment.
Smart Images

Figure CN112270452B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for predicting a dangerous driving area. Background Art
[0002] Drunk driving is an important cause of traffic accidents. Predicting areas with high incidence of drunk driving can help relevant managers to rationally allocate manpower and material resources, increase the intensity of investigation and punishment of drunk driving, reduce traffic accidents caused by drunk driving, and protect people's lives and property.
[0003] The existing prediction of high-incidence areas of drunk driving is mostly based on statistical analysis of the starting points recorded in historical orders for designated drivers, generating a hotspot map, determining the heat of different starting points based on the hotspot map, and then predicting high-incidence areas of drunk driving.
[0004] However, since the existing prediction methods are relatively simple, there are technical problems such as inaccurate predictions. Summary of the invention
[0005] The purpose of the present application is to provide a method, device, electronic device and storage medium for predicting dangerous driving areas in order to improve the accuracy of dangerous driving area prediction in view of the deficiencies in the above-mentioned prior art.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, the present invention provides a method for predicting a dangerous driving area, comprising: obtaining historical service orders for a target area within a historical time period; obtaining service order parameters for the target area based on the historical service orders for the target area, the service order parameters including at least one of the following: order cancellation rate, average estimated price, average response time, and average arrival time of historical service orders; calculating and obtaining a dangerous driving risk index for the target area based on the service order parameters for the target area; determining whether the target area is a high-incidence area for dangerous driving based on the dangerous driving risk index and a risk index threshold for the target area.
[0008] In an optional implementation, the order cancellation rate of the historical service orders is used to indicate the ratio of the number of historical service order cancellations to the total number of historical orders; the average estimated price of the historical service orders is used to indicate the average estimated price when the service requester places an order; the average response time of the historical service orders is used to indicate the average time difference between the time when the service requester places an order and the time when the service provider accepts the order in the historical service orders; the average arrival time of the historical service orders is used to indicate the average time difference between the time when the service provider accepts the order and the time when the server provider arrives at the target area in the historical service orders.
[0009] In an optional embodiment, the service order parameters include an order cancellation rate, and calculating the dangerous driving risk index of the target area based on the service order parameters includes: determining whether the target area is an area with low incidence of dangerous driving based on the order cancellation rate and an order cancellation rate threshold; if not, calculating the dangerous driving risk index of the target area based on the service order parameters.
[0010] In an optional implementation, before obtaining the historical service orders of the target area within the historical time period, the prediction method further includes: dividing the area to be tested into a plurality of sub-areas to be tested according to a preset division method; and determining the target area according to the plurality of sub-areas to be tested.
[0011] In an optional embodiment, before determining whether the target area is a low-incidence area of dangerous driving according to the order cancellation rate and the order cancellation rate threshold, the prediction method further includes: obtaining historical service orders of each of the sub-areas to be tested within the historical time period; obtaining the order cancellation rate of each of the sub-areas to be tested according to the historical service orders of each of the sub-areas to be tested;
[0012] The order cancellation rate threshold is determined according to the order cancellation rate of each sub-area to be tested.
[0013] In an optional embodiment, before determining whether the target area is a high-incidence area of dangerous driving based on the dangerous driving risk index and the risk index threshold of the target area, the prediction method further includes:
[0014] According to the historical service orders of each of the sub-areas to be tested, service order parameters of each of the sub-areas to be tested are obtained, and the service order parameters include at least one of the following: order cancellation rate, average estimated price, average response time, and average arrival time of historical service orders; according to the service order parameters of each of the sub-areas to be tested, a dangerous driving risk index of each of the sub-areas to be tested is calculated and obtained; according to the dangerous driving risk index of each of the sub-areas to be tested, the risk index threshold is determined.
[0015] In an optional embodiment, the method of calculating the dangerous driving risk index of each sub-area to be tested based on the service order parameters of each sub-area to be tested includes: normalizing the service order parameters of each sub-area to be tested to obtain the normalized service order parameters of each sub-area to be tested; and calculating the dangerous driving risk index of each sub-area to be tested based on the normalized service order parameters of each sub-area to be tested and preset weights.
[0016] In an optional implementation manner, normalizing the service order parameters of each sub-area to be tested to obtain the normalized service order parameters of each sub-area to be tested includes:
[0017] The service order parameters of the plurality of sub-areas to be tested are sorted to obtain service order parameters whose sorting positions meet preset requirements; the service order parameters of each sub-area to be tested are normalized according to the service order parameters that meet the preset requirements to obtain the normalized service order parameters of each sub-area to be tested.
[0018] In a second aspect, the present invention provides a device for predicting dangerous driving areas, comprising: a first acquisition module, used to acquire historical service orders of a target area within a historical time period; a second acquisition module, used to acquire service order parameters of the target area based on the historical service orders of the target area, the service order parameters including at least one of the following: order cancellation rate, average estimated price, average response time, and average arrival time of historical service orders; a calculation module, used to calculate and acquire a dangerous driving risk index of the target area based on the service order parameters of the target area; a determination module, used to determine whether the target area is a high-incidence area of dangerous driving based on the dangerous driving risk index and risk index threshold of the target area.
[0019] In an optional implementation, the order cancellation rate of the historical service orders is used to indicate the ratio of the number of historical service order cancellations to the total number of historical orders; the average estimated price of the historical service orders is used to indicate the average estimated price when the service requester places an order; the average response time of the historical service orders is used to indicate the average time difference between the time when the service requester places an order and the time when the service provider accepts the order in the historical service orders; the average arrival time of the historical service orders is used to indicate the average time difference between the time when the service provider accepts the order and the time when the server provider arrives at the target area in the historical service orders.
[0020] In an optional embodiment, the calculation module is specifically used to determine whether the target area is a low-incidence area of dangerous driving based on the order cancellation rate and the order cancellation rate threshold; if not, calculate and obtain the dangerous driving risk index of the target area based on the service order parameters.
[0021] In an optional embodiment, the prediction device further includes: a division module, configured to divide the area to be tested into a plurality of sub-areas to be tested according to a preset division method; and determine a target area according to the plurality of sub-areas to be tested.
[0022] In an optional embodiment, the calculation module is also used to obtain historical service orders of each of the sub-tested areas within the historical time period; obtain the order cancellation rate of each of the sub-tested areas based on the historical service orders of each of the sub-tested areas; and determine the order cancellation rate threshold based on the order cancellation rate of each of the sub-tested areas.
[0023] In an optional embodiment, the determination module is further used to obtain service order parameters of each sub-area to be tested based on historical service orders of each sub-area to be tested, and the service order parameters include at least one of the following: order cancellation rate, average estimated price, average response time, and average arrival time of historical service orders; calculate and obtain the dangerous driving risk index of each sub-area to be tested based on the service order parameters of each sub-area to be tested; and determine the risk index threshold based on the dangerous driving risk index of each sub-area to be tested.
[0024] In an optional embodiment, the determination module is specifically used to normalize the service order parameters of each sub-area to be tested, and obtain the normalized service order parameters of each sub-area to be tested; and calculate and obtain the dangerous driving risk index of each sub-area to be tested based on the normalized service order parameters of each sub-area to be tested and preset weights.
[0025] In an optional implementation manner, the determination module is specifically configured to sort the service order parameters of the plurality of sub-areas to be tested, and obtain the service order parameters whose sorting positions meet preset requirements;
[0026] According to the service order parameters that meet the preset requirements, the service order parameters of each sub-area to be tested are normalized to obtain the normalized service order parameters of each sub-area to be tested.
[0027] In a third aspect, the present invention provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the method for predicting a dangerous driving area as described in any of the aforementioned embodiments.
[0028] In a fourth aspect, the present invention provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, executes the steps of the method for predicting a dangerous driving area as described in any one of the aforementioned embodiments.
[0029] The beneficial effects of this application are:
[0030] In the prediction method, device, electronic device and storage medium of the dangerous driving area provided by the embodiments of the present application, historical service orders of the target area within a historical time period are obtained; based on the historical service orders of the target area, service order parameters of the target area are obtained, and the service order parameters include at least one of the following: order cancellation rate, average estimated price, average response time, and average arrival time of historical service orders, so that the service process parameters of the historical service orders can be reflected through the service order parameters, and then the dangerous driving risk index of the target area is calculated and obtained according to the service order parameters of the target area. When determining whether the target area is a high-incidence area of dangerous driving based on the dangerous driving risk index and the risk index threshold of the target area, the accuracy of the prediction can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 A schematic diagram of the architecture of a dangerous driving area prediction system provided in an embodiment of the present application;
[0033] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0034] Figure 3 A flowchart of a method for predicting a dangerous driving area provided in an embodiment of the present application;
[0035] Figure 4 A schematic diagram of a flow chart of another method for predicting a dangerous driving area provided in an embodiment of the present application;
[0036] Figure 5 A schematic diagram of a flow chart of another method for predicting a dangerous driving area provided in an embodiment of the present application;
[0037] Figure 6 A schematic diagram of a flow chart of another method for predicting a dangerous driving area provided in an embodiment of the present application;
[0038] Figure 7 A schematic diagram of a flow chart of another method for predicting a dangerous driving area provided in an embodiment of the present application;
[0039] Figure 8 A schematic diagram of a flow chart of another method for predicting a dangerous driving area provided in an embodiment of the present application;
[0040] Fig. 9 A schematic diagram of a flow chart of another method for predicting a dangerous driving area provided in an embodiment of the present application;
[0041] Fig.10 A schematic diagram of functional modules of a device for predicting dangerous driving areas provided in an embodiment of the present application;
[0042] Fig.11 A schematic diagram of the functional modules of another device for predicting dangerous driving areas provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0044] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0045] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0046] The existing methods for predicting high-incidence areas of drunk driving mostly use statistical analysis of the starting points recorded in historical designated driver orders to generate a hotspot map; analysis is performed based on the starting locations recorded in the hotspot map, and the high-incidence areas and high-incidence time periods of drunk driving are determined based on the analysis results.
[0047] It can be seen that the existing prediction method for high-incidence areas of dangerous driving is relatively simple, and only the starting point heat of historical designated driver orders is considered. For example, in some cases, although there are many designated driver orders in some areas, drunk driving passengers in these areas often hire designated drivers, and no real drunk driving occurs. Therefore, some areas with many designated driver orders may not be high-incidence areas of drunk driving; on the contrary, there are few designated driver orders in some areas, which is often because the designated driver passengers cannot hire designated drivers or the designated driver fees are high, and such areas are often high-incidence areas of drunk driving, but these high-incidence areas of drunk driving cannot be predicted using the existing prediction methods.
[0048] In view of this, an embodiment of the present application provides a method for predicting a dangerous driving area, which can improve the accuracy of predicting a dangerous driving area.
[0049] Figure 1 This is a schematic diagram of the architecture of a dangerous driving area prediction system provided in an embodiment of the present application. Figure 1 As shown, the prediction system may include one or more of a server 110 , a network 120 , a terminal device 130 , and a database 140 .
[0050] In some embodiments, the server 110 may be a single server or a server group. The server group may be centralized or distributed (for example, the server 110 may be a distributed system). In some embodiments, the server 110 may be local or remote relative to the terminal device 130. For example, the server 110 may access information and / or data stored in the terminal device 130, or the database 140, or any combination thereof via the network 120. As another example, the server 110 may be directly connected to at least one of the terminal device 130 and the database 140 to access the stored information and / or data. In some embodiments, the server 110 may be implemented on a cloud platform; by way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an inter-cloud, a multi-cloud, etc., or any combination thereof.
[0051] In some embodiments, the server 110 may include a processor. The processor may process information and / or data related to the service request to perform one or more functions described in the present application. In some embodiments, the processor may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). By way of example only, the processor may include a central processing unit (CPU), an application specific integrated circuit (ASIC), an application specific instruction set processor (ASIP), a graphics processing unit (GPU), a physical processing unit (PPU), a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic device (PLD), a controller, a microcontroller unit, a reduced instruction set computer (RISC), or a microprocessor, or any combination thereof.
[0052] The network 120 can be used for the exchange of information and / or data. In some embodiments, one or more components in the prediction system can send information and / or data to other components. For example, the server 110 can obtain a service request from the terminal device 130 via the network 120. In some embodiments, the network 120 can be any type of wired or wireless network, or a combination thereof. As an example only, the network 120 can include a wired network, a wireless network, a fiber optic network, a telecommunication network, an intranet, the Internet, a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN), a metropolitan area network (MAN), a wide area network (WAN), a public switched telephone network (PSTN), a Bluetooth network, a ZigBee network, or a near field communication (NFC) network, etc., or any combination thereof. In some embodiments, the network 120 can include one or more network access points. For example, network 120 may include wired or wireless network access points, such as base stations and / or network switching nodes, through which one or more components of the prediction system may connect to network 120 to exchange data and / or information.
[0053] In some embodiments, the terminal device 130 may include a mobile device, a tablet computer, a laptop computer, or a built-in device in a motor vehicle, or any combination thereof. In some embodiments, the built-in device in the motor vehicle may include an onboard computer, an onboard television, etc. In some embodiments, the terminal device 130 may be a device with positioning technology for locating the position of the terminal. In some embodiments, the terminal device 130 may send positioning information to the server 110.
[0054] The database 140 may store data and / or instructions. In some embodiments, the database 140 may store data obtained from the terminal device 130. In some embodiments, the database 140 may store data and / or instructions of the exemplary method described in the present application. In some embodiments, the database 140 may include a large capacity memory, a removable memory, a volatile read-write memory, or a read-only memory (ROM), etc., or any combination thereof. As an example, the large capacity memory may include a disk, an optical disk, a solid-state drive, etc.; the removable memory may include a flash drive, a floppy disk, an optical disk, a memory card, a zip disk, a tape, etc.; the volatile read-write memory may include a random access memory (RAM); the RAM may include a dynamic RAM (DRAM), a double data rate synchronous dynamic RAM (DDR SDRAM); a static RAM (SRAM), a thyristor RAM (T-RAM), and a zero capacitor RAM (Zero-RAM), etc. As an example, ROM may include mask ROM (Mask Read-Only Memory, MROM), programmable ROM (Programmable Read-Only Memory, PROM), erasable programmable ROM (Programmable Erasable Read-only Memory, PEROM), electrically erasable programmable ROM (Electrically Erasable Programmable read only memory, EEPROM), CD-ROM (CD-ROM), and digital versatile disk ROM, etc. In some embodiments, database 140 may be implemented on a cloud platform. As an example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, a cross-cloud, a multi-cloud, or other similar, etc., or any combination thereof.
[0055] In some embodiments, database 140 may be connected to network 120 to communicate with one or more components in the prediction system (e.g., server 110, terminal device 130, etc.). One or more components in the prediction system may access data or instructions stored in database 140 via network 120. In some embodiments, database 140 may be directly connected to one or more components in the prediction system (e.g., server 110, terminal device 130, etc.); or, in some embodiments, database 140 may also be part of server 110.
[0056] In some embodiments, one or more components in the prediction system (e.g., server 110, terminal device 130, etc.) may have access to database 140. In some embodiments, when certain conditions are met, one or more components in the prediction system may read and / or modify information related to terminal device 130. For example, server 110 may read and / or modify information of one or more users after receiving a service request.
[0057] Figure 2 The following is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may be a computer, a processor, a user terminal, the above-mentioned server, etc. that implements the idea of the present application. Figure 2 As shown, the processor 112 can be used on the electronic device 200 and configured to execute the functions in the present application.
[0058] The electronic device 200 may be a general-purpose computer or a special-purpose computer, both of which may be used to implement the dangerous driving area prediction method of the present application. Although only one computer is shown in the present application, for convenience, the functions described in the present application may be implemented in a distributed manner on multiple similar platforms to balance the processing load.
[0059] For example, the electronic device 200 may include a network port 210 connected to a network, one or more processors 220 for executing program instructions, a communication bus 230, and storage media 240 in different forms, such as disks, ROMs, or RAMs, or any combination thereof. Exemplarily, the computer platform may also include program instructions stored in ROMs, RAMs, or other types of non-transitory storage media, or any combination thereof. The method of the present application may be implemented according to these program instructions. The electronic device 200 also includes an input / output (I / O) interface 250 between the computer and other input / output devices (e.g., keyboards, display screens).
[0060] For ease of explanation, only one processor is described in the electronic device 200. However, it should be noted that the electronic device 200 in the present application may also include multiple processors, so the steps performed by one processor described in the present application may also be performed jointly or individually by multiple processors. For example, if the processor of the electronic device 200 performs step A and step B, it should be understood that step A and step B may also be performed jointly by two different processors or individually in one processor. For example, the first processor performs step A, the second processor performs step B, or the first processor and the second processor perform steps A and B together.
[0061] Figure 3 The following is a flow chart of a method for predicting a dangerous driving area provided in an embodiment of the present application. The execution subject of the method may be the above-mentioned server. Figure 3 As shown, the method may include:
[0062] S101. Obtain historical service orders in a target area within a historical time period.
[0063] Among them, the historical time period can be a fixed time period in history, which may be different according to the category of dangerous driving behavior. For example, when the dangerous driving behavior belongs to drunk driving, the historical time period can be the time period between 9 pm and 12 pm every day. When the dangerous driving behavior belongs to drunk driving, the historical time period can be the time period between 8 pm and 12 pm every day. Of course, the application does not limit the length of the historical time period, which can be 3 hours, 5 hours, etc., nor does it limit the type of dangerous driving behavior, which may include other behaviors that affect normal driving. According to different application scenarios, historical service orders may include multiple historical orders under corresponding scenarios. For example, in the driver-designated scenario, historical service orders may include multiple historical driver-designated orders. For the target area, the historical service orders of the target area within the historical time period can be obtained. For example, the historical driver-designated orders of the target area between 9 pm and 12 pm can be obtained. In some embodiments, historical driver-designated orders can be obtained through the driver-designated platform, which is not limited in this application.
[0064] S102: Obtain service order parameters of the target area according to historical service orders of the target area.
[0065] The service order parameters include at least one of the following: order cancellation rate, average estimated price, average response time, and average arrival time of historical service orders.
[0066] After obtaining the historical service orders of the target area, the service order parameters of the target area may be further obtained, so that the historical order status in the target area may be reflected through the service order parameters.
[0067] Optionally, the service order parameters may also include other parameters, such as the service order origin, the service order destination, the service requester information, the service requester's historical order frequency, the service provider information, the service provider's service time distribution, the service provider's service area distribution, etc., which are not limited here. It is understandable that the service order parameters in different application scenarios may include corresponding order parameters. For example, in the driver-designated scenario, the driver-designated order parameters of the target area can be obtained based on the historical driver-designated order of the target area. The driver-designated order parameters may include at least one of the order cancellation rate, average estimated price, average response time, and average arrival time of the historical driver-designated order.
[0068] S103. Calculate and obtain a dangerous driving risk index of the target area according to the service order parameters of the target area.
[0069] Among them, the dangerous driving risk index can be used to indicate the probability that the target area is a high-incidence area of dangerous driving. After obtaining the service order parameters of the target area, the dangerous driving risk index of the target area can be further calculated based on the service order parameters. It can be understood that since the service order parameters of the target area can include at least one of the order cancellation rate, average estimated price, average response time, and average arrival time of historical service orders, the service process parameters of the historical service orders can be reflected according to the service order parameters.
[0070] In this application, dangerous driving behaviors may include: driving under the influence, drunk driving, and other situations that may cause dangerous driving. For example, if the dangerous driving behavior is drunk driving, and the order cancellation rate in the target area is low, it can be considered that the drunk driving passengers in the target area have basically called a designated driver, and it is understandable that no real drunk driving has occurred at this time; on the contrary, if the order cancellation rate in the target area is high, it can be considered that the drunk driving passengers in the target area have canceled the designated driver order, and the target area is likely to be a high-incidence area of drunk driving.
[0071] S104: Determine whether the target area is a high-incidence area of dangerous driving based on the dangerous driving risk index and the risk index threshold of the target area.
[0072] Optionally, the risk index threshold can be set based on historical experience, for example, it can be set based on the situation of traffic management personnel checking high-risk areas for dangerous driving, which is not limited here. After obtaining the dangerous driving risk index of the target area, it can be further determined whether the target area is a high-risk area for dangerous driving based on the dangerous driving risk index and the risk index threshold. Optionally, if the dangerous driving risk index of the target area is greater than the risk index threshold, the target area can be considered to be a high-risk area for dangerous driving, but is not limited to this.
[0073] In summary, the dangerous driving area prediction method provided in the embodiment of the present application obtains historical service orders of the target area within a historical time period; based on the historical service orders of the target area, service order parameters of the target area are obtained, and the service order parameters include at least one of the following: order cancellation rate, average estimated price, average response time, and average arrival time of the historical service orders, so that the service process parameters of the historical service orders can be reflected through the service order parameters, and then the dangerous driving risk index of the target area is calculated and obtained according to the service order parameters of the target area. According to the dangerous driving risk index and the risk index threshold of the target area, when determining whether the target area is a high-incidence area of dangerous driving, the accuracy of the prediction can be improved.
[0074] Optionally, the order cancellation rate of historical service orders is used to indicate the ratio of the number of historical service order cancellations to the total number of historical orders; the average estimated price of historical service orders is used to indicate the average estimated price when the service requester places an order; the average response time of historical service orders is used to indicate the average time difference between the time the service requester places an order and the time the service provider accepts the order in the historical service orders; the average arrival time of historical service orders is used to indicate the average time difference between the time the service provider accepts the order and the time the server provider arrives at the target area in the historical service orders.
[0075] Among them, taking the example of dangerous driving behavior belonging to drunk driving, the order cancellation rate of historical service orders can be calculated based on the ratio of the number of cancellation orders of designated drivers and / or designated passengers to the total number of historical designated driver orders; the average estimated price of historical service orders can be calculated based on the estimated price when the designated driver passengers placed an order and the total number of historical designated driver orders. It can be understood that the estimated price when the designated driver passengers placed an order can be calculated based on the distance, time period and preset estimation algorithm in the designated driver order submitted by the designated driver passenger. After obtaining the estimated price of each historical designated driver order, the estimated price of each historical designated driver order can be summed to obtain the total estimated price, and then the average estimated price of historical service orders can be further calculated based on the total estimated price and the total number of historical designated driver orders.
[0076] For the average response time of historical service orders, the average response time of historical service orders can be calculated based on the time difference between the time when the designated driver passenger places an order and the time when the designated driver accepts the order, as well as the total number of historical designated driver orders. In some embodiments, for example, the time difference between the time when the designated driver passenger places an order and the time when the designated driver accepts the order in each historical designated driver order can be obtained, and then the average response time of the historical service order can be further calculated based on each time difference and the total number of historical designated driver orders; in addition, for the average arrival time of historical service orders, the average arrival time can indicate the average time difference between the time when the designated driver accepts the order and the time when the designated driver arrives at the target area. The calculation process can refer to the calculation process of the above-mentioned average response time, and this application will not repeat it here.
[0077] It can be seen that the above-mentioned order parameters can reflect the service process parameters of the historical service orders of the target area, and then the dangerous driving risk index of the target area can be calculated based on the service order parameters of the target area. According to the dangerous driving risk index and risk index threshold of the target area, it can be determined whether the target area is a high-incidence area of dangerous driving, which can improve the accuracy of the prediction.
[0078] Figure 4 A flowchart of another method for predicting dangerous driving areas provided in an embodiment of the present application. Figure 4 As shown, the above service order parameters include the order cancellation rate. According to the service order parameters, the dangerous driving risk index of the target area is calculated and obtained, including:
[0079] S201. Determine whether the target area is a low-incidence area of dangerous driving based on the order cancellation rate and the order cancellation rate threshold.
[0080] S202: If not, calculate and obtain the dangerous driving risk index of the target area according to the service order parameters.
[0081] In some embodiments, in order to improve the efficiency of prediction, if the service order parameters include an order cancellation rate, when making a prediction, it is possible to determine whether the target area is a low-incidence area for dangerous driving based on the order cancellation rate and the order cancellation rate threshold. It is understandable that, for example, dangerous driving behavior belongs to drunk driving behavior. Generally speaking, the designated driver order will not be canceled after the designated driver passenger places an order, but there are cases where the designated driver passenger cancels the designated driver order due to misoperation. Therefore, the order cancellation rate of the target area can be obtained, and the relationship between the order cancellation rate of the target area and the order cancellation rate threshold can be compared. Optionally, if the order cancellation rate of the target area is less than the order cancellation rate threshold, it can be determined that the target area is a low-incidence area for dangerous driving. Otherwise, the dangerous driving risk index of the target area can be further calculated based on the service order parameters, and the target area can be determined to be a high-incidence area for dangerous driving through the dangerous driving risk index. By using the embodiments of the present application, it is possible to quickly determine whether the target area is a low-incidence area for dangerous driving, and then improve the prediction efficiency and accuracy when determining whether the target area is a high-incidence area for dangerous driving.
[0082] Figure 5 A flowchart of another method for predicting a dangerous driving area provided in an embodiment of the present application is shown below. Figure 5 As shown, before obtaining the historical service orders of the target area within the historical time period, the above prediction method further includes:
[0083] S301: Divide the area to be tested into a plurality of sub-areas to be tested according to a preset division method.
[0084] S302: Determine a target area according to a plurality of sub-areas to be tested.
[0085] The area to be tested can be any area to be predicted, for example, it can be XXX County, XXX City, etc., and this application is not limited here. For the area to be tested, the area to be tested can be divided into multiple sub-areas to be tested according to a preset division method. For example, when the area to be tested is XXX City, the area to be tested can be divided into multiple administrative districts. Alternatively, the area to be tested can be divided into multiple sub-areas to be tested with equal areas according to a preset area, which is not limited here.
[0086] Among them, after the area to be tested is divided into multiple sub-areas to be tested, the target area can be determined based on the multiple sub-areas to be tested. In some embodiments, the target area may include at least one sub-area to be tested, for example, it may include 2 sub-areas to be tested, or it may include 5 sub-areas to be tested, which is not limited in the present application.
[0087] Figure 6 A flowchart of another method for predicting dangerous driving areas provided in an embodiment of the present application. Figure 6As shown, before determining whether the target area is a low-incidence area of dangerous driving based on the order cancellation rate and the order cancellation rate threshold, the above prediction method further includes:
[0088] S401: Obtain historical service orders for each sub-area to be tested within a historical time period.
[0089] S402: Obtain the order cancellation rate of each sub-area to be tested based on the historical service orders of each sub-area to be tested.
[0090] S403: Determine an order cancellation rate threshold according to the order cancellation rate of each sub-area to be tested.
[0091] Among them, after dividing the area to be tested into multiple sub-areas to be tested, the historical service orders of each sub-area to be tested in the historical time period can be obtained, and the order cancellation rate of each sub-area to be tested can be obtained according to the historical service orders of each sub-area to be tested, and then the order cancellation rate threshold can be determined according to the order cancellation rate of each sub-area to be tested.
[0092] In some embodiments, the order cancellation rate of each sub-area to be tested may be sorted (for example, from small to large), and the order cancellation rate that meets the preset conditions at the sorted position may be obtained, and the order cancellation rate that meets the preset conditions may be used as the order cancellation rate threshold. For example, it may be the quantile of the order cancellation rate of all sub-areas to be tested, and the order cancellation rate corresponding to the quantile may be used as the order cancellation rate threshold. However, the actual determination method is not limited to this and may vary according to the actual application scenario.
[0093] Figure 7 A flowchart of another method for predicting a dangerous driving area provided in an embodiment of the present application is shown below. Figure 7 As shown, according to the dangerous driving risk index and the risk index threshold of the target area, before determining whether the target area is a high-incidence area of dangerous driving, the risk index threshold can be determined in the following manner. The above prediction method also includes:
[0094] S501. Obtain service order parameters of each sub-area to be tested according to the historical service orders of each sub-area to be tested.
[0095] The service order parameters include at least one of the following: order cancellation rate, average estimated price, average response time, and average arrival time of historical service orders.
[0096] S502: Calculate and obtain the dangerous driving risk index of each sub-area to be tested according to the service order parameters of each sub-area to be tested.
[0097] S503: Determine a risk index threshold according to the dangerous driving risk index of each sub-area to be tested.
[0098] Among them, for each sub-area to be tested, the service order parameters of each sub-area to be tested can be obtained, and the dangerous driving risk index of each sub-area to be tested can be calculated based on the service order parameters of each sub-area to be tested. After the dangerous driving risk index of each sub-area to be tested is obtained, in some embodiments, the dangerous driving risk index of each sub-area to be tested can be sorted to obtain the sorting result. According to the sorting result, the dangerous driving risk index of the sub-area to be tested whose sorting position meets the preset sorting requirements is used as the risk index threshold. For example, the risk index threshold can be the dangerous driving risk index of the sub-area to be tested whose sorting position is at the 95% percentile. When subsequently judging whether the target area is a high-incidence area of dangerous driving, it can be determined based on the dangerous driving risk index of the target area and the calculated risk index threshold.
[0099] Optionally, according to actual application scenarios, different scenarios may correspond to different preset sorting requirements, and the preset sorting requirements may also be set in combination with historical experience, which is not limited in this application.
[0100] Figure 8 A flowchart of another method for predicting dangerous driving areas provided in an embodiment of the present application. Figure 8 As shown, the dangerous driving risk index of each sub-area to be tested is calculated based on the service order parameters of each sub-area to be tested, including:
[0101] S601: Normalize the service order parameters of each sub-area to be tested, and obtain the normalized service order parameters of each sub-area to be tested.
[0102] It is understandable that when the service order parameters include at least two of the order cancellation rate, average estimated price, average response time, and average arrival time of historical service orders, since the units of different order parameters are different, it is necessary to normalize the service order parameters. Optionally, when normalizing the service order parameters of each sub-area to be tested, the service order parameters of each sub-area to be tested in the area to be tested can be combined for calculation.
[0103] S602: Calculate and obtain the dangerous driving risk index of each sub-area to be tested based on the normalized service order parameters and preset weights of each sub-area to be tested.
[0104] The preset weights may be set based on historical experience, city attributes of the area to be tested, etc., and may include corresponding multiple weight parameters according to the number of order parameters included in the service order parameters in the sub-area to be tested. Optionally, the city attributes may include first-tier cities, second-tier cities, and third-tier cities, etc. Different preset weights may be set according to the city level to which the area to be tested belongs.
[0105] For example, the service order parameters of a sub-test area include the order cancellation rate of historical service orders. rate , average estimated priceest amt , average response time ansr dur and the average arrival time dur Correspondingly, the preset weight may include a weight parameter δ corresponding to the order cancellation rate, a weight parameter γ corresponding to the average estimated price, a weight parameter μ corresponding to the average response time, and a weight parameter β corresponding to the average arrival time. In some embodiments, the Risk Index of Dangerous Driving (RIDD) of the sub-test area can be calculated according to the following formula: RIDD = δ*cancel rate +γ*est amt +μ*ansr dur +β*arrive dur Of course, the actual calculation method is not limited to this and can be adaptively adjusted according to the actual application scenario.
[0106] It can be understood that, for the target area, the calculation method of the dangerous driving risk index of the target area can refer to the calculation process of the above-mentioned sub-test area, that is, the service order parameters of the target area can be normalized to obtain the normalized service order parameters of the target area; according to the normalized service order parameters of the target area and the preset weights, the dangerous driving risk index of the target area is calculated.
[0107] Fig. 9 A flowchart of another method for predicting a dangerous driving area provided in an embodiment of the present application is shown below. Fig. 9 As shown, the above-mentioned normalization process is performed on the service order parameters of each sub-area to be tested, and the normalized service order parameters of each sub-area to be tested are obtained, including:
[0108] S701. Sort the service order parameters of multiple sub-areas to be tested, and obtain the service order parameters whose sorting positions meet preset requirements.
[0109] S702: Normalize the service order parameters of each sub-area to be tested according to the service order parameters that meet the preset requirements, and obtain the normalized service order parameters of each sub-area to be tested.
[0110] Among them, after obtaining the service order parameters of multiple sub-areas to be tested in the area to be tested, the service order parameters of the multiple sub-areas to be tested can be sorted to obtain service order parameters whose sorting positions meet the preset requirements. For example, the service order parameters whose sorting positions are at the 95% percentile can be obtained according to the sorting order from small to large. According to the service order parameters whose sorting positions are at the 95% percentile, the service order parameters of each sub-area to be tested are normalized, so that the normalized service order parameters of each sub-area to be tested can be obtained. Of course, the present application does not limit the preset requirements here. According to the actual application scenario, it can also be the service order parameters whose sorting positions are at the 85% percentile, which is not limited here.
[0111] For example, the service order parameters of a sub-area to be tested in the area to be tested include the average estimated price of historical service orders. Optionally, the average estimated price of historical service orders of the sub-area to be tested can be normalized in the following manner to obtain the normalized average estimated price parameter of the sub-area to be tested. Among them, the estimated prices of historical service orders of multiple sub-areas to be tested in the area to be tested can be obtained; the estimated prices of historical service orders of the multiple sub-areas to be tested can be sorted, and the estimated price of historical service orders of the sub-area to be tested whose sorting position is at the 95% percentile can be obtained as a reference price; the ratio between the estimated price of the historical service order of the sub-area to be tested and the reference price is calculated, and the ratio is used as the normalized average estimated price parameter of the sub-area to be tested. Of course, the actual calculation method is not limited to this.
[0112] It is understandable that, after determining that the target area is a high-risk area for dangerous driving, the category of the high-risk area for dangerous driving to which the target area belongs can be further identified based on the service order parameters of the target area. Optionally, the categories of high-risk areas for dangerous driving may include: high-risk areas for dangerous driving with a large number of service orders and a high order cancellation rate, and high-risk areas for dangerous driving with a small number of service orders and service providers, but the present invention is not limited thereto and may include other categories according to actual application scenarios.
[0113] Fig.10 This is a functional module diagram of a prediction device for dangerous driving areas provided in an embodiment of the present application. The prediction device may be the aforementioned server. The basic principle and technical effects of the device are the same as those of the aforementioned corresponding method embodiment. For the sake of brief description, the parts not mentioned in this embodiment may refer to the corresponding contents in the method embodiment. Fig.10 As shown, the prediction device 300 includes:
[0114] A first acquisition module 310 is used to acquire historical service orders of a target area within a historical time period;
[0115] The second acquisition module 320 is used to acquire service order parameters of the target area according to historical service orders of the target area, where the service order parameters include at least one of the following: order cancellation rate, average estimated price, average response time, and average arrival time of historical service orders;
[0116] A calculation module 330 is used to calculate and obtain a dangerous driving risk index of a target area according to the service order parameters of the target area;
[0117] The determination module 340 is used to determine whether the target area is a high-incidence area of dangerous driving according to the dangerous driving risk index and the risk index threshold of the target area.
[0118] In an optional implementation, the order cancellation rate of historical service orders is used to indicate the ratio of the number of historical service order cancellations to the total number of historical orders; the average estimated price of historical service orders is used to indicate the average estimated price when the service requester places an order; the average response time of historical service orders is used to indicate the average time difference between the time the service requester places an order and the time the service provider accepts the order in the historical service orders; the average arrival time of historical service orders is used to indicate the average time difference between the time the service provider accepts the order and the time the server provider arrives at the target area in the historical service orders.
[0119] In an optional embodiment, the calculation module 330 is specifically used to determine whether the target area is a low-incidence area of dangerous driving based on the order cancellation rate and the order cancellation rate threshold; if not, calculate and obtain the dangerous driving risk index of the target area based on the service order parameters.
[0120] Fig.11 A schematic diagram of the functional modules of another device for predicting dangerous driving areas provided in an embodiment of the present application. Fig.11 As shown, the prediction device 300 further includes: a division module 350, which is used to divide the area to be tested into a plurality of sub-areas to be tested according to a preset division method; and determine the target area according to the plurality of sub-areas to be tested.
[0121] In an optional implementation, the calculation module 330 is also used to obtain historical service orders for each sub-area to be tested within a historical time period; obtain the order cancellation rate of each sub-area to be tested based on the historical service orders of each sub-area to be tested; and determine the order cancellation rate threshold based on the order cancellation rate of each sub-area to be tested.
[0122] In an optional embodiment, the determination module 340 is further used to obtain service order parameters for each sub-area to be tested based on historical service orders of each sub-area to be tested, the service order parameters including at least one of the following: order cancellation rate, average estimated price, average response time, and average arrival time of historical service orders; calculate and obtain a dangerous driving risk index for each sub-area to be tested based on the service order parameters of each sub-area to be tested; and determine a risk index threshold based on the dangerous driving risk index of each sub-area to be tested.
[0123] In an optional implementation, the determination module 340 is specifically used to normalize the service order parameters of each sub-area to be tested, and obtain the normalized service order parameters of each sub-area to be tested; based on the normalized service order parameters of each sub-area to be tested and preset weights, calculate and obtain the dangerous driving risk index of each sub-area to be tested.
[0124] In an optional implementation, the determination module 340 is specifically used to sort the service order parameters of multiple sub-areas to be tested, and obtain the service order parameters whose sorting positions meet the preset requirements; based on the service order parameters that meet the preset requirements, the service order parameters of each sub-area to be tested are normalized to obtain the normalized service order parameters of each sub-area to be tested.
[0125] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0126] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0127] Optionally, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method embodiment are executed. The specific implementation method and technical effect are similar and will not be repeated here.
[0128] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0129] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0130] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0131] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0132] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0133] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for predicting dangerous driving areas, characterized in that: include: Obtaining historical service orders for a target area within a historical time period, wherein the historical time period varies according to the type of dangerous driving behavior; Acquire service order parameters of the target area according to the historical service orders of the target area, wherein the service order parameters include at least one of the following: an order cancellation rate, an average estimated price, an average response time, and an average arrival time of the historical service orders, wherein the order cancellation rate of the historical service orders is used to indicate the ratio of the number of historical service order cancellations to the total number of historical orders; Determining whether the target area is a low-incidence area of dangerous driving according to the order cancellation rate and the order cancellation rate threshold; If not, calculating and obtaining the dangerous driving risk index of the target area according to the service order parameters of the target area; Determine whether the target area is a high-incidence area of dangerous driving according to the dangerous driving risk index and the risk index threshold of the target area, The dangerous driving behavior includes drunk driving, and the method further includes: If the order cancellation rate in the target area is low, it is determined that all drunk driving passengers in the target area have called a designated driver, and no real drunk driving has occurred at this time; If the order cancellation rate in the target area is high, it is determined that drunk driving passengers in the target area have canceled the designated driver orders placed, and the target area is likely to be a high-incidence area of drunk driving.
2. The prediction method according to claim 1, characterized in that: The average estimated price of the historical service orders is used to indicate the average estimated price when the service requester places an order; The average response time of the historical service orders is used to indicate the average time difference between the time when the service requester places an order and the time when the service provider receives the order in the historical service orders; The average arrival time of the historical service orders is used to indicate the average time difference between the time when the service provider receives the order and the time when the service provider arrives at the target area in the historical service orders.
3. The prediction method according to claim 1, characterized in that: Before obtaining the historical service orders of the target area within the historical time period, the prediction method further includes: Divide the area to be tested into multiple sub-areas to be tested according to a preset division method; A target area is determined according to the plurality of sub-areas to be tested.
4. The prediction method according to claim 3, characterized in that: Before determining whether the target area is a low-incidence area of dangerous driving according to the order cancellation rate and the order cancellation rate threshold, the prediction method further includes: Obtaining historical service orders for each of the sub-areas to be tested within the historical time period; According to the historical service orders of each sub-area to be tested, the order cancellation rate of each sub-area to be tested is obtained; The order cancellation rate threshold is determined according to the order cancellation rate of each sub-area to be tested.
5. The prediction method according to claim 3, characterized in that: Before determining whether the target area is a high-incidence area of dangerous driving according to the dangerous driving risk index and the risk index threshold of the target area, the prediction method further includes: According to the historical service orders of each sub-area to be tested, obtaining service order parameters of each sub-area to be tested, wherein the service order parameters include at least one of the following: order cancellation rate, average estimated price, average response time, and average arrival time of historical service orders; Calculate and obtain the dangerous driving risk index of each sub-area to be tested according to the service order parameters of each sub-area to be tested; The risk index threshold is determined according to the dangerous driving risk index of each of the sub-areas to be tested.
6. The prediction method according to claim 5, characterized in that: The step of calculating and obtaining the dangerous driving risk index of each sub-area to be tested according to the service order parameter of each sub-area to be tested includes: Normalizing the service order parameters of each sub-area to be tested, and obtaining the normalized service order parameters of each sub-area to be tested; The dangerous driving risk index of each sub-area to be tested is calculated and obtained according to the normalized service order parameters and preset weights of each sub-area to be tested.
7. The prediction method according to claim 6, characterized in that: The normalizing the service order parameters of each sub-area to be tested to obtain the normalized service order parameters of each sub-area to be tested includes: Sorting the service order parameters of the plurality of sub-areas to be tested, and obtaining the service order parameters whose sorting positions meet the preset requirements; According to the service order parameters that meet the preset requirements, the service order parameters of each sub-area to be tested are normalized to obtain the normalized service order parameters of each sub-area to be tested.
8. A device for predicting dangerous driving areas, characterized in that: include: A first acquisition module is used to acquire historical service orders of a target area within a historical time period, wherein the historical time period varies according to the type of dangerous driving behavior; A second acquisition module is used to acquire service order parameters of the target area according to historical service orders of the target area, wherein the service order parameters include at least one of the following: an order cancellation rate, an average estimated price, an average response time, and an average arrival time of historical service orders, wherein the order cancellation rate of historical service orders is used to indicate the ratio of the number of historical service order cancellations to the total number of historical orders; A calculation module, used for determining whether the target area is a low-incidence area of dangerous driving according to the order cancellation rate and the order cancellation rate threshold; If not, calculating and obtaining the dangerous driving risk index of the target area according to the service order parameters of the target area; a determination module, for determining whether the target area is a high-incidence area of dangerous driving according to the dangerous driving risk index and the risk index threshold of the target area, The dangerous driving behavior includes drunk driving, and the determination module is further configured to: If the order cancellation rate in the target area is low, it is determined that all drunk driving passengers in the target area have called a designated driver, and no real drunk driving has occurred at this time; If the order cancellation rate in the target area is high, it is determined that drunk driving passengers in the target area have canceled the designated driver orders placed, and the target area is likely to be a high-incidence area of drunk driving.
9. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the method for predicting a dangerous driving area as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for predicting a dangerous driving area according to any one of claims 1 to 7 are executed.
