CN114722093A - Privacy calculation system, method and application of total driving time of taxi appointment drivers - Google Patents
Privacy calculation system, method and application of total driving time of taxi appointment drivers Download PDFInfo
- Publication number
- CN114722093A CN114722093A CN202210281333.0A CN202210281333A CN114722093A CN 114722093 A CN114722093 A CN 114722093A CN 202210281333 A CN202210281333 A CN 202210281333A CN 114722093 A CN114722093 A CN 114722093A
- Authority
- CN
- China
- Prior art keywords
- calculation
- privacy
- time
- data
- driver
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Probability & Statistics with Applications (AREA)
- Software Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Traffic Control Systems (AREA)
Abstract
The invention relates to a privacy calculation system, a privacy calculation method and application of the total driving time of a network car booking driver.A time sequence database synchronizes and corresponds to driver order data of a network car booking platform in real time; the method comprises the steps that a privacy calculation center end receives a driver working time inquiry request; the privacy calculation access ends receive the privacy calculation requests sent by the privacy calculation center end, form calculation tasks and send the calculation tasks to the time sequence database; the time sequence database reads corresponding data based on the calculation task and calculates; the privacy calculation access end reads a calculation result of the time sequence database; sending the calculation result to a privacy calculation center end; and the privacy calculation center end accumulates the calculation results sent by the privacy calculation access ends to obtain the total working time of the driver in a specific time period. The method and the system realize the calculation of the total driving time of the cross-platform online car booking driver, and protect the privacy data and the business secrets of the online car booking company through privacy calculation.
Description
Technical Field
The invention relates to the technical field of privacy calculation, in particular to a privacy calculation system, a privacy calculation method and application of the total driving time of a car booking driver.
Background
With the development of society, the travel modes of people are enriched, such as private cars, subways, buses and the like. Thanks to the rapid development of the internet, the online taxi appointment also becomes an increasingly important travel mode for people. But the net appointment vehicle provides convenience for people to go out and has a small hidden danger. For example, to prevent fatigue driving, a single network car booking platform usually only allows a specific network car booking to operate continuously for 3-4 hours, or not more than 8 hours in a cumulative way, and when the limit is exceeded, no order is sent for the time of the network car booking. However, due to the existence of the network car booking platforms, a network car booking driver can register in the network car booking platforms respectively, and when the operation time of one network car booking platform reaches the upper limit and cannot distribute orders, the other network car booking platform is replaced to continue operation. This makes it possible for the driver to continue to be in a state of fatigue driving, which is detrimental not only to the personal safety of the driver and passengers, but also to the safety of people and other vehicles travelling on the road.
At present, various items of data of a driver are usually stored in a database, and when the operation duration of the driver is determined, various items of time-related data need to be extracted from the database and calculated, so that the operation duration is determined, and the data processing efficiency is low.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a privacy calculation system, a privacy calculation method and application of the total driving time of a car booking driver, and the data processing efficiency is improved.
In order to achieve the purpose, the invention provides a privacy calculation system for the total driving time of a car booking driver, which comprises a privacy calculation center end and a plurality of distributed calculation ends;
the computing end comprises a privacy computing access end and a time sequence database;
the privacy calculation access end receives a driver working time privacy calculation request sent by the privacy calculation center end within a specific time period, forms a calculation task related to time sequence data, sends the calculation task to the time sequence database, reads a calculation result of the time sequence database, determines intermediate data according to the calculation result, and sends the intermediate data to the privacy calculation center end;
the time sequence database is used for synchronizing driver order dispatching data and driver driving data of the corresponding network car booking platform in real time; reading corresponding time series data based on the calculation task and calculating to form a calculation result;
the privacy calculation center end receives the inquiry request of the working time of the driver and sends the privacy calculation request of the working time of the driver in a specific time period to the privacy calculation access ends; and determining the total working time of the driver in a specific period based on the intermediate data sent by each privacy calculation access terminal.
Further, the privacy computation access terminal receives a privacy computation request to determine a data extraction rule and data computation algorithm information related to the time series data to form a computation task, and sends the computation task to the time sequence database;
the time sequence database receives a calculation task from the privacy calculation access end, extracts time sequence data according to a data extraction rule, calculates the time sequence data according to data calculation algorithm information, and forms a calculation result to be fed back to the privacy calculation access end;
and the privacy calculation access end receives the calculation result from the time sequence database, and performs encryption conversion on the calculation result to form intermediate data so as to feed the intermediate data back to the privacy calculation center end.
Further, the calculating the time series data according to the data calculation algorithm information to form a calculation result includes:
and calling a function according to the data calculation algorithm information to calculate the time series data according to the function so as to form a calculation result.
Further, the extracting time series data according to the data extraction rule, and calculating the time series data according to the data calculation algorithm information to form a calculation result, includes:
extracting time series data related to the operation state according to a first data extraction rule, and calculating the time series data according to data calculation algorithm information to determine a first calculation result;
extracting time series data related to low-speed running in the idle running state according to a second data extraction rule, and calculating the time series data according to data calculation algorithm information to determine a second calculation result;
extracting time series data related to high-speed running in the idle running state according to a third data extraction rule, and calculating the time series data according to data calculation algorithm information to determine a third calculation result;
and determining the calculation result according to the first calculation result, the second calculation result and the third calculation result.
Further, the privacy computation center end acquires intermediate data from at least one privacy computation access end, and performs operation on the intermediate data of at least one privacy access end to determine the total working time;
and judging whether the total working time exceeds a fatigue degree threshold value or not to determine a fatigue analysis result.
Furthermore, the privacy computation access end of each computation end and the time sequence database adopt the same container (Docker); or the time sequence database is provided by a network car appointment platform.
The second aspect provides a privacy calculation method for the total driving time of taxi appointment drivers, which comprises the following steps:
the time sequence database synchronously corresponds to driver order dispatching data and driver driving data of the network appointment platform in real time;
the privacy calculation center end receives the inquiry request of the working time of the driver and sends the privacy calculation request of the working time of the driver in a specific time period to the privacy calculation access ends;
the privacy calculation access ends receive the privacy calculation requests sent by the privacy calculation center end, form calculation tasks related to the time sequence data and send the calculation tasks to the time sequence database;
the time sequence database reads corresponding data based on the calculation task and calculates;
the privacy computation access end reads the computation result of the time sequence database, determines intermediate data according to the computation result, and sends the intermediate data to the privacy computation center end;
and the privacy calculation center end determines the total working time of a driver in a specific period based on the intermediate data sent by each privacy calculation access end.
And a third aspect provides a network car booking driver dispatching method, wherein after the driver is on line on a network car booking platform and/or before the driver is dispatched, the total working time of the driver in a specific time period is obtained by adopting the privacy calculation method of the total driving time of the network car booking driver, and when the total driving time exceeds a fatigue threshold value, the driver is forbidden to dispatch the order.
A fourth aspect provides an electronic device, comprising a processor and a memory, wherein the memory is used for storing program instructions, and the processor is used for calling the program instructions to execute the privacy calculation method for the total driving time of the taxi appointment driver.
A fifth aspect provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, is a method for privacy calculation of a total driving duration of a vehicle-reserving driver.
The technical scheme of the invention has the following beneficial technical effects:
(1) the method and the system realize the calculation of the total driving time of the cross-platform online car booking driver, and protect the privacy data and the business secrets of the online car booking company through privacy calculation.
(2) According to the invention, partial calculation tasks are distributed to the time sequence database through the privacy calculation access end, and the characteristic that the time sequence database calculates time sequence data quickly is utilized, so that the privacy safety calculation processing efficiency is greatly improved.
(3) The privacy calculation access end is interacted with the time sequence database in a privacy query mode, and under the condition that the time sequence database has data leakage risks, the privacy data and the business secrets of the network car booking company can still be guaranteed to be protected in a query link.
Drawings
FIG. 1 is a schematic diagram of a net appointment driver driving duration privacy calculation system according to some embodiments;
FIG. 2 is a flow diagram of a method for providing privacy calculations of a total driving duration of a taxi appointment driver in accordance with certain embodiments;
fig. 3 is a schematic diagram of the electronic device.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the accompanying drawings in combination with the embodiments. It is to be understood that these descriptions are only illustrative and are not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.
In some embodiments, a privacy calculation system for the total driving time of a taxi appointment driver comprises a privacy calculation center end and a plurality of distribution calculation ends.
The calculation end comprises a privacy calculation access end and a time sequence database.
The privacy calculation access end receives a driver working time privacy calculation request sent by the privacy calculation center end in a specific time period, forms related calculation tasks related to time sequence data, sends the related calculation tasks to the time sequence database, reads calculation results of the time sequence database, determines intermediate data according to the calculation results, and sends the intermediate data to the privacy calculation center end.
In one embodiment, in order to avoid revealing data required by the privacy computation access terminal in the time sequence database computation process or revealing data required by the time sequence database computation, the privacy computation access terminal obtains a computation result from the time sequence database in a privacy computation mode, for example, a privacy information retrieval PIR or a privacy set intersection PSI is adopted. In this way, acquisition of data involved in the privacy calculation is avoided, avoiding the intention of acquiring the privacy calculation.
Further, the privacy computation access terminal receives the computation result from the time sequence database, and performs encryption conversion on the computation result to form intermediate data so as to feed the intermediate data back to the privacy computation center terminal. The calculation result can be processed by adopting modes such as state encryption, data conversion and the like to form intermediate data, and the privacy calculation center end can calculate the intermediate data or can calculate the intermediate data after restoring the intermediate data.
The specific time period is, for example, 24 hours, 12 hours or 8 hours, as determined by the need.
The time sequence database is used for synchronizing driver order dispatching data and driver driving data of the corresponding network car booking platform in real time; and reading and calculating corresponding time series data based on the calculation task to form a calculation result.
Further, the time sequence database receives a calculation task i initiated by the privacy calculation access end according to the calculation task; and extracting data required by calculating the calculation task i, calling a corresponding function, completing the calculation of the calculation task i, and forming a calculation result. The time sequence database is used for storing time related data (various items of time data in the operation process, such as order starting time, order ending time and the like) of users (drivers). In an alternative embodiment, the time sequence database in the present invention may periodically calculate the time sequence data of the user (driver) to form a pre-calculation result, for example, the time sequence database may count the time length information of the user in a specific time period once per minute as the pre-calculation result; the time sequence database can extract a pre-calculation result according to the calculation task so as to determine the calculation result of the calculation task; the time sequence database can also periodically (for example, once per minute) send a pre-calculation result to the privacy calculation access terminal, and the privacy calculation access terminal can determine the working time of the user according to the pre-calculation result sent by the time sequence database.
In an optional embodiment, the privacy computation access terminal may receive a working time query request sent by the privacy computation center terminal to determine a data extraction rule and data computation algorithm information related to time series data to form a corresponding processing task, where the processing task may include at least one computation task, and the computation task may be processed by a time series database, or may be processed by the privacy computation access terminal, and may be configured according to a requirement, for example, the computation task related to the time series data may be sent to the time series database, and may be computed by the time series database, and the privacy data access terminal may process other computation tasks.
In addition, in an optional embodiment, the process of generating the computation task may also be completed at the privacy computation center side, and the privacy computation center side may generate the computation task according to the working time query request, send the computation task to the privacy computation access side, and send the computation task to the time sequence database through the privacy computation access side for computation, thereby determining the computation result.
The data extraction rule comprises information such as user information, information interval, order starting time, order ending time and the like so as to extract corresponding data. The information interval can be understood as a time period, for example, the information interval is different time periods such as morning, afternoon and evening of the day, so as to obtain data in the corresponding time period. The data calculation algorithm information may include an algorithm name of the algorithm to be called, and the timing database calls the algorithm according to the algorithm name, for example, calls an algorithm that subtracts the order ending time from the order starting time.
In a specific embodiment, extracting time-series data according to a data extraction rule, and calculating the time-series data according to data calculation algorithm information to form a calculation result, including:
and extracting time series data related to the operation state according to a first data extraction rule, and calculating the time series data according to data calculation algorithm information to determine a first calculation result. And the time series data related to the operation state is related data from the driver to the end of the order after the order is received. The first data extraction rule may, for example, perform data extraction from the driver order pickup time to the order end time.
And according to a second data extraction rule, extracting time series data related to low-speed running in the idle running state, and calculating the time series data according to data calculation algorithm information to determine a second calculation result.
The second data extraction rule includes, for example, setting a speed threshold to distinguish between high-speed operation and low-speed operation. If the running speed is larger than the set threshold value in the non-working time period, the threshold value is selected to be 10 kM/h-15 kM/h for example, and the driver is considered to be in a low-speed state. High speed operation if the speed is above the speed threshold, otherwise low speed operation. The speed threshold may be set, for example, to 30 to 40 kM/h. The second calculation result, for example, characterizes the speed of operation as low speed operation.
And according to a third data extraction rule, extracting time series data related to high-speed running in the idle running state, and calculating the time series data according to data calculation algorithm information to determine a third calculation result. The third data extraction rule is, for example, to extract high-speed operation data and to perform division of time periods. The third calculation result, for example, indicates that the speed of operation is low speed operation. Different proportionality coefficients can be set for different speeds, a weighting calculation result can be returned after the privacy calculation access end performs weighting calculation, or the privacy calculation access end does not perform weighting calculation and performs weighting calculation by the privacy calculation center end.
In one embodiment, the time series database sets different scaling factors for different time periods. The privacy calculation access end can return a weighting calculation result after performing weighting calculation, and the privacy calculation access end can perform weighting calculation without performing weighting calculation and the privacy calculation center end. For example, if the driver makes the order for 1 hour at 11 o 'clock to 12 o' clock in the night, the coefficient of the time interval is 1.2, and makes the order for 1 hour at 9 o 'clock to 10 o' clock in the morning, the coefficient of the time interval is 0.5, then the cumulative calculation time of the time sequence database is: 0.5*1+1.2*1.
And determining a calculation result according to the first calculation result, the second calculation result and the third calculation result. The calculation tasks of the time sequence database comprise the calculation actually required by the driver to calculate the total driving time, so that the acquired data at least comprises the calculation data for calculating the total working time of the corresponding platform of the driver in a specific time period.
And the time sequence database receives the calculation task from the privacy calculation access end, extracts time sequence data according to the data extraction rule, calculates the time sequence data according to the data calculation algorithm information, and forms a calculation result to be fed back to the privacy calculation access end. Furthermore, the time sequence database calls a function according to the data calculation algorithm information so as to calculate the time sequence data according to the function and form a calculation result.
In one embodiment, the calculation of the time series database comprises at least: and acquiring a number corresponding to the driver according to the calculation request, reading the starting time and the ending time of each order in a specific time period corresponding to the number, calculating the difference value of the starting time and the ending time by adopting sub function calculation data, and acquiring the working time of each order. And accumulating the working time lengths of different orders by adopting a sum function. And after accumulation is completed, obtaining the accumulated working time of the driver in a specific period of the platform, and sending the accumulated working time to the privacy calculation center terminal.
The traditional privacy computation task is completed by a privacy computation access terminal, the privacy computation access terminal needs to continuously obtain data stored by the privacy computation access terminal through a database, and reading of the data consumes a large amount of time. After the time sequence database loads some function functions, the stored data can be directly and quickly subjected to time sequence data calculation. The privacy calculation center end does not need to read data such as the starting time and the ending time of each order from a database, and the calculation efficiency is improved.
The privacy calculation center end receives the inquiry request of the working time of the driver and sends the privacy calculation request of the working time of the driver in a specific time period to the privacy calculation access ends; and determining the total working time of the driver in a specific period based on the intermediate data sent by each privacy calculation access terminal.
In one embodiment, the privacy computation center side acquires intermediate data from at least one privacy computation access end, and performs operation on the intermediate data of the at least one privacy access end to determine the total working time; and judging whether the total working time exceeds a fatigue degree threshold value or not to determine a fatigue analysis result.
And the privacy calculation central terminal accumulates the operation duration of the driver in the specific time period fed back by each privacy calculation access terminal to obtain the total operation duration of the driver in the specific time period. And the union of the operation durations of the drivers in the specific time period fed back by each privacy calculation access end is the total operation duration. And non-operation time periods are all except the operation time.
And taking the intersection of the idle driving time of the driver in the specific time period fed back by each privacy calculation access end as the total idle driving time.
And respectively calculating the duration of the low-speed running time period and the duration of the high-speed running time period according to the total empty running duration and the low-speed running time period and the high-speed running time period.
Calculating the total working time of the driver in a specific time period as follows: t ═ α (t)1+βt2+λt3) Wherein t is1The total operation time is; t is t2A low speed operation period duration; t is t3A high speed operation period duration; alpha is a weather coefficient, when the weather contains rain and snow in a specific time period, the alpha value is greater than 1, and the non-rain and snow weather alpha is 1; beta is a low-speed operation time period coefficient, is less than 1, and is 0.9 for example; λ is a high-speed operation period coefficient, and is greater than 1, for example, 1.1. And through setting the coefficients, carrying out weighted calculation on the total operation time length, the time length of the low-speed operation time period and the time length of the high-speed operation time period to obtain the total work time length. In one embodiment, in order to protect the privacy data, the privacy computation center side judges whether the total duration of the driver exceeds a fatigue threshold, and feeds back that illegal driving exists if the total duration of the driver exceeds the fatigue threshold, otherwise, feeds back that illegal driving does not exist. Only the condition whether the data demand side has illegal driving is provided, and the specific working time length is not provided. In one embodiment, the privacy computation access end and the time sequence database of each computing end use the same container (Docker). In another embodiment, the time series database is provided by a network appointment platform.
In some embodiments, a method for calculating privacy of total driving time of taxi appointment drivers is provided, and with reference to fig. 2, the method comprises the following steps:
and S100, synchronizing driver order dispatching data and driver driving data of the corresponding network car booking platform in real time.
The steps are executed in real time, and are not limited in order to execution of other steps, and at least a part of the steps in the flowchart in fig. 2 may include multiple sub-steps or multiple stages, which are not necessarily executed at the same time, but may be executed at different times, and the execution order is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the sub-steps or stages of other steps.
S200, the privacy calculation center end receives the inquiry request of the working time of the driver and sends the privacy calculation request of the working time of the driver in a specific time period to a plurality of privacy calculation access ends.
S300, the privacy calculation access ends receive the privacy calculation requests sent by the privacy calculation center end, form calculation tasks related to the time sequence data and send the calculation tasks to the time sequence database.
In an optional embodiment, the privacy computation access terminal may receive a working time query request sent by the privacy computation center terminal to determine a data extraction rule and data computation algorithm information related to time series data to form a corresponding processing task, where the processing task may include at least one computation task, and the computation task may be processed by a time series database, or may be processed by the privacy computation access terminal, and may be configured according to a requirement, for example, the computation task related to the time series data may be sent to the time series database, and may be computed by the time series database, and the privacy data access terminal may process other computation tasks.
And at the private calculation access end, the formed calculation task comprises the steps required by the private calculation request.
S400, reading corresponding data and calculating based on the calculation task by the time sequence database.
In some embodiments, reading and computing corresponding data based on the computing task includes:
receiving a calculation task i initiated by the privacy calculation access end according to the calculation task; and extracting data required by calculating the calculation task i, calling a corresponding function, completing the calculation of the calculation task i, and forming a calculation result.
The data extraction rule comprises information such as user information, information interval, order starting time, order ending time and the like. The information interval may be divided according to time periods, for example, into different time periods of the morning, afternoon, evening, etc. The data calculation algorithm information may include an algorithm name of the algorithm to be called, and the timing database calls the algorithm according to the algorithm name, for example, calls an algorithm that subtracts the order ending time from the order starting time.
In a specific embodiment, extracting time-series data according to a data extraction rule, and calculating the time-series data according to data calculation algorithm information to form a calculation result, including:
and extracting time series data related to the operation state according to a first data extraction rule, and calculating the time series data according to data calculation algorithm information to determine a first calculation result. The time sequence data related to the operation state is related data from the driver taking an order to the end of the order. The first data extraction rule may, for example, perform data extraction from the driver order pickup time to the order end time.
And according to a second data extraction rule, extracting time series data related to low-speed running in the idle running state, and calculating the time series data according to data calculation algorithm information to determine a second calculation result. People are easy to fatigue in the morning, afternoon and evening, and people are not easy to fatigue in the morning, and statistics can be respectively carried out according to different time intervals. The second data extraction rule is, for example, to extract low-speed operation data and perform time interval division, and the second calculation result is, for example, low-speed operation information representing time intervals.
The second data extraction rule includes, for example, setting a speed threshold to distinguish between high-speed operation and low-speed operation. If the running speed is larger than the set threshold value in the non-working time period, the threshold value is selected to be 10 kM/h-15 kM/h for example, and the driver is considered to be in a low-speed state. High speed operation if the speed is above the speed threshold, otherwise low speed operation. The speed threshold may be set, for example, to 30 to 40 kM/h. The second calculation result, for example, characterizes the speed of operation as low speed operation.
And according to a third data extraction rule, extracting time series data related to high-speed running in the idle running state, and calculating the time series data according to data calculation algorithm information to determine a third calculation result. The third data extraction rule is, for example, to extract high-speed operation data and to perform division of time periods. The third calculation result, for example, indicates that the speed of operation is low speed operation. Different proportionality coefficients can be set for different speeds, a weighting calculation result can be returned after the privacy calculation access end performs weighting calculation, or the privacy calculation access end does not perform weighting calculation and the privacy calculation center end performs weighting calculation
And obtaining idle running time according to the order and the running data, and determining a low-speed running time period and a high-speed running time period in the idle running time according to the running data, wherein the running is performed at a high speed when the speed is higher than a speed threshold, and the running is performed at a low speed otherwise.
Furthermore, people are easy to fatigue in the morning, afternoon and evening, and people are not easy to fatigue in the morning, and statistics can be carried out according to different time intervals and preset proportionality coefficients. In one embodiment, the time series database sets different scaling factors for different time periods. And accumulating the working time lengths of different dispatches after multiplying the working time lengths by corresponding proportionality coefficients to serve as the accumulated working time length of a driver in a specific period of the platform, and sending the accumulated working time length to the privacy calculation center terminal.
S500, the privacy computation access end reads the computation result of the time sequence database, so as to determine intermediate data according to the computation result, and sends the intermediate data to the privacy computation center end.
S600, the privacy computation center end determines the total working time of a driver in a specific period based on the intermediate data sent by the privacy computation access ends.
And the privacy calculation center end determines a calculation result according to the first calculation result, the second calculation result and the third calculation result. The calculation tasks of the time sequence database comprise the calculation actually required by the driver to calculate the total driving time, so that the acquired data at least comprises the calculation data for calculating the total working time of the corresponding platform of the driver in a specific time period.
And the privacy calculation center end accumulates the operation duration of the driver in the specific time period fed back by each privacy calculation access end to obtain the total operation duration of the driver in the specific time period.
And taking the intersection of the idle running time of the driver in the specific time period fed back by each privacy calculation access end as the total idle running time, and respectively calculating the time length of the low-speed running time period and the time length of the high-speed running time period according to the low-speed running time period and the high-speed running time period.
In one embodiment, the total duration of the driver's work in a particular period is calculated as: t ═ α (t)1+βt2+λt3) Wherein t is1The total operation time is; t is t2A low speed operation period duration; t is t3A high speed operation period duration; alpha is a weather coefficient, and the value of alpha is more than 1 when the weather of rain and snow is included in a specific time period; beta is a low-speed operation time period coefficient which is less than 1; and lambda is a high-speed operation period coefficient and is larger than 1.
Total duration of operation t1Time duration t of constant speed operation period2And a high-speed operation period duration t3The time length after the weighted calculation can be carried out on the time sequence database according to the operation time. The time length of the time sequence database which is not subjected to weighting calculation can also be subjected to weighting calculation by the privacy calculation center end to form weighted time length.
In one embodiment, the privacy computation center side acquires intermediate data from at least one privacy computation access end, and performs operation on the intermediate data of the at least one privacy access end to determine the total working time; and judging whether the total working time exceeds a fatigue degree threshold value or not to determine a fatigue analysis result.
In some embodiments, a method for dispatching orders of a network car-booking driver is provided, wherein after the driver gets on line on a network car-booking platform and/or before the driver is dispatched, a privacy calculation system of the total driving time of the network car-booking driver is adopted to obtain the total working time of the driver in a specific time period, and when the total driving time exceeds a fatigue threshold, the driver is forbidden to dispatch the orders.
There is provided an electronic device, in combination with fig. 3, comprising a processor and a memory, the memory being configured to store program instructions, and the processor being configured to invoke the program instructions to perform the method for privacy calculation of the total driving duration of the networked car booking driver as described.
The memory may be a Read Only Memory (ROM), a static memory device, a dynamic memory device, or a Random Access Memory (RAM). The memory may store a program, and the processor may perform the steps of the method of image processing of the embodiments of the present application when the program stored in the memory is executed by the processor, for example, the method of distributed privacy computation of the embodiment shown in fig. 1 may be performed.
The processor may be a general-purpose Central Processing Unit (CPU), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits, and is configured to execute the relevant programs to implement the image processing method according to the embodiment of the present application.
The processor may also be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the image processing method according to the embodiment of the present application may be implemented by integrated logic circuits of hardware in a processor or instructions in the form of software.
The processor may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory, and the processor reads information in the memory, and in combination with hardware thereof, performs functions required to be performed by units included in the apparatus for image processing in the embodiment of the present application, or performs the method for image processing in the embodiment of the present application, the method for privacy calculation of the total driving duration of the taxi appointment following driver in the embodiment shown in fig. 1 may be performed.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for calculating the privacy of the total driving duration of the car booking driver in the internet.
The computer-readable storage medium may include, for example, a memory card of a smart phone, a storage component of a tablet computer, a hard disk of a personal computer, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a portable compact disc read only memory (CD-ROM), a USB memory, or any combination of the above storage media. The computer-readable storage medium may be any combination of one or more computer-readable storage media.
In summary, the privacy calculation system, the privacy calculation method and the privacy calculation application of the total driving duration of the network car booking driver provided by the invention have the advantages that the time sequence database synchronizes the driver order dispatching data corresponding to the network car booking platform in real time; the method comprises the steps that a privacy calculation center end receives a driver working time inquiry request; the privacy calculation access ends receive the privacy calculation requests sent by the privacy calculation center end, form calculation tasks and send the calculation tasks to the time sequence database; the time sequence database reads corresponding data based on the calculation task and calculates; the privacy calculation access end reads a calculation result of the time sequence database; sending the calculation result to a privacy calculation center end; and the privacy calculation center end accumulates the calculation results sent by the privacy calculation access ends to obtain the total working time of the driver in a specific time period. The method and the system realize the calculation of the total driving time of the cross-platform network car booking driver, and protect the safety of private data through private calculation.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explaining the principles of the invention and are not to be construed as limiting the invention. Therefore, any modification, equivalent replacement, improvement and the like made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. Further, it is intended that the appended claims cover all such variations and modifications as fall within the scope and boundaries of the appended claims or the equivalents of such scope and boundaries.
Claims (10)
1. A privacy calculation system for the total driving time of a car booking driver on a network is characterized by comprising a privacy calculation center end and a plurality of distributed calculation ends;
the computing end comprises a privacy computing access end and a time sequence database;
the privacy calculation access end receives a driver working time privacy calculation request sent by the privacy calculation center end within a specific time period, forms a calculation task related to time sequence data, sends the calculation task to the time sequence database, reads a calculation result of the time sequence database, determines intermediate data according to the calculation result, and sends the intermediate data to the privacy calculation center end;
the time sequence database is used for synchronizing driver order dispatching data and driver driving data of the corresponding network taxi appointment platform in real time; reading corresponding time series data based on the calculation task and calculating to form a calculation result;
the privacy calculation center end receives the inquiry request of the working time of the driver and sends the privacy calculation request of the working time of the driver in a specific time period to the privacy calculation access ends; and determining the total working time of the driver in a specific period based on the intermediate data sent by each privacy calculation access terminal.
2. The system of claim 1, wherein the privacy of the total duration of the net appointment driver's driving is calculated,
the privacy calculation access terminal receives a privacy calculation request to determine a data extraction rule and data calculation algorithm information related to the time series data to form a calculation task, and sends the calculation task to a time sequence database;
the time sequence database receives a calculation task from the privacy calculation access end, extracts time sequence data according to a data extraction rule, calculates the time sequence data according to data calculation algorithm information, and forms a calculation result to be fed back to the privacy calculation access end;
and the privacy calculation access end receives the calculation result from the time sequence database, and performs encryption conversion on the calculation result to form intermediate data so as to feed the intermediate data back to the privacy calculation center end.
3. The system of claim 2, wherein the computing of the time series data according to the data computing algorithm information to form the computed result comprises:
and calling a function according to the data calculation algorithm information to calculate the time series data according to the function so as to form a calculation result.
4. The system of claim 2, wherein the privacy of the total duration of the net appointment driver's driving is calculated,
the extracting time series data according to the data extraction rule, and calculating the time series data according to the data calculation algorithm information to form a calculation result, comprising:
extracting time series data related to the operation state according to a first data extraction rule, and calculating the time series data according to data calculation algorithm information to determine a first calculation result;
extracting time series data related to low-speed running in the idle running state according to a second data extraction rule, and calculating the time series data according to data calculation algorithm information to determine a second calculation result;
extracting time series data related to high-speed running in the idle running state according to a third data extraction rule, and calculating the time series data according to data calculation algorithm information to determine a third calculation result;
and determining the calculation result according to the first calculation result, the second calculation result and the third calculation result.
5. The system of claim 4, wherein the privacy computing center is configured to compute the total duration of the online taxi appointment driver's driving,
acquiring intermediate data from at least one privacy calculation access end, and calculating the intermediate data of the at least one privacy access end to determine the total working time;
and judging whether the total working time exceeds a fatigue degree threshold value or not to determine a fatigue analysis result.
6. The system for calculating privacy of the total driving time of the online car booking driver as claimed in claim 1, wherein the privacy calculation access terminal of each calculation terminal and the time sequence database adopt the same container (Docker); or the time sequence database is provided by a network car appointment platform.
7. A privacy calculation method for the total driving time of a car booking driver is characterized by comprising the following steps:
the time sequence database synchronously corresponds to driver order dispatching data and driver driving data of the network appointment platform in real time;
the privacy calculation center end receives the inquiry request of the working time of the driver and sends the privacy calculation request of the working time of the driver in a specific time period to the privacy calculation access ends;
the privacy calculation access ends receive the privacy calculation requests sent by the privacy calculation center end, form calculation tasks related to the time sequence data and send the calculation tasks to the time sequence database;
the time sequence database reads corresponding data based on the calculation task and calculates;
the privacy computation access end reads the computation result of the time sequence database, determines intermediate data according to the computation result, and sends the intermediate data to the privacy computation center end;
and the privacy calculation center end determines the total working time of a driver in a specific period based on the intermediate data sent by each privacy calculation access end.
8. A method for dispatching orders of network car-booking drivers is characterized in that after a driver gets on line on a network car-booking platform and/or before the driver is dispatched an order, the method for calculating the privacy of the total driving time of the network car-booking driver according to claim 7 is adopted to obtain the total working time of the driver in a specific time period, and when the total driving time exceeds a fatigue threshold, the driver is forbidden to dispatch the order.
9. An electronic device comprising a processor and a memory, the memory storing program instructions, the processor being configured to invoke the program instructions to perform the method of privacy computation of net car booking driver driving duration as claimed in claim 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method for privacy calculation of total driving duration of a net car booking driver of claim 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210281333.0A CN114722093A (en) | 2022-03-21 | 2022-03-21 | Privacy calculation system, method and application of total driving time of taxi appointment drivers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210281333.0A CN114722093A (en) | 2022-03-21 | 2022-03-21 | Privacy calculation system, method and application of total driving time of taxi appointment drivers |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114722093A true CN114722093A (en) | 2022-07-08 |
Family
ID=82240020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210281333.0A Pending CN114722093A (en) | 2022-03-21 | 2022-03-21 | Privacy calculation system, method and application of total driving time of taxi appointment drivers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114722093A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115640469A (en) * | 2022-11-04 | 2023-01-24 | 北京白龙马云行科技有限公司 | Activity duration calculation method and device, electronic equipment and storage medium |
CN116166710A (en) * | 2022-11-17 | 2023-05-26 | 北京白龙马云行科技有限公司 | Duration processing method and device, electronic equipment and storage medium |
-
2022
- 2022-03-21 CN CN202210281333.0A patent/CN114722093A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115640469A (en) * | 2022-11-04 | 2023-01-24 | 北京白龙马云行科技有限公司 | Activity duration calculation method and device, electronic equipment and storage medium |
CN115640469B (en) * | 2022-11-04 | 2023-08-08 | 北京白龙马云行科技有限公司 | Activity duration calculation method and device, electronic equipment and storage medium |
CN116166710A (en) * | 2022-11-17 | 2023-05-26 | 北京白龙马云行科技有限公司 | Duration processing method and device, electronic equipment and storage medium |
CN116166710B (en) * | 2022-11-17 | 2024-01-12 | 北京白龙马云行科技有限公司 | Duration processing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114722093A (en) | Privacy calculation system, method and application of total driving time of taxi appointment drivers | |
WO2018058967A1 (en) | Ground transportation journey recommendation method, device, apparatus, and computer storage medium | |
CN111666971A (en) | Event identification method, device and equipment based on position location and storage medium | |
SG153038A1 (en) | Device and method for reserving travel products | |
CN110599353A (en) | Vehicle insurance and claims rate prediction method, device, equipment and medium | |
CN111881243B (en) | Taxi track hot spot area analysis method and system | |
CN112102031A (en) | Recommendation method, recommendation device and terminal equipment | |
CN109685429A (en) | Distribution capacity determining method and device, electronic equipment and storage medium | |
CN109561132B (en) | Information pushing method and device, server and terminal | |
Biswas et al. | Profit optimization in commercial ridesharing | |
CN108399460A (en) | Network about vehicle Order splitting processing method and server | |
CN112465384A (en) | Transportation capacity scheduling method and device, computer equipment and computer readable storage medium | |
CN111626648B (en) | Survey task scheduling method and device, computer equipment and storage medium | |
CN112686435A (en) | Scheduling method, scheduling device and terminal equipment | |
CN110223514B (en) | Urban traffic running state analysis method and device and electronic equipment | |
US9594926B2 (en) | Data processing apparatus, data processing system, and data processing method | |
CN116227760B (en) | Method, device, storage medium and equipment for predicting influence of travel activities | |
CN116843166B (en) | Taxi taking method, device, equipment and medium | |
CN111639973B (en) | Public transport passenger flow OD derivation method and device based on multivariate fusion big data | |
CN110543503B (en) | Data mining method aiming at fixed pile position sharing bicycle riding rule and abnormal behavior | |
CN110765226B (en) | Goods owner matching method, device, equipment and medium | |
CN114448813A (en) | Method, device, server and medium for determining network capacity expansion ratio | |
CN113129055A (en) | Riding fee calculation method, system, terminal device and storage medium | |
CN112750213A (en) | Parking service information pushing method, device, equipment and medium | |
CN110827152A (en) | Insurance evaluation method, system and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |