Time length determination method and device of target time period, electronic equipment and storage medium

By comparing the target driving data with the driving data types at adjacent time, quickly determining the start and end time of the vehicle target time period, the problem of cumbersome data processing in the prior art is solved, data processing efficiency is improved, and rapid calculation of time is realized .

CN119152597APending Publication Date: 2024-12-17CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411254303.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

When determining the driving time of a vehicle target period, the prior art requires filtering and screening a large amount of data, resulting in cumbersome data processing and inefficient efficiency.

Method used

By comparing the target travel data with the travel data types at adjacent time, the start and end times of the target period are determined, and the duration is calculated, the processing of data at each time is reduced, and the duration of the target period is quickly determined.

Benefits of technology

It is possible to quickly determine the start and end times of the target period, reduce the data processing amount, improve data processing efficiency, and calculate the desired time according to the preset type.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119152597A_ABST
    Figure CN119152597A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicles, and discloses a duration determination method and device of a target time period, electronic equipment and a storage medium, and the method comprises the steps: determining driving data of adjacent moments of target driving data; wherein the target driving data is any driving data, and the adjacent moments comprise adjacent front moments and adjacent rear moments; according to a target driving type represented by the target driving data and a driving type represented by the driving data of the adjacent moments, determining a recording moment of the target driving data and a corresponding target moment in the target time period, and determining a driving type corresponding to the target time period according to the target moment; wherein the target moment comprises a starting moment and an ending moment of a target time period, and the target time period is a time period for recording the target driving data; and if the driving type corresponding to the target time period is a preset type, determining the duration of the target time period according to the starting moment and the ending moment. According to the invention, the duration of the target time period of the expected driving type can be quickly determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a method, device, electronic device and storage medium for determining the duration of a target time period. Background Art

[0002] For vehicle travel management, it is necessary to process a large amount of data generated during the vehicle's travel. Among them, the data related to the vehicle's driving time is particularly important, especially the driving time within the target period.

[0003] At present, the driving data of the vehicle at each moment during driving is recorded to calculate the corresponding driving time. However, a large amount of data needs to be filtered and screened to determine the corresponding driving period, thereby calculating the duration of the corresponding driving period. The data processing of the entire process is cumbersome. Summary of the invention

[0004] In view of the above problems, the present application provides a method, device, electronic device and storage medium for determining the duration of a target time period, which are used to quickly determine the duration of the target time period.

[0005] According to one aspect of the present application, a method for determining the duration of a target time period is provided, and the method for determining the duration includes: determining driving data at adjacent moments of target driving data; wherein the target driving data is any driving data, and the adjacent moments include adjacent preceding moments and adjacent following moments; according to the target driving type represented by the target driving data, and the driving type represented by the driving data at the adjacent moments, determining the target moment corresponding to the recording moment of the target driving data in the target time period, and determining the driving type corresponding to the target time period according to the target moment; wherein the target moment includes the starting moment and the ending moment of the target time period, and the target time period is the time period for recording the target driving data; if the driving type corresponding to the target time period is a preset type, determining the duration of the target time period according to the starting moment and the ending moment.

[0006] In an optional manner, the target driving type represented by the target driving data and the driving type represented by the driving data at the adjacent moments are used to determine the recording time of the target driving data, and the target time corresponding to the target time period, further including: if the target driving type represented by the target driving data is different from the driving type represented by the driving data at the adjacent preceding moment, and the target driving type is the same as the driving type represented by the driving data at the adjacent succeeding moment, then the recording time of the target driving data is determined, and the target time corresponding to the target time period is the starting time; if the target driving type is the same as the driving type represented by the driving data at the adjacent preceding moment, and the target driving type is different from the driving type represented by the driving data at the adjacent succeeding moment, then the recording time of the target driving data is determined, and the target time corresponding to the target time period is the ending time.

[0007] In an optional manner, the adjacent preceding moment is empty; the target driving type represented by the target driving data and the driving type represented by the driving data at the adjacent moment are used to determine the recording moment of the target driving data, and the target moment corresponding to the target time period, further including: if the target driving type represented by the target driving data is the same as the driving type represented by the driving data at the adjacent succeeding moment, then the recording moment of the target driving data is determined, and the target moment corresponding to the target time period is the starting moment; if the target driving type is different from the driving type represented by the driving data at the adjacent succeeding moment, then the recording moment of the target driving data is determined, and the target moment corresponding to the target time period is the ending moment.

[0008] In an optional manner, in the step of determining the recording moment of the target driving data based on the target driving type represented by the target driving data and the driving type represented by the driving data at adjacent moments, before the target moment corresponding to the target time period, the duration determination method also includes: detecting whether the adjacent subsequent moment of the target driving data is empty; if so, determining the recording moment of the target driving data, and the target moment corresponding to the target time period as the end moment; if not, executing the step of determining the recording moment of the target driving data based on the target driving type represented by the target driving data and the driving type represented by the driving data at adjacent moments, and the target moment corresponding to the target time period.

[0009] In an optional manner, determining the driving type within the target time period based on the target moment further includes: if the target moment is the starting moment or the process moment in the target time period, determining the driving type within the target time period as the target driving type; if the target moment is the ending moment in the target time period, determining the driving type within the target time period as the driving type represented by the driving data of the adjacent preceding moment.

[0010] In an optional manner, before determining the driving data at adjacent moments of the target driving data, the duration determination method further includes: sorting each initial driving data according to time order to obtain a target sequence; traversing the initial driving data based on the target sequence, and using the traversed initial driving data as the target initial driving data; if the recording time of the target initial driving data is the same as the recording time of the previous initial driving data or the recording time of the next initial driving data, deleting the target initial driving data to obtain multiple driving data; wherein the recording time corresponding to each driving data is different.

[0011] In an optional manner, the target driving type represented by the target driving data and the driving type represented by the driving data at adjacent moments are used to determine the recording moment of the target driving data, and the target moment corresponding to the target moment in the target time period, further including: if the target driving type represented by the target driving data is the same as the driving type represented by the driving data at adjacent moments, then the recording moment of the target driving data is determined, and the target moment corresponding to the target time period is determined as the process moment.

[0012] According to another aspect of the present application, a device for determining the duration of a target time period is provided, and the device for determining the duration of a target time period includes: a driving data determination module, used to determine the driving data of adjacent moments of the target driving data; wherein the target driving data is any driving data, and the adjacent moments include adjacent preceding moments and adjacent following moments; a driving type determination module, used to determine the target moment corresponding to the recording moment of the target driving data in the target time period according to the target driving type represented by the target driving data and the driving type represented by the driving data at the adjacent moments, and determine the driving type corresponding to the target time period according to the target moment; wherein the target moment includes the starting moment and the ending moment of the target time period, and the target time period is the time period for recording the target driving data; a duration determination module, used to determine the duration of the target time period according to the starting moment and the ending moment if the driving type corresponding to the target time period is a preset type.

[0013] According to one aspect of the present application, an electronic device is provided, comprising: a controller; and a memory for storing one or more programs, wherein when the one or more programs are executed by the controller, the above-mentioned duration determination method is executed.

[0014] According to one aspect of the present application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned duration determination method.

[0015] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned duration determination method.

[0016] The present application determines the target time recorded in the target period by comparing the target driving data with the driving data of adjacent moments in terms of driving type; wherein the target time includes the start time and the end time. The entire process does not need to process the driving data of each moment, and the start time and the end time of the target period can be quickly determined to reduce the amount of data processing. At the same time, the driving type corresponding to the target period can be determined. If the driving type corresponding to the target period is a preset type, the duration of the target period of the desired driving type can be quickly determined based on the start time and the end time.

[0017] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 It is a flowchart of a method for determining the duration of a target time period shown in an exemplary embodiment of the present application.

[0020] Figure 2 is based on Figure 1The exemplary embodiment shown is a flowchart of another method for determining the duration of a target time period.

[0021] Figure 3 is based on Figure 1 The exemplary embodiment shown is a flowchart of another method for determining the duration of a target time period.

[0022] Figure 4 is based on Figure 1 The exemplary embodiment shown is a flowchart of another method for determining the duration of a target time period.

[0023] Figure 5 It is a schematic diagram of an application scenario of the method for determining the duration of a target time period of the present application.

[0024] Figure 6 It is a structural diagram of a device for determining the duration of a target time period shown in an exemplary embodiment of the present application.

[0025] Figure 7 It is a structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0026] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0027] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0028] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0029] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0030] The driving time in vehicle driving data is generally used for various scenario analyses. For example, during operational scheduling, by analyzing the duration of each driving period for a designated driver, the driver and vehicle usage time can be reasonably arranged, and routes can be planned, so as to achieve refined scheduling and improve resource utilization.

[0031] At present, the driving data of the vehicle at each moment during driving is recorded to calculate the corresponding driving time. However, a large amount of data needs to be filtered and screened to determine the corresponding driving period, thereby calculating the duration of the corresponding driving period. The data processing of the entire process is cumbersome.

[0032] To this end, one aspect of the present application provides a method for determining the duration of a target period. Figure 1 , Figure 1 1 is a flow chart of a method for determining the duration of a target period of time shown in an exemplary embodiment of the present application. The method for determining the duration of a target period of time at least includes S110 to S130, which are described in detail as follows:

[0033] S110: Determine driving data at adjacent moments of target driving data; wherein the target driving data is any driving data, and the adjacent moments include adjacent preceding moments and adjacent following moments.

[0034] The target driving data may be a randomly selected driving data or a driving data traversed in a preset order. Driving data is data that can characterize the relevant state of the vehicle during driving, including but not limited to parameters characterizing the driving type, driving speed, driving gear, motor status, battery status, remaining energy consumption, brake status, etc.

[0035] Adjacent time is the time adjacent to the recording time of the target driving data, including the time recorded before and the time recorded after. It is worth noting that the recording time of each driving data is not completely closely continuous, and the time intervals between them may be different. For example, the recording time of the target driving data is 10:00, and the adjacent preceding time in its adjacent time is 09:59, and the adjacent following time is 10:10.

[0036] S120: Determine the recording time of the target driving data and the target time corresponding to the target time period based on the target driving type represented by the target driving data and the driving type represented by the driving data at adjacent times, and determine the driving type corresponding to the target time period based on the target time; wherein the target time includes the start time and the end time of the target time period, and the target time period is the time period for recording the target driving data.

[0037] Each driving data can represent the corresponding driving type, and the driving types include but are not limited to forward driving type, reverse driving type, and stop driving type. That is, the driving type in this embodiment has a broad meaning, which includes driving types that represent that the vehicle position has not changed, etc. For example, the stop driving type can be quickly determined according to the parking gear position of the vehicle.

[0038] The target period includes the recording time of the target driving data, that is, the target driving data belongs to the data recorded in the target period.

[0039] This embodiment compares the target driving data with the driving data at adjacent moments in terms of driving type to determine the target time recorded in the target period, that is, to determine at which moment in the target period the recording moment of the target driving data is located, such as the start moment, end moment, or process moment of the target period, and determines the driving type corresponding to the target period according to the meaning represented by the target moment in the target period. By analogy, the start moment and end moment of the target period can be determined. Exemplarily, the recording moment of the current target driving data is determined as the start moment of the target period, and then the next target driving data and its recording moment are repeatedly analyzed, and the end moment of the target period can be determined by this cycle.

[0040] S130: If the driving type corresponding to the target time period is a preset type, the duration of the target time period is determined according to the start time and the end time.

[0041] The preset type is a driving type for which a specific duration is expected to be calculated. For example, if the preset type is a driving type that characterizes vehicle movement, then the vehicle movement duration is expected to be calculated; if the preset type is a driving type that characterizes vehicle stoppage, then the vehicle parking duration is expected to be calculated.

[0042] In this embodiment, the end time and the start time may be subtracted, and the calculated difference is the duration of the target time period.

[0043] This embodiment compares the target driving data with the driving data of adjacent moments in terms of driving type to determine the target time recorded in the target period; wherein the target time includes a start time and an end time. The entire process does not need to process the driving data of each moment, and the start time and the end time of the target period can be quickly determined to reduce the amount of data processing. At the same time, the driving type corresponding to the target period can be determined. If the driving type corresponding to the target period is a preset type, the duration of the target period of the desired driving type can be quickly determined based on the start time and the end time.

[0044] In another exemplary embodiment of the present application, it is described in detail how to determine the recording time of the target driving data according to the target driving type represented by the target driving data and the driving type represented by the driving data at adjacent times, and the target time corresponding to the target time in the target period. Figure 2 , Figure 2 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for determining the duration of a target period. The method for determining the duration is as follows: Figure 1 The S120 shown further includes S210 to S220, which are described in detail as follows:

[0045] S210: If the target driving type represented by the target driving data is different from the driving type represented by the driving data at the adjacent preceding moment, and the target driving type is the same as the driving type represented by the driving data at the adjacent succeeding moment, then the recording time of the target driving data is determined, and the target time corresponding to the target time period is the starting time.

[0046] Please refer to Table 1, which includes multiple driving data. The driving type represented by each driving data can be determined according to the gear position; wherein the D gear represents the forward driving type, the P gear represents the stop driving type, and the R gear represents the reverse driving type.

[0047] Table 1: Example table of driving data

[0048]

[0049] According to each driving data recorded in Table 1, the driving time period is divided to obtain the driving types of multiple corresponding target time periods in Table 2. Each driving data in Table 2 corresponds to the recording time, the adjacent preceding time, the adjacent following time, and the driving type in the target time period.

[0050] Table 2: Example relationship table between driving data and driving types within corresponding target time periods

[0051]

[0052] Table 2 records the driving type of each driving data in the corresponding target period. It can be known that if the recording time of a driving data is the end time of the corresponding target period, the driving type represented by the driving data in the corresponding target period will be converted to the driving type represented by the driving data at the adjacent preceding time. For example, the recording time of driving data 5 in Table 1 is the end time of the corresponding target period, and the driving type represented by driving data 5 is converted from the stop driving type to the forward driving type, and the driving type in the target period is the driving type represented by the driving data at the adjacent preceding time, that is, the forward driving type; for another example, the recording time of driving data 8 is the end time of the corresponding target period, and the driving type represented by driving data 8 is converted from the reverse driving type to the stop driving type.

[0053] An exemplary explanation is given in combination with Table 1 and Table 2: if the target driving data is driving data 2 in Table 1, that is, the target driving type is D (forward driving), the driving type corresponding to the driving data 1 at the adjacent preceding moment is P (stop driving), and the driving type corresponding to the driving data 3 at the adjacent succeeding moment is D, then the recording time corresponding to the driving data 2 can be determined: 00:00:02 is the starting time in the target time period.

[0054] S220: If the target driving type is the same as the driving type represented by the driving data at the adjacent preceding moment, and the target driving type is different from the driving type represented by the driving data at the adjacent succeeding moment, then determine the recording time of the target driving data, and the target time corresponding to the target time period is the end time.

[0055] An exemplary explanation is given in combination with Table 1 and Table 2: if the target driving data is driving data 4 in Table 1, that is, the target driving type is D (forward driving), the driving type corresponding to the driving data 3 at the adjacent preceding moment is D, and the driving type corresponding to the driving data 5 at the adjacent succeeding moment is P (stop driving), then it can be determined that the recording time corresponding to the driving data 4: 00:04:04 is the end time in the target period.

[0056] In some embodiments, it is introduced how to quickly determine the duration of the target period. It is necessary to determine the start time and the end time of the target period, so that a simple calculation can be performed to quickly calculate the duration of the target period.

[0057] Exemplarily, the following Table 3 is obtained according to Table 2, that is, according to the leading mark and trailing mark of each driving data in the leading table in Table 2, with "1" as the starting and ending mark, the starting time and ending time of 1-0-0-...1 are determined, and the starting time and ending time of the target time period of the non-stop driving type (i.e., the preset type in this embodiment) are quickly determined, so that the duration of the target time period 1 can be quickly calculated to be 00:05:49-00:00:02=05:47, and so on, the duration of other target time periods can be calculated. The present application can adjust the specific meaning of the preset type to obtain the duration of the target time period of the type desired by the user. For example, if the preset type is a stop driving type, the duration of the corresponding target number segment can be quickly calculated in a similar manner.

[0058] Table 3: Example table of target periods

[0059]

[0060]

[0061] Traditional calculation method: Place all the moments in the corresponding target period in an array, and then take the first and last entries to calculate the time difference. If the amount of data is large and the memory is very small, it will cause a long calculation time or even no calculation results. This application adopts a data collection and processing method, which can process the real-time transmitted driving data in a timely manner. Because it can reduce the amount of data processing, it can reduce the data processing time, thereby improving data processing efficiency.

[0062] In some embodiments, if there is driving data 1 whose adjacent preceding moment is empty as recorded in Table 1, it is only necessary to compare the driving type represented by it with the driving type represented by the driving data of the adjacent subsequent moment to determine the target moment (moment type) corresponding to its recorded moment in the target period, that is, Figure 1 The shown S120 further includes S121 to S122, wherein the adjacent preceding time is empty, which is specifically described as follows:

[0063] S121: If the target driving type represented by the target driving data is the same as the driving type represented by the driving data at the adjacent subsequent time, the recording time of the target driving data is determined, and the corresponding target time in the target period is the starting time.

[0064] Exemplarily, as shown in Table 4, if the adjacent preceding moment of driving data 1 is empty, and the forward driving type represented by it is the same as the driving type represented by driving data 2 at the adjacent succeeding moment, then its recording moment is taken as the starting moment of the corresponding target period.

[0065] Table 4: Another example table of driving data

[0066]

[0067] S122: If the target driving type is different from the driving type represented by the driving data at the adjacent subsequent time, the recording time of the target driving data is determined, and the corresponding target time in the target period is the end time.

[0068] For example, as for the driving data 1 recorded in Table 1, its adjacent preceding moment is empty, and the stop driving type represented by it is different from the driving type (forward driving type) represented by the driving data 2 at the adjacent succeeding moment, then its recording time is taken as the end time within the corresponding target period, as shown in Table 2, and the target period it is in is regarded as an invalid target period.

[0069] The above analysis is conducted on special target driving data so as to classify the recording moments of special target driving data into special target time periods to cover the analysis and processing of all driving data, thereby making the multiple target time periods obtained by division more comprehensive to cover all time periods during vehicle driving.

[0070] In some embodiments, a method for determining the process time is also introduced, that is, Figure 1 The S120 shown further includes S230, which is described in detail as follows:

[0071] S230: If the target driving type represented by the target driving data is the same as the driving type represented by the driving data at adjacent moments, the recording moment of the target driving data is determined, and the corresponding target moment in the target period is the process moment.

[0072] Exemplarily, as shown in Table 1, the driving type of driving data 3 is a forward driving type, which is the same as the driving types represented by the driving data of its adjacent preceding moment and adjacent succeeding moment. Then, it can be determined as recorded in Table 2 that it is a process moment in the corresponding target period, and its driving type is the driving type within the corresponding target period.

[0073] This embodiment determines the target time period in which the target driving data is located and the target time corresponding to the recording time within the target time period according to the driving type represented by the target driving data and the driving type represented by the driving data at adjacent times, thereby quickly determining whether the target driving data is the starting time / process time / end time within the target time period, which is convenient for quickly dividing into multiple corresponding target time periods.

[0074] This application can not only determine the time type of the target driving data within the target time period at the time of recording, but also can quickly determine the driving type within the target time period according to the target time corresponding to the recording time in the target time period. Figure 1The S120 shown further includes S240 to S250, which are described in detail as follows:

[0075] S240: If the target time is the start time or the process time in the target time period, determine that the driving type in the target time period is the target driving type.

[0076] For example, as recorded in Table 2 above, the driving type represented by driving data 2 in the target period is the forward driving type, and the recording time is the starting time in the target period, so the forward driving type represented by driving data 2 can be used as the driving type in the target period. Similarly, the recording time of driving data 3 in Table 2 is the process time in the target period, that is, the forward driving type represented by it can be directly used as the driving type in the target period.

[0077] S250: If the target time is the end time of the target period, determine that the driving type in the target period is the driving type represented by the driving data of the adjacent preceding time.

[0078] For example, as recorded in Table 1 above, the driving type represented by driving data 5 is the stop driving type (P gear). However, as recorded in Table 2, the recording time of driving data 5 is the end time of the target period, and the driving type represented by it is not the driving type represented in the target period. The driving type in the target period is the forward driving type represented by the driving data of the driving data 5 at the adjacent preceding time.

[0079] This embodiment provides a method for determining the driving type within the corresponding target time period, so as to quickly determine the driving type corresponding to the target time period according to the time type within the target time period at which the target driving data is recorded.

[0080] In another exemplary embodiment of the present application, the situation where the adjacent subsequent time of the target driving data is empty is described in detail. Figure 3 , Figure 3 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for determining the duration of a target period. The method for determining the duration is as follows: Figure 1 Before S120 shown, it further includes S310 to S330, which are described in detail as follows:

[0081] S310: Detect whether the adjacent subsequent time of the target driving data is empty.

[0082] S320: If yes, determine the recording time of the target driving data, and the target time corresponding to the target time period is the end time.

[0083] Please refer to Table 1, in which driving data 15 is driving data with an adjacent subsequent moment being empty, and its recording time is taken as the end time of its target period. At the same time, the driving type in its target period is the forward driving type represented by driving data 14.

[0084] S330: If no, then execute the step of determining the target time corresponding to the recording time of the target driving data in the target time period according to the target driving type represented by the target driving data and the driving type represented by the driving data at adjacent times.

[0085] If it is driving data before driving data 15 in Table 1, it is necessary to determine the recording time of the target driving data and the target time corresponding to the target time period based on the target driving type represented by each and the driving type represented by the driving data at the adjacent moments.

[0086] This embodiment performs a special analysis on the special target driving data to accurately determine the recording moment of the target driving data without an adjacent subsequent moment and the moment type within the corresponding target time period.

[0087] In another exemplary embodiment of the present application, the sources of various driving data are described in detail. Figure 4 , Figure 4 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for determining the duration of a target period. The method for determining the duration is as follows: Figure 1 Before S110, it further includes S410 to S430, which are described in detail as follows:

[0088] S410: Sort each initial driving data according to the time sequence to obtain a target sequence.

[0089] During vehicle driving, the recording time corresponding to the initial driving data uploaded to the execution subject of this application may be confused due to signal interruption or poor environmental signal, especially the initial driving data that was not uploaded when the signal was interrupted after the communication was restored, which will cause it to be arranged in the data table corresponding to the subsequent time. At the same time, there may be duplicate uploaded driving data. This application sorts each initial driving data in ascending or descending order according to time, so that the data of adjacent times of each initial driving data can be quickly determined.

[0090] S420: traversing the initial driving data based on the target sequence, and using the traversed initial driving data as the target initial driving data.

[0091] This embodiment adopts a traversal method to ensure that each initial driving data in the target sequence is analyzed in a targeted manner without omission.

[0092] S430: If the recording time of the target initial driving data is the same as the recording time of the previous initial driving data or the recording time of the next initial driving data, the target initial driving data is deleted to obtain multiple driving data; wherein each driving data corresponds to a different recording time.

[0093] As shown in Table 4, driving data 9 and 10 are repeated driving data. When the embodiment traverses to the initial driving data 9, it is detected that the next initial driving data 10 is the same as the recording time, then it is determined to be repeated data, and the initial driving data 9 can be deleted. In some embodiments, the initial driving data 10 can also be deleted to reduce the steps of subsequent traversal of the initial driving data 10, reduce unnecessary data analysis time, and thus improve data analysis efficiency. Another way is to traverse to the initial driving data 10, detect that the previous initial driving data 9 is the same as the recording time, then it is determined to be repeated data, and the initial driving data 10 can be deleted, thereby performing deduplication processing on the initial driving data to obtain the corresponding driving data.

[0094] This embodiment sorts each initial driving data by recording time before traversal, so it can ensure that the initial driving data at repeated recording times are clustered. By traversing, the repeated initial driving data can be quickly determined and deduplicated to obtain multiple driving data.

[0095] Table 4: An exemplary table of initial driving data

[0096]

[0097] In another exemplary embodiment of the present application, the application scenarios of the above-mentioned multiple duration determination methods are exemplarily described. Figure 5 , Figure 5 It is a schematic diagram of an application scenario of the method for determining the duration of the target time period of the present application. Among them, the vehicle end 100, the cloud end 200 and the server 300 can be connected by wireless communication, and the present application does not limit the connection method between them.

[0098] The T-box of the vehicle 100 packages the driving data recorded by the vehicle at 10 seconds per time and sends it to the server 300 in the cloud 200. The parsing module in the server 300 combines the specific DBC file to parse the received initial driving data in real time, and sorts, removes duplicates, and filters it according to the time series to obtain multiple driving data arranged in time sequence to store in the database. The database can be a database independent of the server 300, or a database in the server 300, and this application does not limit it.

[0099] The server 300 may be used as an execution subject of the duration determination method shown in any of the above exemplary embodiments to execute the corresponding duration determination method, which is exemplarily described as follows:

[0100] The server 300 analyzes any driving data in the database, takes it as the target driving data, and determines the driving data at the adjacent moments of the target driving data; wherein the target driving data is any driving data, and the adjacent moments include the adjacent preceding moments and the adjacent following moments; the server 300 determines the recording moment of the target driving data according to the target driving type represented by the target driving data and the driving type represented by the driving data at the adjacent moments, and at the target moment corresponding to the target time period, the server 300 determines the driving type corresponding to the target time period according to the target moment; wherein the target moment includes the start moment and the end moment of the target time period, and the target time period is the time period for recording the target driving data; if the driving type corresponding to the target time period is a preset type, the server 300 determines the duration of the target time period according to the start moment and the end moment.

[0101] Server 300 can be an independent physical server or a server cluster or distributed system composed of multiple physical servers, wherein multiple servers can form a blockchain, and the server is a node on the blockchain. Server 300 can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network) and big data and artificial intelligence platforms, and this is not restricted here.

[0102] Another aspect of the present application also provides a device for determining the duration of a target period, such as Figure 6 As shown, Figure 6 It is a structural schematic diagram of a device for determining the duration of a target time period shown in an exemplary embodiment of the present application. The duration determination device 600 includes: a driving data determination module 610, which is used to determine the driving data of the adjacent moments of the target driving data; wherein the target driving data is any driving data, and the adjacent moments include the adjacent preceding moments and the adjacent following moments; a driving type determination module 630, which is used to determine the target driving data recording time, the target time corresponding to the target time period, and determine the driving type corresponding to the target time period according to the target time, according to the target driving type represented by the target driving data and the driving type represented by the driving data at the adjacent moments; wherein the target time includes the starting time and the ending time of the target time period, and the target time period is the time period for recording the target driving data; a duration determination module 650, which is used to determine the duration of the target time period according to the starting time and the ending time if the driving type corresponding to the target time period is a preset type.

[0103] In another exemplary embodiment, the driving type determination module 630 further includes: a starting time determination unit, which is used to determine the recording time of the target driving data if the target driving type represented by the target driving data is different from the driving type represented by the driving data at the adjacent preceding time, and the target driving type is the same as the driving type represented by the driving data at the adjacent succeeding time, and the target time corresponding to the target time period is the starting time; an ending time determination unit, which is used to determine the recording time of the target driving data if the target driving type represented by the driving data at the adjacent preceding time is the same as the driving type represented by the driving data at the adjacent succeeding time, and the target driving type is different from the driving type represented by the driving data at the adjacent succeeding time, and the target time corresponding to the target time period is the ending time.

[0104] In another exemplary embodiment, the adjacent preceding moment is empty; the driving type determination module 630 further includes: a first determination unit, used to determine the recording moment of the target driving data if the target driving type represented by the target driving data is the same as the driving type represented by the driving data at the adjacent succeeding moment, and the corresponding target moment in the target time period is the starting moment; a second determination unit, used to determine the recording moment of the target driving data if the target driving type is different from the driving type represented by the driving data at the adjacent succeeding moment, and the corresponding target moment in the target time period is the ending moment.

[0105] In another exemplary embodiment, the duration determination device 600 also includes: a detection module, which is used to detect whether the adjacent subsequent moment of the target driving data is empty; an end time determination module, which is used to determine the recording moment of the target driving data, and the target moment corresponding to the target time period as the end time if it is yes; and an execution module, which is used to execute the step of determining the recording moment of the target driving data, and the target moment corresponding to the target time period, according to the target driving type represented by the target driving data and the driving type represented by the driving data at the adjacent moments if it is not.

[0106] In another exemplary embodiment, the driving type determination module 630 further includes: a third determination unit, which is used to determine that the driving type in the target time period is the target driving type if the target moment is the starting moment or the process moment in the target time period; and a fourth determination unit, which is used to determine that the driving type in the target time period is the driving type represented by the driving data of the adjacent preceding moment if the target moment is the ending moment in the target time period.

[0107] In another exemplary embodiment, the duration determination device 600 also includes: a sorting module, which is used to sort the initial driving data according to the time sequence to obtain a target sequence; a traversal module, which is used to traverse the initial driving data based on the target sequence, and use the traversed initial driving data as the target initial driving data; a deduplication module, which is used to delete the target initial driving data if the recording time of the target initial driving data is the same as the recording time of the previous initial driving data or the recording time of the next initial driving data, so as to obtain multiple driving data; wherein the recording time corresponding to each driving data is different.

[0108] In another exemplary embodiment, the driving type determination module 630 further includes: a process time determination module, which is used to determine the recording time of the target driving data if the target driving type represented by the target driving data is the same as the driving type represented by the driving data at an adjacent time, and the corresponding target time in the target time period is the process time.

[0109] It should be noted that the duration determination device provided in the above embodiment and the duration determination method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.

[0110] Another aspect of the present application provides an electronic device, including: a controller; a memory for storing one or more programs, and when the one or more programs are executed by the controller, the above-mentioned duration determination method is executed.

[0111] See also Figure 7 , Figure 7 1 is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.

[0112] It should be noted that Figure 7 The computer system 700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0113] like Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 to the random access memory (RAM) 703, such as executing the method in the above embodiment. In the RAM 703, various programs and data required for system operation are also stored. The CPU 701, ROM 702 and RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0114] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

[0115] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 709, and / or installed from a removable medium 711. When the computer program is executed by a central processing unit (CPU) 701, various functions defined in the system of the present application are executed.

[0116] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0117] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0118] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0119] Another aspect of the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned duration determination method when the computer program is executed by a processor. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0120] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the duration determination method provided in each of the above embodiments.

[0121] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0122] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0123] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A method for determining the duration of a target period, It is characterized in that The duration determination method comprises: Determine the driving data at the adjacent time of the target driving data; wherein the target driving data is any driving data, and the adjacent time includes the adjacent preceding time and the adjacent following time; According to the target driving type represented by the target driving data and the driving type represented by the driving data at adjacent times, the target time corresponding to the recording time of the target driving data in the target time period is determined, and the driving type corresponding to the target time period is determined according to the target time period; wherein the target time period includes the start time and the end time of the target time period, and the target time period is the time period for recording the target driving data; If the driving type corresponding to the target time period is a preset type, the duration of the target time period is determined according to the start time and the end time.

2. The duration determination method according to claim 1, It is characterized in that The step of determining the target driving type represented by the target driving data and the driving type represented by the driving data at adjacent moments, and the target moment corresponding to the recording moment of the target driving data in the target time period, further comprises: If the target driving type represented by the target driving data is different from the driving type represented by the driving data at the adjacent preceding moment, and the target driving type is the same as the driving type represented by the driving data at the adjacent succeeding moment, then determining the recording time of the target driving data, and the target time corresponding to the target time period is the starting time; If the target driving type is the same as the driving type represented by the driving data of the adjacent preceding moment, and the target driving type is different from the driving type represented by the driving data of the adjacent succeeding moment, then the recording time of the target driving data is determined, and the corresponding target time in the target time period is the end time.

3. The duration determination method according to claim 1, It is characterized in that The adjacent preceding time is empty; The step of determining the target driving type represented by the target driving data and the driving type represented by the driving data at adjacent moments, and the target moment corresponding to the recording moment of the target driving data in the target time period, further comprises: If the target driving type represented by the target driving data is the same as the driving type represented by the driving data at the adjacent subsequent time, then determining the recording time of the target driving data, and the target time corresponding to the target time period is the starting time; If the target driving type is different from the driving type represented by the driving data at the adjacent subsequent time, the recording time of the target driving data is determined, and the corresponding target time in the target time period is the end time.

4. The duration determination method according to claim 1, It is characterized in that In determining the recording time of the target driving data according to the target driving type represented by the target driving data and the driving type represented by the driving data at adjacent times, before the target time corresponding to the target time period, the duration determination method further includes: Detecting whether the adjacent subsequent time of the target driving data is empty; If yes, then determine the recording time of the target driving data, and the target time corresponding to the target time period is the end time; If not, execute the step of determining the target time corresponding to the recording time of the target driving data in the target time period based on the target driving type represented by the target driving data and the driving type represented by the driving data at adjacent times.

5. The duration determination method according to claim 1, It is characterized in that The step of determining the driving type within the target time period according to the target time further includes: If the target time is the starting time or the process time in the target time period, determining the driving type in the target time period as the target driving type; If the target time is the end time of the target period, the driving type in the target period is determined to be the driving type represented by the driving data of the adjacent preceding time.

6. The duration determination method according to any one of claims 1 to 5, It is characterized in that Before determining the driving data at adjacent moments of the target driving data, the duration determination method further includes: Sort each initial driving data according to the time sequence to obtain the target sequence; Traversing the initial driving data based on the target sequence, and using the traversed initial driving data as target initial driving data; If the recording time of the target initial driving data is the same as the recording time of the previous initial driving data or the recording time of the next initial driving data, the target initial driving data is deleted to obtain multiple driving data; wherein each driving data corresponds to a different recording time.

7. The duration determination method according to any one of claims 1 to 5, It is characterized in that The step of determining the target driving type represented by the target driving data and the driving type represented by the driving data at adjacent moments, and the target moment corresponding to the recording moment of the target driving data in the target time period, further comprises: If the target driving type represented by the target driving data is the same as the driving type represented by the driving data at the adjacent time, the recording time of the target driving data is determined, and the corresponding target time in the target period is the process time.

8. A device for determining the duration of a target period, It is characterized in that The duration determining device comprises: A driving data determination module, used to determine driving data at adjacent moments of target driving data; wherein the target driving data is any driving data, and the adjacent moments include adjacent preceding moments and adjacent following moments; A driving type determination module, configured to determine the target time corresponding to the recording time of the target driving data in a target period according to the target driving type represented by the target driving data and the driving type represented by the driving data at adjacent times, and determine the driving type corresponding to the target period according to the target time; wherein the target time includes the start time and the end time of the target period, and the target period is the period for recording the target driving data; The duration determination module is used to determine the duration of the target time period according to the start time and the end time if the driving type corresponding to the target time period is a preset type.

9. An electronic device, It is characterized in that include: Controller; A memory for storing one or more programs, which, when executed by a controller, enables the controller to implement the duration determination method described in any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the duration determination method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Travel analysis method and device based on vehicle speed state

    CN111739286A

  • User driving behavior restoration method and device, medium and electronic equipment

    CN112884943A

  • Travel determination method, apparatus and device

    CN114973670A

  • Data processing method and device for automatic driving system

    CN118025201A

  • Vehicle track segmentation method and device, electronic equipment and storage medium

    CN118227720A