[go: up one dir, main page]

WO2022116522A1 - Trip fusion method and apparatus, and vehicle - Google Patents

Trip fusion method and apparatus, and vehicle Download PDF

Info

Publication number
WO2022116522A1
WO2022116522A1 PCT/CN2021/102834 CN2021102834W WO2022116522A1 WO 2022116522 A1 WO2022116522 A1 WO 2022116522A1 CN 2021102834 W CN2021102834 W CN 2021102834W WO 2022116522 A1 WO2022116522 A1 WO 2022116522A1
Authority
WO
WIPO (PCT)
Prior art keywords
itinerary
time
fused
target
vehicle
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.)
Ceased
Application number
PCT/CN2021/102834
Other languages
French (fr)
Chinese (zh)
Inventor
黄桂洲
石教锦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xiaopeng Motors Technology Co Ltd
Guangzhou Chengxingzhidong Automotive Technology Co., Ltd
Original Assignee
Guangzhou Xiaopeng Motors Technology Co Ltd
Guangzhou Chengxingzhidong Automotive Technology Co., Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xiaopeng Motors Technology Co Ltd, Guangzhou Chengxingzhidong Automotive Technology Co., Ltd filed Critical Guangzhou Xiaopeng Motors Technology Co Ltd
Publication of WO2022116522A1 publication Critical patent/WO2022116522A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data

Definitions

  • the present invention relates to the technical field of electric vehicles, in particular to a method, device and vehicle for fusion of journeys.
  • embodiments of the present invention provide a method, device and vehicle for itinerary fusion to solve the above technical problems.
  • some embodiments of the present invention provide a itinerary fusion method, which is applied to a vehicle.
  • the method includes: acquiring a itinerary to be fused, and acquiring a time interval between a first time and a second time based on the to-be-fused itinerary, where The first time is the start time corresponding to the trip to be fused, and the second time is the stop time of the previous trip corresponding to the to-be-fused; determine whether the time interval is less than the first time threshold; if the time If the interval is smaller than the first time threshold, the itinerary to be fused is determined as a temporary itinerary; the itinerary to be fused and the previous itinerary are fused to obtain a target itinerary; and the target itinerary is stored.
  • some embodiments of the present invention further provide an apparatus for itinerary fusion, including an acquisition module, a first determination module, a second determination module, a fusion module, and a storage module.
  • an acquisition module configured to acquire the itinerary to be merged, and obtain the time interval between a first time and a second time based on the itinerary to be merged, where the first time is the start time corresponding to the itinerary to be merged, and the second time is the stop time of the previous trip corresponding to the to-be-fused.
  • a first determination module configured to determine whether the time interval is less than a first time threshold.
  • a second determining module configured to determine that the to-be-fused itinerary is a temporary itinerary if the time interval is less than the first time threshold.
  • the fusion module is configured to fuse the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.
  • the storage module is used for storing the target itinerary.
  • some embodiments of the present invention further provide an electronic controller, including a processor and a memory, where the memory stores computer program instructions, and when the computer program instructions are called by the processor, execute any of the above Itinerary fusion method
  • an embodiment of the present invention further provides a computer-readable storage medium, where computer program instructions are stored in the computer-readable storage medium, and the computer program code can be invoked by a processor to execute any one of the above-mentioned stroke fusion methods.
  • the present invention can more quickly and effectively determine whether to combine the to-be-fused itinerary with the previous itinerary.
  • the present invention can first obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, wherein the first time is the start time corresponding to the itinerary to be merged, and the second time is the start time of the itinerary to be merged The stop time of the corresponding previous trip, and then the present invention can determine whether the time interval between the first time and the second time is less than the first time threshold, and if it is less than the first time threshold, it is determined that the trip to be merged is a temporary trip, and then A target itinerary is obtained by merging the itinerary to be fused with the previous itinerary, and finally the application can store the target itinerary.
  • the present invention determines whether to fuse the to-be-fused itinerary with the previous itinerary by judging whether the time interval between the first time and the second time is less than the first time threshold, which can improve the accuracy of the itinerary acquisition to a certain extent, Thus, the user experience can be improved.
  • FIG. 1 shows a schematic diagram of an application environment provided according to an embodiment of the present invention.
  • FIG. 2 shows a schematic flowchart of a stroke fusion method provided by an embodiment of the present invention.
  • FIG. 3 shows a schematic flowchart of a stroke fusion method provided by another embodiment of the present invention.
  • FIG. 4 shows an example diagram of obtaining a time threshold in a stroke fusion method provided by another embodiment of the present invention.
  • FIG. 5 shows a schematic flowchart of step S250 in a stroke fusion method provided by another embodiment of the present invention.
  • FIG. 6 shows a schematic flowchart of a stroke fusion method provided by another embodiment of the present invention.
  • FIG. 7 shows a schematic flowchart of step S370 in a method for itinerary fusion provided by another embodiment of the present invention.
  • FIG. 8 shows a block diagram of a module of a stroke fusion apparatus provided by an embodiment of the present invention.
  • FIG. 9 shows a module block diagram of an electronic controller provided by an embodiment of the present invention.
  • FIG. 10 shows a module block diagram of a computer-readable storage medium provided by an embodiment of the present invention.
  • a vehicle control method provided in an embodiment of the present invention can be applied to a control system 10 of a vehicle.
  • the control system 10 of the vehicle may include a vehicle 11 and a server 12 , wherein the vehicle 11 may be connected to the server 12 for communication , that is, the vehicle 11 can send data to the server 12 , and can also receive data sent by the server 12 .
  • the server 12 may be a background server, which may be a TSP (Telematics Service Provider, telematics service provider) background, and the server 12 is configured to be connected to the vehicle 11 for communication and to receive data uploaded by the vehicle 11 , and send the data analysis result to the vehicle 11 according to the data.
  • the number of vehicles 11 may be one or multiple.
  • the data with the dimension of travel as the dimension is usually one of the data with the highest frequency, and the number of daily trips is also one of the information that the user cares about. Due to the loss of signal and the possibility that the user may get off the bus for a short time in the middle, one trip of the user may be cut into multiple different trips, and the trip merging operation needs to be performed at this time.
  • the existing itinerary merging algorithm instructs to merge different itineraries according to the interval of the itineraries. However, there is no way to merge some transit point itineraries that stay too long, which also makes the itinerary merging algorithm rough and not intelligent enough. , the user experience is not high.
  • the inventor after long-term research, proposes a method, device, and vehicle for travel fusion in the embodiments of the present invention. Effectively determine whether to combine the trip to be fused with the previous trip.
  • the present invention can first obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, wherein the first time is the start time corresponding to the itinerary to be merged, and the second time is the start time of the itinerary to be merged The stop time of the corresponding previous trip, and then the present invention can determine whether the time interval between the first time and the second time is less than the first time threshold, and if it is less than the first time threshold, it is determined that the trip to be merged is a temporary trip, and then A target itinerary is obtained by merging the itinerary to be fused with the previous itinerary, and finally the application can store the target itinerary.
  • the present invention determines whether to fuse the to-be-fused itinerary with the previous itinerary by judging whether the time interval between the first time and the second time is less than the first time threshold, which can improve the accuracy of the itinerary acquisition to a certain extent, Thus, the user experience can be improved.
  • FIG. 2 schematically shows a schematic flowchart of a stroke fusion method provided by an embodiment of the present invention.
  • the method may include the following steps S110 to S150.
  • Step S110 Obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged.
  • the electronic controller of the vehicle may acquire multiple itineraries to be merged, and the itineraries to be merged may be stored in the memory of the vehicle, or may be stored in a server, which communicates with the vehicle through wired or wireless communication. way to connect with the vehicle.
  • the vehicle may acquire the newly acquired itinerary to be fused every preset time period, and the newly acquired itinerary to be fused may be based on the itinerary after the last acquired itinerary to be fused. For example, the itinerary to be merged acquired by the vehicle at 17:00 on November 23, 2020 may be all the itineraries generated between 00:00 on October 23, 2020 and 17:00 on November 23, 2020.
  • the trip to be merged may include trip start time, trip end time, trip start location latitude, vehicle trip end location latitude, trip start location longitude, vehicle trip end location longitude, and trip duration (unit: seconds) ), travel distance, SOC (State Of Charge State, state of charge) at the beginning of the trip, SOC at the end of the trip, kilometers traveled at the beginning, kilometers traveled at the end of the trip, drivable kilometers at the beginning of the trip, and the end of the trip The number of kilometers that can be driven, etc. As a way, different itineraries to be merged can be distinguished by the time when the itinerary is generated.
  • SOC State Of Charge State, state of charge
  • the start time of the itinerary can be used as the unique identifier of the itinerary to be merged
  • the end time of the itinerary can be used as the unique identifier of the itinerary to be merged.
  • the start time and end time of the itinerary can also be used as the unique identifier of the itinerary to be merged.
  • the start time of itinerary A is 17:00 on November 23, 2020
  • the end time is 18:00 on November 23, 2020.
  • the logo of itinerary A can be set as: 2020/11/23/17: 00 ⁇ 2020/11/23/18:00.
  • the identifier of the itinerary can also be accurate to minutes or seconds.
  • how to set the identifier of the itinerary through the start time or end time of the itinerary is not limited here and can be selected according to the actual situation.
  • different itineraries to be fused can also be distinguished by configuring different itinerary identifiers for each of the itineraries to be fused.
  • the configuration can be determined in combination with the location of the trip, the time of the trip, and the number of kilometers traveled.
  • the identifier corresponding to the fusion itinerary may also be an identifier manually given by the user according to its usage.
  • each itinerary to be merged may include a start time and an end time of the itinerary. Therefore, after obtaining the itinerary to be merged, the vehicle can obtain the start time (start time) corresponding to the itinerary, which may be called the first time, and then the embodiment of the present invention may obtain the stop time of the migration itinerary corresponding to the itinerary to be merged (end time), the stop time is regarded as the second time.
  • the stroke to be merged and the previous stroke may constitute a continuous stroke, that is, there is no other stroke between the stroke to be merged and the previous stroke. In other words, after the vehicle in the previous trip is stopped, the trip generated when the vehicle is started again is the trip to be merged.
  • Step S120 Determine whether the time interval is less than a first time threshold.
  • the vehicle can determine whether the time interval is less than a first time threshold, where the first time is the start time corresponding to the itinerary to be merged, The second time is the stop time of the previous trip corresponding to the to-be-fused.
  • the first time threshold can be set based on experience, or can be determined based on the usage habits of the user corresponding to the vehicle, or can also be determined based on the age of the user corresponding to the vehicle. The older the age, the more the first time threshold can be set. big. For example, if the user's age is about 20-30 years old, the first time threshold can be set to 5 minutes, and if the user's age is about 60-70 years old, the first time threshold can be set to 10 minutes Wait.
  • the first time threshold may also be determined according to the gender of the user who uses the vehicle. When the gender of the user is female, the corresponding first time threshold may be 10 minutes, and when the gender of the user is male, the corresponding first time threshold may be 10 minutes. The first time threshold may be 5 minutes. In addition, the first time threshold may also be input by the user according to the actual situation. How to set the first time threshold is not specifically limited here, and can be set according to the usage.
  • step S120 when the vehicle determines that the time interval between the first time and the second time is less than the first time threshold, it may determine that the trip to be merged is a temporary trip, that is, step S120 is entered. If the time interval between the first time and the second time is greater than the first time threshold, the embodiment of the present invention may re-acquire the itinerary to be merged, and may also determine whether the time interval is greater than the second time threshold, or the like.
  • Step S130 Determine that the to-be-fused itinerary is a temporary itinerary.
  • the embodiments of the present invention may determine that the to-be-fused trip is a temporary trip, where the temporary trip refers to a trip generated by the user temporarily stopping while driving. For example, a trip generated by a user temporarily stopping to answer a phone while driving is a temporary trip. Because the temporary itinerary is a temporary itinerary generated by the user while driving through the car, the itinerary is not very useful for analyzing the user's behavior and habits. Therefore, when it is determined that the itinerary to be merged is a temporary itinerary, the embodiment of the present invention may Integrate with the previous itinerary to obtain the target itinerary, that is, go to step S140.
  • the embodiment of the present invention may also acquire the POI information (Point of Information) of the location of the vehicle at the first time , information point), and then determine whether the location of the vehicle is the first designated location according to the POI information, the scene corresponding to the first designated location is the user's interest scene, and the POI information may include the interest scene. Name, location coordinates, category and classification, etc. It can be a house, a shop, a mailbox or a bus stop, etc.
  • the vehicle may determine whether to fuse the information to be fused with the previous itinerary according to scene information corresponding to the first time.
  • the scene corresponding to the first time may be a scene where the user goes to and from get off work, a scene when he goes shopping in a supermarket, and the like.
  • the itinerary to be merged is determined to be a temporary itinerary, and the to-be-fused itinerary and the previous itinerary are fused to obtain the target itinerary, that is, the first time corresponding to When the scene that is not the user's interest scene, the to-be-fused itinerary and the previous itinerary are fused.
  • the itinerary to be merged is a non-temporary itinerary
  • the itinerary to be merged is taken as the target itinerary, that is, when the scene corresponding to the first time is the user's interest scene, It is not necessary to fuse the to-be-fused stroke and the previous stroke, it is only necessary to regard the to-be-fused stroke and the previous stroke as two front and rear strokes.
  • Step S140 Integrate the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.
  • the to-be-fused itinerary and the previous itinerary are fused, which may also be referred to as merging the to-be-fused itinerary and the previous itinerary.
  • the start time of the previous itinerary can be used as the start time of the target itinerary
  • the end time corresponding to the itinerary to be merged can be used as the end time of the target itinerary;
  • Take the longitude and latitude of the end position of the trip to be merged as the longitude and latitude of the end position of the target trip; take the sum of the previous trip duration and the duration of the trip to be integrated as the duration of the target trip; take the sum of the travel distance of the previous trip and the travel distance of the trip to be merged as Distance of the target trip; take the SOC at the beginning of the previous trip as the SOC at the beginning of the target trip, and the SOC at the end of the previous trip as the SOC at the end of the target trip; take the number of kilometers traveled at the beginning of the previous trip as the target The number of kilometers traveled at the beginning of the trip, and the number
  • the itinerary identifier corresponding to the itinerary to be merged may be used as the itinerary identifier corresponding to the target itinerary, or the previous itinerary may correspond to The itinerary identifier corresponding to the target itinerary, or the sum of the itinerary identifier corresponding to the itinerary to be merged and the itinerary identifier corresponding to the previous itinerary can also be used as the itinerary identifier corresponding to the target itinerary.
  • the target itinerary or the sum of the itinerary identifier corresponding to the itinerary to be merged and the itinerary identifier corresponding to the previous itinerary can also be used as the itinerary identifier corresponding to the target itinerary.
  • Step S150 Store the target itinerary.
  • the vehicle may store the target itinerary. Specifically, the vehicle may store the specific information corresponding to the target itinerary in In the memory of the vehicle, or the specific information corresponding to the target itinerary may also be sent to the server to instruct the server to store the specific information.
  • the vehicle or the server may also analyze the target itineraries, thereby realizing the mining of the user's travel habits.
  • a travel record of a user within a preset time period may be obtained, and the preset time period may be 30 days, and the travel record may include multiple target itineraries and information related thereto, and then the vehicle may The gps information in the travel record is processed by geohash, and the POI information association operation is performed at the same time, that is, the POI information is associated with the gps address of the user's travel.
  • the purpose of the association is to mine the user's travel behavior, and the mining of this behavior can be more It is good to recommend routes to users, recommend products, and do something for users in advance. For example, inform the weather conditions of the destination, predict that the user is about to leave work, turn on the air conditioner in advance, and so on.
  • the present invention can obtain the information such as departure place and transit place used by the user by analyzing the itinerary within the preset time period after obtaining the target itinerary. Hash is performed, and then the information of these locations in a certain period is counted.
  • the embodiment of the present invention can also mine personalized information such as the travel distribution, time-consuming distribution, and frequently traveled routes of the user's travel, and these information will be updated on a daily basis to automatically adapt to Changes in user habits.
  • the present invention can first obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, wherein the first time is the start time corresponding to the itinerary to be merged, and the second time is the start time of the itinerary to be merged The stop time of the corresponding previous trip, and then the present invention can determine whether the time interval between the first time and the second time is less than the first time threshold, and if it is less than the first time threshold, it is determined that the trip to be merged is a temporary trip, and then A target itinerary is obtained by merging the itinerary to be fused with the previous itinerary, and finally the application can store the target itinerary.
  • the present invention determines whether to fuse the to-be-fused itinerary with the previous itinerary by judging whether the time interval between the first time and the second time is less than the first time threshold, which can improve the accuracy of the itinerary acquisition to a certain extent, Thus, the user experience can be improved.
  • another embodiment of the embodiment of the present invention provides a stroke fusion method, which can be applied to a vehicle, and includes the following steps S210 to S270 .
  • Step S210 Acquire the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged.
  • Step S220 Determine whether the time interval is less than a first time threshold.
  • step S230 when it is determined that the time interval between the first time and the second time is less than the first time threshold, it may be determined that the to-be-fused trip is a temporary trip, that is, step S230 is entered.
  • this embodiment of the present invention may determine whether the time interval is greater than the second time threshold.
  • the second time threshold is greater than the first time threshold, and the second time threshold may be set according to experience, or may be determined according to the usage habits of the user corresponding to the vehicle, or may also be determined according to the attributes of the user corresponding to the vehicle, such as the age of the user , gender, etc. to set the second time threshold.
  • the first time threshold and the second time threshold may be set in different ways.
  • the embodiment of the present invention can also determine the first time threshold and the second time threshold by analyzing the travel interval distribution. Please refer to FIG. 4 for details. It can be known from FIG. Select different threshold intervals for cutting, and then verify through the manually marked verification set, and after verification that there is no problem, the embodiment of the present invention can relax the threshold, perform verification again, and repeat this step until the accuracy rate drops to the set value. The interval stops. On this basis, the effect comparison of different threshold intervals can be realized, and finally the first time threshold and the second time threshold interval can be determined.
  • the first time threshold in FIG. 4 may be 5 minutes
  • the second time threshold may be 20 minutes.
  • Step S230 Determine that the to-be-fused itinerary is a temporary itinerary.
  • Step S240 Determine whether the time interval is greater than a second time threshold.
  • the embodiment of the present invention may determine whether the time interval between the first time and the second time is greater than the second time threshold, if If it is greater than the second time threshold, it is determined that the to-be-fused itinerary is a non-temporary itinerary, and the to-be-fused itinerary is taken as the target itinerary, that is, step S250 is entered. In addition, if the time interval between the first time and the second time is less than the second time threshold, the itinerary to be merged is acquired again, that is, step S210 is entered.
  • Step S250 Determine that the to-be-fused itinerary is a non-temporary itinerary, and use the to-be-fused itinerary as a target itinerary.
  • step S250 may include steps S251 to S254 .
  • Step S251 if the time interval is greater than the second time threshold, acquire the information point of the location of the vehicle at the first time.
  • the information point of the location of the vehicle at the first time may include the name, location coordinates, category and classification of the scene corresponding to the location, and the time point of the location of the vehicle at the first time is obtained.
  • the embodiment of the present invention may determine whether the location of the vehicle is the second designated location according to the information point, that is, step S252 is entered.
  • Step S252 Determine whether the location of the vehicle is a second designated location according to the information point.
  • the embodiment of the present invention can determine whether the location of the vehicle is the second designated location according to the POI information of the location of the vehicle at the first time point, or determine whether the scene corresponding to the location of the vehicle is the designated scene, if it is the designated location
  • the to-be-fused itinerary and the previous itinerary are fused to obtain the target itinerary, that is, step S253 is entered, wherein the specified scenario may be a highway service station, a gas station, or the like. If it is not the specified scene, it is determined that the to-be-fused itinerary is a non-temporary itinerary, and the to-be-fused itinerary is taken as the target itinerary, that is, step S254 is entered.
  • Step S253 Integrate the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.
  • Step S254 Determine that the to-be-fused itinerary is a non-temporary itinerary, and use the to-be-fused itinerary as a target itinerary.
  • Step S260 Integrate the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.
  • Step S270 Store the target itinerary.
  • the present invention can first obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, wherein the first time is the start time corresponding to the itinerary to be merged, and the second time is the start time of the itinerary to be merged The stop time of the corresponding previous trip, and then the present invention can determine whether the time interval between the first time and the second time is less than the first time threshold, and if it is less than the first time threshold, it is determined that the trip to be merged is a temporary trip, and then A target itinerary is obtained by merging the itinerary to be fused with the previous itinerary, and finally the application can store the target itinerary.
  • the present invention determines whether to fuse the to-be-fused itinerary with the previous itinerary by judging whether the time interval between the first time and the second time is less than the first time threshold, which can improve the accuracy of the itinerary acquisition to a certain extent, Thus, the user experience can be improved.
  • the final acquired target itinerary can be more accurate, and can better meet the actual needs of the user.
  • another embodiment of the present invention provides a stroke fusion method, which can be applied to a vehicle, and includes the following steps S310 to S390 .
  • Step S310 Acquire the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged.
  • Step S320 Determine whether the time interval is less than a first time threshold.
  • the embodiment of the present invention may determine that the trip to be merged is a temporary trip, that is, enter step S330, and when the time interval between the first time and the second time is greater than the first time
  • the threshold value is greater than the second time threshold value, it is determined that the to-be-fused itinerary is a non-temporary itinerary, and the to-be-fused itinerary is taken as the target itinerary, that is, step S350 is entered.
  • Step S330 Determine that the to-be-fused itinerary is a temporary itinerary.
  • Step S340 Determine whether the time interval is greater than a second time threshold.
  • Step S350 Determine that the to-be-fused itinerary is a non-temporary itinerary, and use the to-be-fused itinerary as a target itinerary.
  • Step S360 Determine whether the information point of the location of the vehicle at the first time is obtained.
  • Step S370 Find the number of times that the vehicle appears at the position corresponding to the first time, and when the number of times is greater than a preset number of times, fuse the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.
  • the embodiment of the present invention may search for the number of times the vehicle appears at the position corresponding to the first time, and determine Whether the number of times is greater than the preset number of times, if it is greater than the preset number of times, the to-be-fused stroke and the previous stroke are fused to obtain the target stroke.
  • the present invention can obtain the information point that is the location of the vehicle at the first time, as shown in FIG. 7 , and it can be seen from FIG. 7 , step S370 may include steps S371 to S374.
  • Step S371 If the number of times is less than or equal to a preset number of times, acquire the information point of the location of the vehicle at the first time.
  • the vehicle when the number of times is less than or equal to the preset number of times, the vehicle can obtain the information point of the location of the vehicle at the first time, and input the information point into the machine learning model, through the machine learning model It is determined whether the to-be-fused itinerary is a temporary itinerary, that is, step S372 is entered.
  • Step S372 Use a machine learning model to determine whether the information point is a fused information point.
  • the embodiment of the present invention may first obtain the machine learning model, specifically, first obtain a model training data set, and the model training
  • the data set can be a common data set, or it can be data obtained by the user through manual labeling.
  • the itinerary information can be sampled to obtain a preset number of sampling points, the preset number can be 15, and then on the map. Display the itinerary above, and then combine the POI information to realize the data collection.
  • the trip data may also be acquired by means such as an internal vehicle survey.
  • each itinerary can be divided into equal distances, for example, divided into 20 segments, then 2 segments from the beginning to the end, and the first GPS point of each segment in the remaining 16 segments is taken as a representative Via points, the route of the itinerary can be drawn on the map by using the information of these waypoints, and the route information and POI information displayed on the map are used to label these itineraries whether they need to be merged. Sampling over the phone ensures the accuracy of the labelling.
  • the embodiment of the present invention may input the training data set into the primary network, and use the training data set to train the primary network to obtain a machine learning model.
  • the features used can be processed first, specifically including hashing the GPS geographic location information, normalizing the number of occurrences of transit points and initial points in the historical itinerary to between 0 and 1, and comparing the GPS information with POI information to associate and other operations.
  • characteristic data may be acquired by using the user's itinerary data and the information filled in by the user. For example, extract the gps information of different users' homes and companies, the hash value of 16 gps points for each trip, the POI information of the trip start point and end point, the normalized characteristics of the trip start time and end time, and the trip interval, etc. According to these data, the embodiment of the present invention can also extract the interval time of each trip of the user in the past 90 days, 30 days, and 7 days, the stay time at the POI point, and the hash value of the gps point of the user's frequent route. After acquiring these characteristic data, the embodiment of the present invention can implement the training of the machine learning model.
  • the embodiment of the present invention may select different network algorithms for joint training, and then select an algorithm with better effect from among them as the algorithm for training the machine learning model.
  • the algorithm may include LR, GBDT, XGboost and so on.
  • GBDT is a model integrated by multiple base classifiers.
  • the base classifiers mostly use the CART binary tree classifier, and Gradient Boosting is a progressive combination method.
  • Gradient Boosting is a progressive combination method.
  • Each new classifier is in the previous classifier.
  • LR logistic regression analysis, which is a generalized linear regression analysis model, which is often used in data mining, economic forecasting and other fields.
  • Logistic regression is essentially a binary classification problem and is based on the Sigmoid function (also known as "Sigmoid function”) supervised two-class classification model; Adaboost is an iterative algorithm, its core idea is to train different classifiers (weak classifiers) for the same training set, and then aggregate these weak classifiers, A stronger final classifier (strong classifier) is formed, and the new data set with modified weights is sent to the lower classifier for training, and finally the classifiers obtained each time are finally fused as the final decision classifier.
  • Sigmoid function also known as "Sigmoid function”
  • the training data set can be fitted by the method of LR+GBDT, that is, the GBDT is used to fit the samples, and then the combined features with strong analysis are extracted from the generated trees. Then fuse these features with the original features, and finally use LR to fit these data sets and features.
  • the embodiment of the present invention can also calculate a result value through the Adaboost model, in the case where the confidence level of LR is at the fuzzy boundary You can refer to the value of the Adaboost model below, so that the final obtained machine learning model can more accurately judge the fusion itinerary.
  • the embodiment of the present invention can also continuously optimize the machine learning model according to user feedback and manual spot checks, so as to ensure the continuous effectiveness and stability of the model. For example, data adoption, cleaning, feature extraction and other tasks are automatically completed every 3 days, and then the machine learning model will be automatically trained. After the machine learning model is trained, the data in the training data set will be randomly selected for testing, as long as the accuracy rate is high. If the preset threshold interval of the previous model is exceeded, the embodiment of the present invention will replace the original model. If the preset threshold is not exceeded, the original machine learning model will remain unchanged. If the effect of the machine learning model does not improve for one month in a row , there will be manual intervention to check the relevant data and adjust the relevant model parameters, so as to achieve the accurate acquisition of the target itinerary.
  • Step S373 Integrate the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.
  • Step S374 Use the to-be-fused itinerary as a target itinerary.
  • Step S380 Integrate the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.
  • Step S390 Store the target itinerary.
  • the first rule can be called expert rule
  • the second rule can be called machine learning
  • the embodiment of the present invention can first judge by expert rules.
  • the expert rules cannot determine whether the itinerary to be merged can be merged with the previous itinerary, machine learning can be used rule to judge.
  • the expert rule can determine whether the time interval between the first time and the second time is less than the first time threshold, or whether it is greater than the second time threshold.
  • the embodiment of the present invention can first extract a preset number of gps sampling points corresponding to the itinerary, calculate the POI information of the starting point and the ending point, and the interval from the end of the previous itinerary. duration, where the preset number can be 16. Then use the expert rule to judge, if the expert gives a conclusion of merger or non-merge, the conclusion of the expert rule is adopted; if the expert rule gives an uncertain conclusion, the calculated itinerary characteristics and user id are passed to the machine learning model. Finally, the results of the machine learning model are used to determine whether to perform the trip fusion operation.
  • the time interval between the first time and the second time is less than 2 minutes, they will be merged directly. For example, if the car owner suddenly stops to answer the phone and drives immediately, then this trip and the previous trip will be regarded as the same trip. , the time interval of 2 minutes is very short, and it can be considered that the two trips before and after can be combined from the perception. If it is greater than 20 minutes, it will not be merged, because of how long the interval between the front and rear trips is, it can be considered that the front and rear trips are separated from the perception. If it is between 2 and 20 minutes, obtain the POI information of the starting point of the itinerary, and determine whether the POI information is empty.
  • the POI information is empty, it is not a residential, commercial, station, etc., merge the itinerary, that is, determine whether the POI can be obtained. For example, if the vehicle stayed on the side of the road for ten minutes, and there is no information that can be mined at this starting point, it can be considered that the front and rear are the same trip. If the POI information is not empty, according to the owner's historical behavior, for example, the owner will send the child to the kindergarten on the way to work every day, and will stay in the kindergarten for a short time. journey. If the POI information is not empty, the owner's historical travel habits are obtained. If the owner's history has more than 5 short stops at the POI location, the itinerary will be merged, otherwise the machine learning model will be called for judgment.
  • the present invention can first obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, wherein the first time is the start time corresponding to the itinerary to be merged, and the second time is the start time of the itinerary to be merged The stop time of the corresponding previous trip, and then the present invention can determine whether the time interval between the first time and the second time is less than the first time threshold, and if it is less than the first time threshold, it is determined that the trip to be merged is a temporary trip, and then A target itinerary is obtained by merging the itinerary to be fused with the previous itinerary, and finally the application can store the target itinerary.
  • the present invention determines whether to fuse the to-be-fused itinerary with the previous itinerary by judging whether the time interval between the first time and the second time is less than the first time threshold, which can improve the accuracy of the itinerary acquisition to a certain extent, Thus, the user experience can be improved.
  • the embodiment of the present invention by combining the first time threshold and the second time threshold, the final acquired target itinerary can be more accurate, and can better meet the actual needs of the user.
  • the embodiments of the present invention can combine the itineraries more intelligently by combining expert rules and machine learning rules.
  • an embodiment of the present invention further provides a journey fusion apparatus 400 , the journey fusion apparatus 400 includes an acquisition module 410 , a first determination module 420 , a second determination module 430 , a fusion module 440 and a storage module 450 .
  • the obtaining module 410 is configured to obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, the first time is the start time corresponding to the itinerary to be merged, the second time Time is the stop time of the previous trip corresponding to the to-be-fused.
  • the first determination module 420 is configured to determine whether the time interval is less than a first time threshold.
  • the second determination module 430 is configured to determine that the to-be-fused itinerary is a temporary itinerary if the time interval is less than the first time threshold.
  • the fusion module 440 is configured to fuse the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.
  • the fusion module 440 may be further configured to acquire the information point of the location of the vehicle at the first time if the time interval is less than the first time threshold, and determine the information point according to the information point. whether the location of the vehicle is the first designated location, the scene corresponding to the first designated location is the user's interest scene, and if the location of the vehicle is the first designated location, it is determined that the itinerary to be merged is a non-temporary itinerary, Taking the to-be-fused itinerary as the target itinerary, if the location of the vehicle is not the first designated location, then determine the to-be-fused itinerary as a temporary itinerary, and fuse the to-be-fused itinerary with the previous itinerary to obtain the target journey.
  • the storage module 450 is configured to store the target itinerary.
  • the apparatus 400 is further configured to determine whether the time interval is greater than the second time threshold if the time interval is greater than the first time threshold, and determine whether the time interval is greater than the second time threshold if the time interval is greater than the second time threshold.
  • the to-be-fused itinerary is a non-temporary itinerary, and the to-be-fused itinerary is used as a target itinerary.
  • the apparatus 400 is further configured to acquire an information point of the location of the vehicle at the first time if the time interval is greater than the second time threshold; and determine the location of the vehicle according to the information point. Whether the location is the second designated location, the scene corresponding to the second designated location is a temporary parking scene; if the location of the vehicle is the second designated location, the to-be-fused itinerary and the previous itinerary are fused, A target itinerary is obtained; if the location of the vehicle is not the second designated location, it is determined that the itinerary to be merged is a non-temporary itinerary, and the itinerary to be merged is used as a target itinerary.
  • the device 400 is further configured to, if the time interval is less than or equal to the second time threshold, determine whether to obtain the information point of the location of the vehicle at the first time; if not, Then, the to-be-fused itinerary and the previous itinerary are fused to obtain a target itinerary.
  • the device 400 is further configured to find the number of times that the vehicle appears at the position corresponding to the first time if obtained, and determine whether the number of times is greater than a preset number of times; The described itinerary to be fused and the previous itinerary are fused to obtain the target itinerary.
  • the device 400 is further configured to obtain the information point of the location of the vehicle at the first time if the number of times is less than or equal to a preset number of times; and use a machine learning model to determine whether the information point can be fused. information point; if it is an information point that can be fused, the itinerary to be fused and the previous itinerary are fused to obtain the target itinerary.
  • the apparatus 400 is further configured to use the itinerary to be fused as a target itinerary if the information point is not a fused information point.
  • the stroke fusion device By acquiring the time interval between the first time and the second time, the stroke fusion device provided in the embodiment of the present invention can more quickly and effectively determine whether to perform the fusion stroke with the previous stroke.
  • the present invention can first obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, wherein the first time is the start time corresponding to the itinerary to be merged, and the second time is the start time of the itinerary to be merged The stop time of the corresponding previous trip, and then the present invention can determine whether the time interval between the first time and the second time is less than the first time threshold, and if it is less than the first time threshold, it is determined that the trip to be merged is a temporary trip, and then A target itinerary is obtained by merging the itinerary to be fused with the previous itinerary, and finally the application can store the target itinerary.
  • the present invention determines whether to fuse the to-be-fused itinerary with the previous itinerary by judging whether the time interval between the first time and the second time is less than the first time threshold, which can improve the accuracy of the itinerary acquisition to a certain extent, Thus, the user experience can be improved.
  • an embodiment of the present invention further provides an electronic controller 500 .
  • the electronic controller 500 includes a processor 510 and a memory 520 .
  • the memory 520 stores computer program instructions, and the computer program instructions are called by the processor 510 in real time. Execute the itinerary fusion method described above
  • Processor 510 may include one or more processing cores.
  • the processor 510 uses various interfaces and lines to connect various parts in the entire electronic controller, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 520, and calling the data stored in the memory 520.
  • Various functions of the electronic controller and processing data may adopt at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 510 may integrate one or a combination of a central processing unit 510 (Central Processing Unit, CPU), a graphics processor 510 (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used for rendering and drawing of the display content
  • the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 510, and is implemented by a communication chip alone.
  • the memory 520 may include a random access memory 520 (Random Access Memory, RAM), or may include a read-only memory 520 (Read-Only Memory).
  • the memory 520 map may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 520 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the above method embodiments, and the like.
  • the storage data area can also store data etc. created by the electronic controller in use.
  • an embodiment of the present invention further provides a computer-readable storage medium 600, where computer program instructions 610 are stored in the computer-readable storage medium 600, and the computer program instructions 610 can be invoked by a processor to execute the above implementation method described in the example.
  • the computer-readable storage medium may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium includes a non-volatile computer-readable storage medium (non-transitory computer-readable storage medium).
  • Computer readable storage medium 600 has storage space for program code to perform any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. The program code may, for example, be compressed in a suitable form.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)
  • Navigation (AREA)

Abstract

A trip fusion method and apparatus, and a vehicle. Said method comprises: acquiring a trip to be fused, and on the basis of said trip, acquiring a time interval between a first time point and a second time point (S110), the first time point being the start time corresponding to said trip, and the second time point being the stop time corresponding to a previous trip to be fused; determining whether the time interval is less than a first time threshold (S120); if the time interval is less than the first time threshold, determining that said trip is a temporary trip (S130); fusing said trip with the previous trip, so as to obtain a target trip (S140); and storing the target trip (S150). According to the trip fusion method, it is determined whether a time interval is less than a first time threshold, so as to determine whether to fuse a trip to be fused with a previous trip, such that the accuracy of target trip acquisition can be improved to a certain extent.

Description

行程融合方法、装置以及车辆Trip fusion method, device, and vehicle

交叉引用cross reference

本申请要求2020年12月1日递交的发明名称为“行程融合方法、装置以及车辆”的申请号为202011398906.5的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。The present application claims the priority of the prior application with the application number 202011398906.5 filed on December 1, 2020 and entitled "Travel Fusion Method, Device and Vehicle", the contents of which are incorporated into this text by way of reference .

技术领域technical field

本发明涉及电动汽车技术领域,具体涉及一种行程融合方法、装置以及车辆。The present invention relates to the technical field of electric vehicles, in particular to a method, device and vehicle for fusion of journeys.

背景技术Background technique

目前在一些业务场景中,用户存在获取车辆行程的需求,而在给用户展示相关用车数据时,通常以行程为维度的数据是出现的频率最高的信息之一,并且每天的行程次数也是用户比较关心的信息之一。因此,如何更好的获取行程信息,以通过该行程信息满足用户的不同需求是亟待解决的问题。At present, in some business scenarios, users have the need to obtain vehicle itineraries, and when displaying relevant vehicle data to users, the data with the itinerary as the dimension is usually one of the most frequently appeared information, and the daily number of trips is also a user One of the more interesting information. Therefore, how to better obtain the itinerary information, so as to meet the different needs of the user through the itinerary information, is an urgent problem to be solved.

发明内容SUMMARY OF THE INVENTION

鉴于以上问题,本发明实施例提供一种行程融合方法、装置以及车辆,以解决上述技术问题。In view of the above problems, embodiments of the present invention provide a method, device and vehicle for itinerary fusion to solve the above technical problems.

本发明实施例是采用以下技术方案实现的:The embodiment of the present invention is realized by adopting the following technical solutions:

第一方面,本发明一些实施例提供一种行程融合方法,应用于车辆,所述方法包括:获取待融合行程,并基于所述待融合行程获取第一时间与第二时间的时间间隔,所述第一时间是所述待融合行程对应的启动时间,所述第二时间是所述待融合对应的前一行程的停止时间;确定所述时间间隔是否小于第一时间阈值;若所述时间间隔小于所述第一时间阈值,则确定所述待融合行程为临时行程;将所述待融合行程和所述前一行程进行融合,得到目标行程;对所述目标行程进行存储。In a first aspect, some embodiments of the present invention provide a itinerary fusion method, which is applied to a vehicle. The method includes: acquiring a itinerary to be fused, and acquiring a time interval between a first time and a second time based on the to-be-fused itinerary, where The first time is the start time corresponding to the trip to be fused, and the second time is the stop time of the previous trip corresponding to the to-be-fused; determine whether the time interval is less than the first time threshold; if the time If the interval is smaller than the first time threshold, the itinerary to be fused is determined as a temporary itinerary; the itinerary to be fused and the previous itinerary are fused to obtain a target itinerary; and the target itinerary is stored.

第二方面,本发明一些实施例还提供一种行程融合装置,包括获取模块、第一确定模块、第二确定模块、融合模块和存储模块。获取模块,用于获取待融合行程,并基于所述待融合行程获取第一时间与第二时间的时间间隔,所述第一时间是所述待融合行程对应的启动时间,所述第二时间是所述待融合对应的前一行程的停止时间。第一确定模块,用于确定所述时间间隔是否小于第一时间阈值。第二确定模块,用于若所述时间间隔小于所述第一时间阈值,则确定所述待融合行程为临时行程。融合模块,用于将所述待融合行程和所述前一行程进行融合,得到目标行程。存储模块,用于对所述目标行程进行存储。In a second aspect, some embodiments of the present invention further provide an apparatus for itinerary fusion, including an acquisition module, a first determination module, a second determination module, a fusion module, and a storage module. an acquisition module, configured to acquire the itinerary to be merged, and obtain the time interval between a first time and a second time based on the itinerary to be merged, where the first time is the start time corresponding to the itinerary to be merged, and the second time is the stop time of the previous trip corresponding to the to-be-fused. A first determination module, configured to determine whether the time interval is less than a first time threshold. A second determining module, configured to determine that the to-be-fused itinerary is a temporary itinerary if the time interval is less than the first time threshold. The fusion module is configured to fuse the to-be-fused itinerary with the previous itinerary to obtain a target itinerary. The storage module is used for storing the target itinerary.

第三方面,本发明一些实施例还提供一种电子控制器,包括处理器以及存储器,所述存储器存储有计算机程序指令,所述计算机程序指令被所述处理器调用时执行上述任一项所述的行程融合方法In a third aspect, some embodiments of the present invention further provide an electronic controller, including a processor and a memory, where the memory stores computer program instructions, and when the computer program instructions are called by the processor, execute any of the above Itinerary fusion method

第四方面,本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序指令,计算机程序代码可被处理器调用以执行上述任一项的行程融合方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where computer program instructions are stored in the computer-readable storage medium, and the computer program code can be invoked by a processor to execute any one of the above-mentioned stroke fusion methods.

本发明实施例提供的行程融合方法、装置以及车辆,本发明通过获取第一时间与第二时间之间的时间间隔,可以更加快速有效的确定是否将待融合行程与前一行程进行。具体的,本发明首先可以获取待融合行程,并基于待融合行程获取第一时间与第二时间的时间间隔,其中,第一时间是待融合行程对应的启动时间,而第二时间是待融合对应的前一行程的停止时间,而后本发明可以确定第一时间与第二时间之间的时间间隔是否小于第一时间阈值,若小于第一时间阈值,则确定待融合行程为临时行程,然后将待融合行程和前一行程进行融合,得到目标行程,最后本申请可以对该目标行程进行存储。本发明通过判断第一时间与第二时间之间的时间间隔是否小于第一时间阈值,来确定是否将待融合行程和前一行程进行融合,其在一定程度上可以提高行程获取的准确性,进而可以提高用户的使用体验。In the itinerary fusion method, device, and vehicle provided by the embodiments of the present invention, by obtaining the time interval between the first time and the second time, the present invention can more quickly and effectively determine whether to combine the to-be-fused itinerary with the previous itinerary. Specifically, the present invention can first obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, wherein the first time is the start time corresponding to the itinerary to be merged, and the second time is the start time of the itinerary to be merged The stop time of the corresponding previous trip, and then the present invention can determine whether the time interval between the first time and the second time is less than the first time threshold, and if it is less than the first time threshold, it is determined that the trip to be merged is a temporary trip, and then A target itinerary is obtained by merging the itinerary to be fused with the previous itinerary, and finally the application can store the target itinerary. The present invention determines whether to fuse the to-be-fused itinerary with the previous itinerary by judging whether the time interval between the first time and the second time is less than the first time threshold, which can improve the accuracy of the itinerary acquisition to a certain extent, Thus, the user experience can be improved.

本发明的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the invention will be more clearly understood from the description of the following embodiments.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1示出了根据本发明实施例提供的应用环境示意图。FIG. 1 shows a schematic diagram of an application environment provided according to an embodiment of the present invention.

图2示出了本发明一实施例提供的一种行程融合方法的流程示意图。FIG. 2 shows a schematic flowchart of a stroke fusion method provided by an embodiment of the present invention.

图3示出了本发明另一实施例提供的一种行程融合方法的流程示意图。FIG. 3 shows a schematic flowchart of a stroke fusion method provided by another embodiment of the present invention.

图4示出了本发明另一实施例提供的一种行程融合方法中时间阈值获取示例图。FIG. 4 shows an example diagram of obtaining a time threshold in a stroke fusion method provided by another embodiment of the present invention.

图5示出了本发明另一实施例提供的一种行程融合方法中步骤S250的流程示意图。FIG. 5 shows a schematic flowchart of step S250 in a stroke fusion method provided by another embodiment of the present invention.

图6示出了本发明又一实施例提供的一种行程融合方法的流程示意图。FIG. 6 shows a schematic flowchart of a stroke fusion method provided by another embodiment of the present invention.

图7示出了本发明又一实施例提供的一种行程融合方法中步骤S370的流程示意图。FIG. 7 shows a schematic flowchart of step S370 in a method for itinerary fusion provided by another embodiment of the present invention.

图8示出了本发明实施例提供的一种行程融合装置的模块框图。FIG. 8 shows a block diagram of a module of a stroke fusion apparatus provided by an embodiment of the present invention.

图9示出了本发明实施例提供的一种电子控制器的模块框图。FIG. 9 shows a module block diagram of an electronic controller provided by an embodiment of the present invention.

图10示出了本发明实施例提供的一种计算机可读存储介质的模块框图。FIG. 10 shows a module block diagram of a computer-readable storage medium provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面详细描述本发明的实施方式,实施方式的示例在附图中示出,其中自始 至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性地,仅用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, only used to explain the present invention, and should not be construed as a limitation of the present invention.

下面详细描述本发明的实施方式,实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性地,仅用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, only used to explain the present invention, and should not be construed as a limitation of the present invention.

为了使本技术领域的人员更好地理解本发明的方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.

下面针对本发明实施提供的行程融合方法的应用环境进行介绍:The following is an introduction to the application environment of the itinerary fusion method provided by the implementation of the present invention:

请参阅图1,本发明实施例提供的车辆的控制方法的可以应用于车辆的控制系统10,该车辆的控制系统10可以包括车辆11和服务器12,其中,车辆11可以与服务器12进行通信连接,即车辆11可以发送数据至服务器12,也可以接收服务器12发送的数据。另外,服务器12可以为后台服务器,其可以是TSP(Telematics Service Provider,汽车远程服务提供商)后台,服务器12被配置为与所述车辆11通信连接,且用于接收所述车辆11上传的数据,并根据所述数据向所述车辆11下发数据分析结果。可选的,车辆11的数量可以是一个,也可以是多个。Referring to FIG. 1 , a vehicle control method provided in an embodiment of the present invention can be applied to a control system 10 of a vehicle. The control system 10 of the vehicle may include a vehicle 11 and a server 12 , wherein the vehicle 11 may be connected to the server 12 for communication , that is, the vehicle 11 can send data to the server 12 , and can also receive data sent by the server 12 . In addition, the server 12 may be a background server, which may be a TSP (Telematics Service Provider, telematics service provider) background, and the server 12 is configured to be connected to the vehicle 11 for communication and to receive data uploaded by the vehicle 11 , and send the data analysis result to the vehicle 11 according to the data. Optionally, the number of vehicles 11 may be one or multiple.

目前,在给用户展示相关的用车数据时,通常以行程为维度的数据是出现频率最高的数据之一,并且每天的行程次数也是用户表关心的信息之一。由于存在信号丢失以及中途用户可能短暂下车等情况,用户的一个行程可能被切割成多个不同的行程,这时就需要执行行程合并操作。现有的行程合并算法指示根据行程件的间隔来合并不同的行程,然而这样对于一些停留时间过长的中转点行程是没有办法进行合并的,如此也使得行程合并算法较为粗糙,且不够智能化,用户使用体验不高。At present, when displaying relevant vehicle data to users, the data with the dimension of travel as the dimension is usually one of the data with the highest frequency, and the number of daily trips is also one of the information that the user cares about. Due to the loss of signal and the possibility that the user may get off the bus for a short time in the middle, one trip of the user may be cut into multiple different trips, and the trip merging operation needs to be performed at this time. The existing itinerary merging algorithm instructs to merge different itineraries according to the interval of the itineraries. However, there is no way to merge some transit point itineraries that stay too long, which also makes the itinerary merging algorithm rough and not intelligent enough. , the user experience is not high.

为了解决上述技术问题,发明人经过长期研究,提出了本发明实施例中的行程融合方法、装置以及车辆,该行程融合方法通过获取第一时间与第二时间之间的时间间隔,可以更加快速有效的确定是否将待融合行程与前一行程进行。具体的,本发明首先可以获取待融合行程,并基于待融合行程获取第一时间与第二时间的时间间隔,其中,第一时间是待融合行程对应的启动时间,而第二时间是待融合对应的前一行程的停止时间,而后本发明可以确定第一时间与第二时间之间的时间间隔是否小于第一时间阈值,若小于第一时间阈值,则确定待融合行程为临时行程,然后将待融合行程和前一行程进行融合,得到目标行程,最后本申请可以对该目标行程进行存储。本发明通过判断第一时间与第二时间之间的时间间 隔是否小于第一时间阈值,来确定是否将待融合行程和前一行程进行融合,其在一定程度上可以提高行程获取的准确性,进而可以提高用户的使用体验。In order to solve the above-mentioned technical problems, the inventor, after long-term research, proposes a method, device, and vehicle for travel fusion in the embodiments of the present invention. Effectively determine whether to combine the trip to be fused with the previous trip. Specifically, the present invention can first obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, wherein the first time is the start time corresponding to the itinerary to be merged, and the second time is the start time of the itinerary to be merged The stop time of the corresponding previous trip, and then the present invention can determine whether the time interval between the first time and the second time is less than the first time threshold, and if it is less than the first time threshold, it is determined that the trip to be merged is a temporary trip, and then A target itinerary is obtained by merging the itinerary to be fused with the previous itinerary, and finally the application can store the target itinerary. The present invention determines whether to fuse the to-be-fused itinerary with the previous itinerary by judging whether the time interval between the first time and the second time is less than the first time threshold, which can improve the accuracy of the itinerary acquisition to a certain extent, Thus, the user experience can be improved.

如图2所示,图2示意性地示出了本发明实施例提供的行程融合方法的流程示意图。该方法可以包括以下步骤S110至步骤S150。As shown in FIG. 2 , FIG. 2 schematically shows a schematic flowchart of a stroke fusion method provided by an embodiment of the present invention. The method may include the following steps S110 to S150.

步骤S110:获取待融合行程,并基于所述待融合行程获取第一时间与第二时间的时间间隔。Step S110: Obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged.

在一些实施方式中,车辆的电子控制器可以获取多个待融合行程,所述待融合行程可以存储于所述车辆的存储器中,也可以存储于服务器中,该服务器与车辆通过有线或者无线的方式与车辆连接。作为一种方式,车辆可以每隔预设时间段会获取最新获取的待融合行程,所述最新获取的待融合行程可以是基于上一次获取的最后一个待融合行程之后的行程。例如,车辆在2020年11月23日17:00获取的待融合行程可以是2020年10月23日00:00点至2020年11月23日17:00之间所产生的所有行程。In some embodiments, the electronic controller of the vehicle may acquire multiple itineraries to be merged, and the itineraries to be merged may be stored in the memory of the vehicle, or may be stored in a server, which communicates with the vehicle through wired or wireless communication. way to connect with the vehicle. As an approach, the vehicle may acquire the newly acquired itinerary to be fused every preset time period, and the newly acquired itinerary to be fused may be based on the itinerary after the last acquired itinerary to be fused. For example, the itinerary to be merged acquired by the vehicle at 17:00 on November 23, 2020 may be all the itineraries generated between 00:00 on October 23, 2020 and 17:00 on November 23, 2020.

在另一些实施方式中,所述待融合行程可以包括行程开始时间、行程结束时间、行程开始位置纬度、车辆行程结束位置纬度、行程开始位置经度、车辆行程结束位置经度、行程时长(单位:秒)、行程距离、行程开始时SOC(State Of Charge State,充电状态)、行程结束时SOC、开始时已行驶公里数、行程结束时已行驶公里数、行程开始时可行驶公里数以及行程结束时可行驶公里数等。作为一种方式,不同的待融合行程可以通过行程产生的时间不同而区分,如可以将行程开始的时间作为待融合行程的唯一标识,又如可以将行程结束的时间作为待融合行程的唯一标识,或者也可以将行程开始的时间和结束的时间作为待融合行程的唯一标识。例如,行程A的开始时间为2020年11月23日17:00,结束时间为2020年11月23日18:00,此时行程A的标识则可以设置成为:2020/11/23/17:00~2020/11/23/18:00。另外,为了使得行程A的获取更加准确,行程的标识也可以精确到分或者秒,具体如何通过行程的开始时间或者结束时间来设置行程的标识这里不进行明确限制可以根据实际情况进行选择。In other embodiments, the trip to be merged may include trip start time, trip end time, trip start location latitude, vehicle trip end location latitude, trip start location longitude, vehicle trip end location longitude, and trip duration (unit: seconds) ), travel distance, SOC (State Of Charge State, state of charge) at the beginning of the trip, SOC at the end of the trip, kilometers traveled at the beginning, kilometers traveled at the end of the trip, drivable kilometers at the beginning of the trip, and the end of the trip The number of kilometers that can be driven, etc. As a way, different itineraries to be merged can be distinguished by the time when the itinerary is generated. For example, the start time of the itinerary can be used as the unique identifier of the itinerary to be merged, and the end time of the itinerary can be used as the unique identifier of the itinerary to be merged. , or the start time and end time of the itinerary can also be used as the unique identifier of the itinerary to be merged. For example, the start time of itinerary A is 17:00 on November 23, 2020, and the end time is 18:00 on November 23, 2020. At this time, the logo of itinerary A can be set as: 2020/11/23/17: 00~2020/11/23/18:00. In addition, in order to make the acquisition of itinerary A more accurate, the identifier of the itinerary can also be accurate to minutes or seconds. Specifically, how to set the identifier of the itinerary through the start time or end time of the itinerary is not limited here and can be selected according to the actual situation.

作为另一种方式,本发明实施例也可以通过为每个待融合行程配置不同的行程标识来将不同的待融合行程进行区分。该配置可以结合行程的位置、行程的时间以及行驶的公里数等确定。另外,融合行程对应的标识也可以是用户根据其使用情况手动给出的标识。As another way, in this embodiment of the present invention, different itineraries to be fused can also be distinguished by configuring different itinerary identifiers for each of the itineraries to be fused. The configuration can be determined in combination with the location of the trip, the time of the trip, and the number of kilometers traveled. In addition, the identifier corresponding to the fusion itinerary may also be an identifier manually given by the user according to its usage.

通过上述介绍可以知道,每个待融合行程可以包括行程的开始时间和结束时间。因此,在获取到待融合行程后,车辆可以获取行程对应的启动时间(开始时间),该启动时间可以称为第一时间,而后本发明实施例可以获取待融合行程对应的迁移行程的停止时间(结束时间),将该停止时间作为第二时间。其中,待融合行程和前一行程可以构成连续的行程,即在待融合行程和前一行程之间不存在其他行程。换句话说,前一行程车辆停止后,当车辆再次被启动后所产生的行程即为待融合行程。It can be known from the above description that each itinerary to be merged may include a start time and an end time of the itinerary. Therefore, after obtaining the itinerary to be merged, the vehicle can obtain the start time (start time) corresponding to the itinerary, which may be called the first time, and then the embodiment of the present invention may obtain the stop time of the migration itinerary corresponding to the itinerary to be merged (end time), the stop time is regarded as the second time. The stroke to be merged and the previous stroke may constitute a continuous stroke, that is, there is no other stroke between the stroke to be merged and the previous stroke. In other words, after the vehicle in the previous trip is stopped, the trip generated when the vehicle is started again is the trip to be merged.

步骤S120:确定所述时间间隔是否小于第一时间阈值。Step S120: Determine whether the time interval is less than a first time threshold.

在一些实施方式中,车辆在获取到第一时间和第二时间的时间间隔后,可以确该时间间隔是否小于第一时间阈值,其中,第一时间是所述待融合行程对应的启动时间,而第二时间是所述待融合对应的前一行程的停止时间。另外,第一时间阈值可以根据经验值设置,也可以根据车辆对应用户的使用习惯确定,或者也可以根据车辆对应用户的使用年龄确定,年龄越大则所述第一时间阈值则可以设置的越大。比如,用户的年龄是在20~30岁左右,所述第一时间阈值则可以设置成5分钟,而如果用户的年龄在60~70岁左右,所述第一时间阈值则可以设置成10分钟等。In some embodiments, after obtaining the time interval between the first time and the second time, the vehicle can determine whether the time interval is less than a first time threshold, where the first time is the start time corresponding to the itinerary to be merged, The second time is the stop time of the previous trip corresponding to the to-be-fused. In addition, the first time threshold can be set based on experience, or can be determined based on the usage habits of the user corresponding to the vehicle, or can also be determined based on the age of the user corresponding to the vehicle. The older the age, the more the first time threshold can be set. big. For example, if the user's age is about 20-30 years old, the first time threshold can be set to 5 minutes, and if the user's age is about 60-70 years old, the first time threshold can be set to 10 minutes Wait.

在另一些实施方式中,第一时间阈值也可以根据车辆使用用户的性别来确定,当用户的性别是女时,对应的第一时间阈值可以为10分钟,当用户的性别是男时,对应的第一时间阈值则可以为5分钟。另外,第一时间阈值也可以是用户根据其实际情况输入的。第一时间阈值具体如何设置这里不进行明确限制,可以根据使用情况进行设置。In other embodiments, the first time threshold may also be determined according to the gender of the user who uses the vehicle. When the gender of the user is female, the corresponding first time threshold may be 10 minutes, and when the gender of the user is male, the corresponding first time threshold may be 10 minutes. The first time threshold may be 5 minutes. In addition, the first time threshold may also be input by the user according to the actual situation. How to set the first time threshold is not specifically limited here, and can be set according to the usage.

在一些实施方式中,车辆在确定第一时间和第二时间的时间间隔小于第一时间阈值时,其可以确定所述待融合行程为临时行程,即进入步骤S120。如果第一时间和第二时间的时间间隔大于第一时间阈值时,本发明实施例可以重新获取待融合行程,也可以确定该时间间隔是否大于第二时间阈值等。In some embodiments, when the vehicle determines that the time interval between the first time and the second time is less than the first time threshold, it may determine that the trip to be merged is a temporary trip, that is, step S120 is entered. If the time interval between the first time and the second time is greater than the first time threshold, the embodiment of the present invention may re-acquire the itinerary to be merged, and may also determine whether the time interval is greater than the second time threshold, or the like.

步骤S130:确定所述待融合行程为临时行程。Step S130: Determine that the to-be-fused itinerary is a temporary itinerary.

在一些实施方式中,当确定时间间隔小于第时间阈值时,本发明实施例可以确定待融合行程为临时行程,其中,临时行程指的是用户在驾车过车中发生临时停车所产生的行程。例如,用户在驾车过程中,临时停车接电话所产生的行程即为临时行程。因为临时行程为用户在驾车过车中的临时所产生的行程,该行程对于用户行为习惯分析用处不大,因此,在确定待融合行程为临时行程时,本发明实施例可以将该待融合行程和前一行程进行融合,得到目标行程,即进入步骤S140。In some implementation manners, when the determined time interval is less than the first time threshold, the embodiments of the present invention may determine that the to-be-fused trip is a temporary trip, where the temporary trip refers to a trip generated by the user temporarily stopping while driving. For example, a trip generated by a user temporarily stopping to answer a phone while driving is a temporary trip. Because the temporary itinerary is a temporary itinerary generated by the user while driving through the car, the itinerary is not very useful for analyzing the user's behavior and habits. Therefore, when it is determined that the itinerary to be merged is a temporary itinerary, the embodiment of the present invention may Integrate with the previous itinerary to obtain the target itinerary, that is, go to step S140.

在另一些实施方式中,在确定第一时间和第二时间的时间间隔小于第一时间阈值时,本发明实施例也可以获取在第一时间时所述车辆所在位置的POI信息(Point of Information,信息点),然后根据所述POI信息确定所述车辆所在位置是否为第一指定位置,所述第一指定位置对应的场景是用户的兴趣场景,所述POI信息可以包括所述兴趣场景的名称、位置坐标、类别以及分类等,其可以是一栋房子、一个商铺、一个邮筒或者是一个公交站等。In other embodiments, when it is determined that the time interval between the first time and the second time is less than the first time threshold, the embodiment of the present invention may also acquire the POI information (Point of Information) of the location of the vehicle at the first time , information point), and then determine whether the location of the vehicle is the first designated location according to the POI information, the scene corresponding to the first designated location is the user's interest scene, and the POI information may include the interest scene. Name, location coordinates, category and classification, etc. It can be a house, a shop, a mailbox or a bus stop, etc.

在另一些实施方式中,车辆在确定第一时间和第二时间的时间间隔小于第一阈值时,可以根据第一时间对应的场景信息,确定是否将待融合信息和前一行程进行融合。其中,第一时间对应的场景可以是用户上下班的场景、去超市购物的场景等。In other embodiments, when the vehicle determines that the time interval between the first time and the second time is less than the first threshold, the vehicle may determine whether to fuse the information to be fused with the previous itinerary according to scene information corresponding to the first time. The scene corresponding to the first time may be a scene where the user goes to and from get off work, a scene when he goes shopping in a supermarket, and the like.

本发明实施例中,当确定车辆所在位置不是第一指定位置时,则确定待融合 行程为临时行程,将所述待融合行程和前一行程进行融合,得到目标行程,即在第一时间对应的场景不是用户的兴趣场景时,将所述待融合行程和前一行程进行融合。另外,当车辆所在位置是第一指定位置时,则确定所述待融合行程为非临时行程,将所述待融合行程作为目标行程,即在第一时间对应的场景是用户的兴趣场景时,不需要将所述待融合行程和前一行程进行融合,只需要将待融合行程和前一行程看成是前后两个行程即可。In the embodiment of the present invention, when it is determined that the location of the vehicle is not the first designated location, the itinerary to be merged is determined to be a temporary itinerary, and the to-be-fused itinerary and the previous itinerary are fused to obtain the target itinerary, that is, the first time corresponding to When the scene that is not the user's interest scene, the to-be-fused itinerary and the previous itinerary are fused. In addition, when the location of the vehicle is the first designated location, it is determined that the itinerary to be merged is a non-temporary itinerary, and the itinerary to be merged is taken as the target itinerary, that is, when the scene corresponding to the first time is the user's interest scene, It is not necessary to fuse the to-be-fused stroke and the previous stroke, it is only necessary to regard the to-be-fused stroke and the previous stroke as two front and rear strokes.

步骤S140:将所述待融合行程和所述前一行程进行融合,得到目标行程。Step S140: Integrate the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.

作为一种方式,将待融合行程和前一行程进行融合,也可以称为将待融合行程和前一行程进行合并。具体的,可以将前一行程的开始时间作为目标行程的开始时间,以及将待融合行程对应的结束时间作为目标行程的结束时间;将前一行程开始位置经纬度作为目标行程开始位置的经纬度,以及将待融合行程结束位置经纬度作为目标行程结束位置的经纬度;将前一行程时长和待融合行程的时长之和作为目标行程的时长;将前一行程行驶距离和待融合行程的行驶距离之和作为目标行程的距离;将前一行程开始时的SOC作为目标行程开始时的SOC,以及将前一行程结束时的SOC作为目标行程结束时的SOC;将前一行程开始时已行驶公里数作为目标行程开始时已行驶公里数,以及将待融合行程结束时候已行驶公里数作为目标行程结束时候已行驶公里数;将前一行程开始时可行驶公里数作为目标行程开始时可行驶公里数,以及将待融合行程结束时候可行驶公里数作为目标行程结束时候可行驶公里数等。As one way, the to-be-fused itinerary and the previous itinerary are fused, which may also be referred to as merging the to-be-fused itinerary and the previous itinerary. Specifically, the start time of the previous itinerary can be used as the start time of the target itinerary, and the end time corresponding to the itinerary to be merged can be used as the end time of the target itinerary; Take the longitude and latitude of the end position of the trip to be merged as the longitude and latitude of the end position of the target trip; take the sum of the previous trip duration and the duration of the trip to be integrated as the duration of the target trip; take the sum of the travel distance of the previous trip and the travel distance of the trip to be merged as Distance of the target trip; take the SOC at the beginning of the previous trip as the SOC at the beginning of the target trip, and the SOC at the end of the previous trip as the SOC at the end of the target trip; take the number of kilometers traveled at the beginning of the previous trip as the target The number of kilometers traveled at the beginning of the trip, and the number of kilometers traveled at the end of the to-be-fused trip as the number of kilometers traveled at the end of the target trip; the number of kilometers traveled at the beginning of the previous trip as the number of kilometers traveled at the beginning of the target trip, and Take the drivable kilometers at the end of the to-be-integrated trip as the drivable kilometers at the end of the target trip, etc.

在另一些实施方式中,在将待融合行程和所述前一行程进行融合,得到目标行程后,可以将待融合行程对应的行程标识作为目标行程对应的行程标识,也可以将前一行程对应的行程标识作为目标行程对应的行程标识,或者也可以将待融合行程对应的行程标识和前一行程对应的行程标识之和作为目标行程对应的行程标识,目标行程标识具体如何设置这里就不进行明确限制了。需要说明的是,在将待融合行程和前一行程进行融合,得到目标行程的过程中,需要保证合并后的行程信息与单个行程的信息是兼容一致的。In some other implementations, after the itinerary to be merged and the previous itinerary are fused to obtain the target itinerary, the itinerary identifier corresponding to the itinerary to be merged may be used as the itinerary identifier corresponding to the target itinerary, or the previous itinerary may correspond to The itinerary identifier corresponding to the target itinerary, or the sum of the itinerary identifier corresponding to the itinerary to be merged and the itinerary identifier corresponding to the previous itinerary can also be used as the itinerary identifier corresponding to the target itinerary. clearly restricted. It should be noted that, in the process of merging the itinerary to be merged with the previous itinerary to obtain the target itinerary, it is necessary to ensure that the merged itinerary information is compatible with the information of a single itinerary.

步骤S150:对所述目标行程进行存储。Step S150: Store the target itinerary.

在本发明实施例中,在将待融合行程和前一行程进行融合,得到目标行程之后,车辆可以将所述目标行程进行存储,具体的,车辆可以将所述目标行程对应的具体信息存储于车辆的存储器中,或者也可以将所述目标行程对应的具体信息发送至服务器,指示所述服务器对所述具体信息进行存储。In the embodiment of the present invention, after the to-be-fused itinerary and the previous itinerary are fused to obtain the target itinerary, the vehicle may store the target itinerary. Specifically, the vehicle may store the specific information corresponding to the target itinerary in In the memory of the vehicle, or the specific information corresponding to the target itinerary may also be sent to the server to instruct the server to store the specific information.

在另一些实施方式中,在获取到多个目标行程后,车辆或者服务器也可以对所述目标行程进行分析,进而实现对用户出行习惯的挖掘。具体的,本发明实施例可以获取用户在预设时间段内的出行记录,所述预设时间段可以是30天,而出行记录则可以包括多个目标行程以及与其相关的信息,而后车辆可以将出行记录中的gps信息用geohash处理,同时执行POI信息关联操作,即将POI信息和用户出行的gps地址关联,所述关联的目的是为了挖掘用户的出行行为,而该行 为习惯的挖掘可以更好的给用户推荐路线、推荐商品、提前为用户做好一些事情。例如,告知目的地的天气情况、预知用户即将下班,提前开空调等等。In other implementations, after acquiring multiple target itineraries, the vehicle or the server may also analyze the target itineraries, thereby realizing the mining of the user's travel habits. Specifically, in this embodiment of the present invention, a travel record of a user within a preset time period may be obtained, and the preset time period may be 30 days, and the travel record may include multiple target itineraries and information related thereto, and then the vehicle may The gps information in the travel record is processed by geohash, and the POI information association operation is performed at the same time, that is, the POI information is associated with the gps address of the user's travel. The purpose of the association is to mine the user's travel behavior, and the mining of this behavior can be more It is good to recommend routes to users, recommend products, and do something for users in advance. For example, inform the weather conditions of the destination, predict that the user is about to leave work, turn on the air conditioner in advance, and so on.

综上,本发明在获取到目标行程后通过对预设时间段内行程的分析可以获取用户用用的出发地、中转地等信息,其分析的过程中可以采用geohash的算法对gps地理位置信息进行hash,而后统计一定周期内这些位置的信息,同时本发明实施例还可以挖掘用户出行的行程分布、耗时分布以及常走线路等个性化信息,且这些信息会按天更新,以自动适应用户习惯改变的情况。To sum up, the present invention can obtain the information such as departure place and transit place used by the user by analyzing the itinerary within the preset time period after obtaining the target itinerary. Hash is performed, and then the information of these locations in a certain period is counted. At the same time, the embodiment of the present invention can also mine personalized information such as the travel distribution, time-consuming distribution, and frequently traveled routes of the user's travel, and these information will be updated on a daily basis to automatically adapt to Changes in user habits.

本发明实施例提供的行程融合方法通过获取第一时间与第二时间之间的时间间隔,可以更加快速有效的确定是否将待融合行程与前一行程进行。具体的,本发明首先可以获取待融合行程,并基于待融合行程获取第一时间与第二时间的时间间隔,其中,第一时间是待融合行程对应的启动时间,而第二时间是待融合对应的前一行程的停止时间,而后本发明可以确定第一时间与第二时间之间的时间间隔是否小于第一时间阈值,若小于第一时间阈值,则确定待融合行程为临时行程,然后将待融合行程和前一行程进行融合,得到目标行程,最后本申请可以对该目标行程进行存储。本发明通过判断第一时间与第二时间之间的时间间隔是否小于第一时间阈值,来确定是否将待融合行程和前一行程进行融合,其在一定程度上可以提高行程获取的准确性,进而可以提高用户的使用体验。By acquiring the time interval between the first time and the second time in the itinerary fusion method provided by the embodiment of the present invention, it can more quickly and effectively determine whether to perform the to-be-fused itinerary with the previous itinerary. Specifically, the present invention can first obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, wherein the first time is the start time corresponding to the itinerary to be merged, and the second time is the start time of the itinerary to be merged The stop time of the corresponding previous trip, and then the present invention can determine whether the time interval between the first time and the second time is less than the first time threshold, and if it is less than the first time threshold, it is determined that the trip to be merged is a temporary trip, and then A target itinerary is obtained by merging the itinerary to be fused with the previous itinerary, and finally the application can store the target itinerary. The present invention determines whether to fuse the to-be-fused itinerary with the previous itinerary by judging whether the time interval between the first time and the second time is less than the first time threshold, which can improve the accuracy of the itinerary acquisition to a certain extent, Thus, the user experience can be improved.

如图3所示,本发明实施例另一实施例提供了一种行程融合方法,该行程融合方法可以应用于车辆,其包括以下步骤S210至步骤S270。As shown in FIG. 3 , another embodiment of the embodiment of the present invention provides a stroke fusion method, which can be applied to a vehicle, and includes the following steps S210 to S270 .

步骤S210:获取待融合行程,并基于所述待融合行程获取第一时间与第二时间的时间间隔。Step S210: Acquire the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged.

步骤S220:确定所述时间间隔是否小于第一时间阈值。Step S220: Determine whether the time interval is less than a first time threshold.

在一些实施方式中,在确定第一时间与第二时间的时间间隔小于第一时间阈值时可以确定所述待融合行程为临时行程,即进入步骤S230。另外,如果第一时间与第二时间的时间间隔大于或者等于第一时间阈值时,本发明实施例可以确定所述时间间隔是否大于第二时间阈值。其中,第二时间阈值大于第一时间阈值,第二时间阈值可以根据经验值设置,也可以根据车辆对应用户的使用习惯确定,或者也可以根据车辆对应用户的属性进行确定,如根据用户的年龄、性别等对第二时间阈值进行设置。综上,本发明实施例可以通过不同方式对第一时间阈值和第二时间阈值进行设置。In some embodiments, when it is determined that the time interval between the first time and the second time is less than the first time threshold, it may be determined that the to-be-fused trip is a temporary trip, that is, step S230 is entered. In addition, if the time interval between the first time and the second time is greater than or equal to the first time threshold, this embodiment of the present invention may determine whether the time interval is greater than the second time threshold. Wherein, the second time threshold is greater than the first time threshold, and the second time threshold may be set according to experience, or may be determined according to the usage habits of the user corresponding to the vehicle, or may also be determined according to the attributes of the user corresponding to the vehicle, such as the age of the user , gender, etc. to set the second time threshold. To sum up, in this embodiment of the present invention, the first time threshold and the second time threshold may be set in different ways.

在另一些实施方式中,本发明实施例也可以通过对行程间隔分布进行分析,从而确定出第一时间阈值和第二时间阈值,详细请参阅图4,通过图4可以知道,本发明首选可以选定不同的阈值区间进行切割,然后在通过人工标注好的验证集进行验证,验证没有问题之后,本发明实施例可以放宽阈值,再进行验证,重复这个步骤,直到准确率下降到设定的区间即停止,在此基础上可以实现对不同阈值区间的效果对比,最后即可确定出第一时间阈值和第二时间阈值区间。图4中的第一时间阈值可以为5分钟,而第二时间阈值则可以为20分钟。In other implementations, the embodiment of the present invention can also determine the first time threshold and the second time threshold by analyzing the travel interval distribution. Please refer to FIG. 4 for details. It can be known from FIG. Select different threshold intervals for cutting, and then verify through the manually marked verification set, and after verification that there is no problem, the embodiment of the present invention can relax the threshold, perform verification again, and repeat this step until the accuracy rate drops to the set value. The interval stops. On this basis, the effect comparison of different threshold intervals can be realized, and finally the first time threshold and the second time threshold interval can be determined. The first time threshold in FIG. 4 may be 5 minutes, and the second time threshold may be 20 minutes.

步骤S230:确定所述待融合行程为临时行程。Step S230: Determine that the to-be-fused itinerary is a temporary itinerary.

步骤S240:确定所述时间间隔是否大于第二时间阈值。Step S240: Determine whether the time interval is greater than a second time threshold.

作为一种方式,在确定第一时间和第二时间的时间间隔小于第一时间阈值时,本发明实施例可以确定所述第一时间和第二时间的时间间隔是否大于第二时间阈值,若大于第二时间阈值,则确定所述待融合行程为非临时行程,将所述待融合行程作为目标行程,即进入步骤S250。另外,如果第一时间和第二时间的时间间隔小于第二时间阈值,则重新获取待融合行程,即进入步骤S210。As one way, when it is determined that the time interval between the first time and the second time is less than the first time threshold, the embodiment of the present invention may determine whether the time interval between the first time and the second time is greater than the second time threshold, if If it is greater than the second time threshold, it is determined that the to-be-fused itinerary is a non-temporary itinerary, and the to-be-fused itinerary is taken as the target itinerary, that is, step S250 is entered. In addition, if the time interval between the first time and the second time is less than the second time threshold, the itinerary to be merged is acquired again, that is, step S210 is entered.

步骤S250:确定所述待融合行程为非临时行程,将所述待融合行程作为目标行程。Step S250: Determine that the to-be-fused itinerary is a non-temporary itinerary, and use the to-be-fused itinerary as a target itinerary.

在另一些实施方式中,在确定第一时间和第二时间的时间间隔大于第二时间阈值时,本发明实施例也可以通过获取在第一时间时所述车辆所在位置的信息点来确定是否将所述待融合行程和所述前一行程进行融合,具体的如图5所示,从图5可以看出,步骤S250可以包括步骤S251至步骤S254。In other embodiments, when it is determined that the time interval between the first time and the second time is greater than the second time threshold, the embodiment of the present invention may also determine whether to Fusion of the to-be-fused itinerary and the previous itinerary is specifically shown in FIG. 5 . As can be seen from FIG. 5 , step S250 may include steps S251 to S254 .

步骤S251:若所述时间间隔大于所述第二时间阈值,则获取在所述第一时间时所述车辆所在位置的信息点。Step S251 : if the time interval is greater than the second time threshold, acquire the information point of the location of the vehicle at the first time.

通过上述介绍可以知道,在第一时间时所述车辆所在位置的信息点可以包括该位置对应场景的名称、位置坐标、类别以及分类等,获取到所述车辆在第一时间所在位置的时间点之后,本发明实施例可以根据该信息点确定所述车辆所在位置是否为第二指定位置,即进入步骤S252。It can be known from the above introduction that the information point of the location of the vehicle at the first time may include the name, location coordinates, category and classification of the scene corresponding to the location, and the time point of the location of the vehicle at the first time is obtained. Afterwards, the embodiment of the present invention may determine whether the location of the vehicle is the second designated location according to the information point, that is, step S252 is entered.

步骤S252:根据所述信息点确定所述车辆所在位置是否为第二指定位置。Step S252: Determine whether the location of the vehicle is a second designated location according to the information point.

作为一种方式,本发明施例可以根据车辆在第一时间点所在位置的POI信息确定车辆所在位置是否为第二指定位置,或者是确定车辆所在位置对应的场景是否为指定场景,若为指定场景,则将所述待融合行程和前一行程进行融合,得到目标行程,即进入步骤S253,其中,指定场景可以是高速路服务站、加油站等。如果不是指定场景,则确定所述待融合行程为非临时行程,将所述待融合行程作为目标行程,即进入步骤S254。As a way, the embodiment of the present invention can determine whether the location of the vehicle is the second designated location according to the POI information of the location of the vehicle at the first time point, or determine whether the scene corresponding to the location of the vehicle is the designated scene, if it is the designated location In the scenario, the to-be-fused itinerary and the previous itinerary are fused to obtain the target itinerary, that is, step S253 is entered, wherein the specified scenario may be a highway service station, a gas station, or the like. If it is not the specified scene, it is determined that the to-be-fused itinerary is a non-temporary itinerary, and the to-be-fused itinerary is taken as the target itinerary, that is, step S254 is entered.

步骤S253:将所述待融合行程和所述前一行程进行融合,得到目标行程。Step S253: Integrate the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.

步骤S254:确定所述待融合行程为非临时行程,将所述待融合行程作为目标行程。Step S254: Determine that the to-be-fused itinerary is a non-temporary itinerary, and use the to-be-fused itinerary as a target itinerary.

步骤S260:将所述待融合行程和所述前一行程进行融合,得到目标行程。Step S260: Integrate the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.

步骤S270:对所述目标行程进行存储。Step S270: Store the target itinerary.

本发明实施例提供的行程融合方法通过获取第一时间与第二时间之间的时间间隔,可以更加快速有效的确定是否将待融合行程与前一行程进行。具体的,本发明首先可以获取待融合行程,并基于待融合行程获取第一时间与第二时间的时间间隔,其中,第一时间是待融合行程对应的启动时间,而第二时间是待融合对应的前一行程的停止时间,而后本发明可以确定第一时间与第二时间之间的时间间隔是否小于第一时间阈值,若小于第一时间阈值,则确定待融合行程为临时 行程,然后将待融合行程和前一行程进行融合,得到目标行程,最后本申请可以对该目标行程进行存储。本发明通过判断第一时间与第二时间之间的时间间隔是否小于第一时间阈值,来确定是否将待融合行程和前一行程进行融合,其在一定程度上可以提高行程获取的准确性,进而可以提高用户的使用体验。另外,本发明实施例通过结合第一时间阈值和第二时间阈值,可以使最终获取的目标行程更加准确,且更能符合用户的实际需求。By acquiring the time interval between the first time and the second time in the itinerary fusion method provided by the embodiment of the present invention, it can more quickly and effectively determine whether to perform the to-be-fused itinerary with the previous itinerary. Specifically, the present invention can first obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, wherein the first time is the start time corresponding to the itinerary to be merged, and the second time is the start time of the itinerary to be merged The stop time of the corresponding previous trip, and then the present invention can determine whether the time interval between the first time and the second time is less than the first time threshold, and if it is less than the first time threshold, it is determined that the trip to be merged is a temporary trip, and then A target itinerary is obtained by merging the itinerary to be fused with the previous itinerary, and finally the application can store the target itinerary. The present invention determines whether to fuse the to-be-fused itinerary with the previous itinerary by judging whether the time interval between the first time and the second time is less than the first time threshold, which can improve the accuracy of the itinerary acquisition to a certain extent, Thus, the user experience can be improved. In addition, in the embodiment of the present invention, by combining the first time threshold and the second time threshold, the final acquired target itinerary can be more accurate, and can better meet the actual needs of the user.

如图6所示,本发明实施例又一实施例提供了一种行程融合方法,该行程融合方法可以应用于车辆,其包括以下步骤S310至步骤S390。As shown in FIG. 6 , another embodiment of the present invention provides a stroke fusion method, which can be applied to a vehicle, and includes the following steps S310 to S390 .

步骤S310:获取待融合行程,并基于所述待融合行程获取第一时间与第二时间的时间间隔。Step S310: Acquire the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged.

步骤S320:确定所述时间间隔是否小于第一时间阈值。Step S320: Determine whether the time interval is less than a first time threshold.

作为一种方式,在确定时间间隔小于第一时间阈值时,本发明实施例可以确定待融合行程为临时行程,即进入步骤S330,而当第一时间和第二时间的时间间隔大于第一时间阈值,且大于第二时间阈值时,确定所述待融合行程为非非临时行程,将所述待融合行程作为目标行程,即进入步骤S350。As one way, when the determined time interval is smaller than the first time threshold, the embodiment of the present invention may determine that the trip to be merged is a temporary trip, that is, enter step S330, and when the time interval between the first time and the second time is greater than the first time When the threshold value is greater than the second time threshold value, it is determined that the to-be-fused itinerary is a non-temporary itinerary, and the to-be-fused itinerary is taken as the target itinerary, that is, step S350 is entered.

步骤S330:确定所述待融合行程为临时行程。Step S330: Determine that the to-be-fused itinerary is a temporary itinerary.

步骤S340:确定所述时间间隔是否大于第二时间阈值。Step S340: Determine whether the time interval is greater than a second time threshold.

步骤S350:确定所述待融合行程为非临时行程,将所述待融合行程作为目标行程。Step S350: Determine that the to-be-fused itinerary is a non-temporary itinerary, and use the to-be-fused itinerary as a target itinerary.

步骤S360:确定是否获取到所述车辆在所述第一时间时所在位置的信息点。Step S360: Determine whether the information point of the location of the vehicle at the first time is obtained.

步骤S370:查找所述车辆出现在所述第一时间对应的位置的次数,当该次数大于预设次数时,将所述待融合行程和所述前一行程进行融合,得到目标行程。Step S370: Find the number of times that the vehicle appears at the position corresponding to the first time, and when the number of times is greater than a preset number of times, fuse the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.

作为一种方式,在确定第一时间和第二时间的时间间隔大于第一时间阈值,且小于第二时间阈值时,本发明实施例可以查找车辆出现在第一时间对应位置的次数,并确定该次数是否大于预设次数,如果大于预设次数,则将待融合行程和前一行程进行融合,得到目标行程。另外,当车辆出现在第一时间对应位置的次数小于或者等于预设次数时,本发明可以获取在第一时间是车辆所在位置的信息点,具体如图7所示,从图7可以看出,步骤S370可以包括步骤S371至步骤S374。As one way, when it is determined that the time interval between the first time and the second time is greater than the first time threshold and less than the second time threshold, the embodiment of the present invention may search for the number of times the vehicle appears at the position corresponding to the first time, and determine Whether the number of times is greater than the preset number of times, if it is greater than the preset number of times, the to-be-fused stroke and the previous stroke are fused to obtain the target stroke. In addition, when the number of times the vehicle appears at the corresponding location at the first time is less than or equal to the preset number of times, the present invention can obtain the information point that is the location of the vehicle at the first time, as shown in FIG. 7 , and it can be seen from FIG. 7 , step S370 may include steps S371 to S374.

步骤S371:若该次数小于或者等于预设次数,则获取在所述第一时间时所述车辆所在位置的信息点。Step S371: If the number of times is less than or equal to a preset number of times, acquire the information point of the location of the vehicle at the first time.

本发明实施例中,当该次数小于或者等于预设次数时,车辆可以获取在第一时间时车辆所在位置的信息点,并将该信息点输入至机器学习模型中,通过所述机器学习模型确定所述待融合行程是否为临时行程,即进入步骤S372。In the embodiment of the present invention, when the number of times is less than or equal to the preset number of times, the vehicle can obtain the information point of the location of the vehicle at the first time, and input the information point into the machine learning model, through the machine learning model It is determined whether the to-be-fused itinerary is a temporary itinerary, that is, step S372 is entered.

步骤S372:利用机器学习模型确定所述信息点是否为可融合信息点。Step S372: Use a machine learning model to determine whether the information point is a fused information point.

作为一种方式,在利用机器学习模型确定所述信息点是否为可融合信息点之前,本发明实施例可以先获取所述机器学习模型,具体的,首先获取模型训练数 据集,所述模型训练数据集可以是通常的数据集,也可以是用户通过手动打标签的方式获取的数据,首先可以对行程信息进行采样,得到预设数量个采样点,预设数量可以是15个,然后在地图上将该行程显示出来,再结合POI信息实现对数据的采集。另外,行程数据也可以是通过对内部车辆调查等手段获取的。As a method, before using a machine learning model to determine whether the information point is a fused information point, the embodiment of the present invention may first obtain the machine learning model, specifically, first obtain a model training data set, and the model training The data set can be a common data set, or it can be data obtained by the user through manual labeling. First, the itinerary information can be sampled to obtain a preset number of sampling points, the preset number can be 15, and then on the map. Display the itinerary above, and then combine the POI information to realize the data collection. In addition, the trip data may also be acquired by means such as an internal vehicle survey.

在一个具体的实施例中,可以将每一个行程进行等距离划分,如划分为20段,然后掐头去尾各2段,取剩下16段中每段的第一个GPS点作为代表性途经点,利用这些途径点信息即可在地图中绘制出行程的线路,通过地图上显示的线路信息以及POI信息,为这些行程打上是否需要合并的标签,同时,对于内部车辆的行程,还会抽样通过电话的方式确保所打标签的准确性。In a specific embodiment, each itinerary can be divided into equal distances, for example, divided into 20 segments, then 2 segments from the beginning to the end, and the first GPS point of each segment in the remaining 16 segments is taken as a representative Via points, the route of the itinerary can be drawn on the map by using the information of these waypoints, and the route information and POI information displayed on the map are used to label these itineraries whether they need to be merged. Sampling over the phone ensures the accuracy of the labelling.

作为另一种方式,获取到训练数据集后,本发明实施例可以将该训练数据集输入到初级网络中,利用所述训练数据集对所述初级网络进行训练得到机器学习模型,在此过程中可以先对用到的特征进行处理,具体的可以包括对gps地理位置信息hash化、对历史行程中中转点和初始点出现次数进行归一化到0和1之间以及将gps信息与POI信息进行相关联等操作。As another method, after the training data set is obtained, the embodiment of the present invention may input the training data set into the primary network, and use the training data set to train the primary network to obtain a machine learning model. The features used can be processed first, specifically including hashing the GPS geographic location information, normalizing the number of occurrences of transit points and initial points in the historical itinerary to between 0 and 1, and comparing the GPS information with POI information to associate and other operations.

作为一个示例,本发明实施例可以利用用户的行程数据和用户填写的信息获取特征数据。例如,提取不同用户的家和公司的gps信息、每个行程16个gps点的hash值、行程开始点和结束点的POI信息、行程开始时间和结束时间归一化的特征以及行程间隔等,根据这些数据本发明实施例也可以提炼出用户近90天、30天、7天内的每个行程的间隔时间、在POI点的停留时间以及用户常走路线gps点hash值。获取到这些特征数据后,本发明实施例即可实现对机器学习模型的训练。As an example, in this embodiment of the present invention, characteristic data may be acquired by using the user's itinerary data and the information filled in by the user. For example, extract the gps information of different users' homes and companies, the hash value of 16 gps points for each trip, the POI information of the trip start point and end point, the normalized characteristics of the trip start time and end time, and the trip interval, etc. According to these data, the embodiment of the present invention can also extract the interval time of each trip of the user in the past 90 days, 30 days, and 7 days, the stay time at the POI point, and the hash value of the gps point of the user's frequent route. After acquiring these characteristic data, the embodiment of the present invention can implement the training of the machine learning model.

另外,在对初级网络进行训练之前,本发明实施例可以选取不同的网络算法进行联合训练,而后从中选择出效果较佳的算法,作为训练机器学习模型的算法。其中,算法可以包括LR、GBDT、XGboost等。其中,GBDT是一个由多个基分类器集成的模型,基分类器较多采用CART二叉树分类器,Gradient Boosting,是一种递进的组合方式,每一个新的分类器都在前一个分类器的预测结果上改进;LR是logistic回归分析,是一种广义的线性回归分析模型,常用于数据挖掘,经济预测等领域,逻辑回归从本质来说属于二分类问题,是基于Sigmoid函数(又叫“S型函数”)的有监督二类分类模型;Adaboost是一种迭代算法,其核心思想是针对同一个训练集训练不同的分类器(弱分类器),然后把这些弱分类器集合起来,构成一个更强的最终分类器(强分类器),将修改过权值的新数据集送给下层分类器进行训练,最后将每次得到的分类器最后融合起来,作为最后的决策分类器。In addition, before training the primary network, the embodiment of the present invention may select different network algorithms for joint training, and then select an algorithm with better effect from among them as the algorithm for training the machine learning model. Wherein, the algorithm may include LR, GBDT, XGboost and so on. Among them, GBDT is a model integrated by multiple base classifiers. The base classifiers mostly use the CART binary tree classifier, and Gradient Boosting is a progressive combination method. Each new classifier is in the previous classifier. LR is logistic regression analysis, which is a generalized linear regression analysis model, which is often used in data mining, economic forecasting and other fields. Logistic regression is essentially a binary classification problem and is based on the Sigmoid function (also known as "Sigmoid function") supervised two-class classification model; Adaboost is an iterative algorithm, its core idea is to train different classifiers (weak classifiers) for the same training set, and then aggregate these weak classifiers, A stronger final classifier (strong classifier) is formed, and the new data set with modified weights is sent to the lower classifier for training, and finally the classifiers obtained each time are finally fused as the final decision classifier.

作为一种方式,本发实施例首先可以用LR+GBDT的方法对训练数据集进行拟合,即先用GBDT拟合样本,然后从生成的多颗树中提取出分析较强的组合特征,再将这些特征与原始特征进行融合,最后用LR拟合这些数据集和特征,在此过程中,本发明实施例还可以通过Adaboost模型算出一个结果值,在LR的置 信度处于模糊边界的情况下可以参考Adaboost模型的值,如此可以使最终获取的机器学习模型,能够更准确的实现对待融合行程的判断。As a method, in the embodiment of the present invention, the training data set can be fitted by the method of LR+GBDT, that is, the GBDT is used to fit the samples, and then the combined features with strong analysis are extracted from the generated trees. Then fuse these features with the original features, and finally use LR to fit these data sets and features. During this process, the embodiment of the present invention can also calculate a result value through the Adaboost model, in the case where the confidence level of LR is at the fuzzy boundary You can refer to the value of the Adaboost model below, so that the final obtained machine learning model can more accurately judge the fusion itinerary.

需要说明的是,获取到机器学习模型上线后,本发明实施例还可以根据用户反馈及人工抽查情况不断对所述机器学习模型进行优化,以此保证模型的持续有效、稳定。例如,每隔3天自动完成数据的采用、清洗、特征提取等工作,然后会自动开始训练机器学习模型,机器学习模型训练通过后,会随机抽取训练数据集中的数据进行测试,只要准确率高过前一个模型的预设阈值区间,本发明实施例则会替代原有的模型,如果没有超过预设阈值则保持原有的机器学习模型不变,连续一个月机器学习模型的效果如果没有提升,则会有人工介入查看相关数据情况,调整相关模型参数,以此实现对目标行程的准确获取。It should be noted that, after the machine learning model is obtained and goes online, the embodiment of the present invention can also continuously optimize the machine learning model according to user feedback and manual spot checks, so as to ensure the continuous effectiveness and stability of the model. For example, data adoption, cleaning, feature extraction and other tasks are automatically completed every 3 days, and then the machine learning model will be automatically trained. After the machine learning model is trained, the data in the training data set will be randomly selected for testing, as long as the accuracy rate is high. If the preset threshold interval of the previous model is exceeded, the embodiment of the present invention will replace the original model. If the preset threshold is not exceeded, the original machine learning model will remain unchanged. If the effect of the machine learning model does not improve for one month in a row , there will be manual intervention to check the relevant data and adjust the relevant model parameters, so as to achieve the accurate acquisition of the target itinerary.

步骤S373:将所述待融合行程和所述前一行程进行融合,得到目标行程。Step S373: Integrate the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.

步骤S374:将所述待融合行程作为目标行程。Step S374: Use the to-be-fused itinerary as a target itinerary.

步骤S380:将所述待融合行程和所述前一行程进行融合,得到目标行程。Step S380: Integrate the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.

步骤S390:对所述目标行程进行存储。Step S390: Store the target itinerary.

通过上述介绍可以知道,在判断是否将待融合行程与前一行程进行融合时本发明实施例采用了两种规则,第一种规则可以称为专家规则,而第二中规则可以称为机器学习规则,在获取到待融合行程对应的相关信息时,本发明实施例可以先通过专家规则进行判断,当专家规则无法确定出待融合行程是否能与前一行程进行融合后,则可以利用机器学习规则进行判断。其中,专家规则可以确定第一时间和第二时间的时间间隔是否小于第一时间阈值,或者是否大于第二时间阈值,如果是,则对应获取目标行程,如果不是,则采用机器学习规则判断。It can be known from the above introduction that two kinds of rules are adopted in the embodiment of the present invention when judging whether to fuse the itinerary to be fused with the previous itinerary, the first rule can be called expert rule, and the second rule can be called machine learning When the relevant information corresponding to the itinerary to be merged is obtained, the embodiment of the present invention can first judge by expert rules. When the expert rules cannot determine whether the itinerary to be merged can be merged with the previous itinerary, machine learning can be used rule to judge. The expert rule can determine whether the time interval between the first time and the second time is less than the first time threshold, or whether it is greater than the second time threshold.

综上所述,当要获取到待融合行程时,本发明实施例首先可以提取该行程对应的预设数量个gps采样点、计算出起始点、终点的POI信息以及和上一个行程结束的间隔时长,其中,预设数量可以为16。然后利用专家规则判断,如果专家给出合并或者不合并的结论,则采用专家规则的结论,如果专家规则给出不确定的结论,则将计算好的行程特征和用户id传给机器学习模型,最终采用机器学习模型的结果来确定是否执行行程融合操作。To sum up, when the itinerary to be merged is to be acquired, the embodiment of the present invention can first extract a preset number of gps sampling points corresponding to the itinerary, calculate the POI information of the starting point and the ending point, and the interval from the end of the previous itinerary. duration, where the preset number can be 16. Then use the expert rule to judge, if the expert gives a conclusion of merger or non-merge, the conclusion of the expert rule is adopted; if the expert rule gives an uncertain conclusion, the calculated itinerary characteristics and user id are passed to the machine learning model. Finally, the results of the machine learning model are used to determine whether to perform the trip fusion operation.

作为一个具体的示例,第一时间和第二时间的时间间隔如果小于2分钟,则直接合并,比如车主突然有事停车接电话,又马上开车,那么这个行程与上一个行程会被当做同一个行程,2分钟的时间间隔很短,从感知上可以认为前后两个行程是可以合并的。如果大于20分钟则不合并,因为前后行程的间隔时间多长,从感知上可以认为前后两个行程是分开的。如果在2-20分钟之间则获取行程起始点的POI信息,并确定该POI信息是否为空,如果POI信息为空,并非住宅、商业、车站等则合并行程,即确定是否能获取到POI信息,比如车辆在路边停留了十分钟,这个起始点没有可以挖掘的信息,则可以认为前后是同一个行程。如果POI信息不为空,则根据车主的历史行为习惯,比如,车主每天上班路上都会送小孩去幼儿园,在幼儿园短暂停留,但是根据历史行为,则应该合并行程,前 后两个行程为车主上班的行程。如果POI信息不为空,则获取车主历史出行习惯,如果车主历史在该POI地点出现5次以上短暂停留的情况,则合并行程,否则调用机器学习模型进行判断。As a specific example, if the time interval between the first time and the second time is less than 2 minutes, they will be merged directly. For example, if the car owner suddenly stops to answer the phone and drives immediately, then this trip and the previous trip will be regarded as the same trip. , the time interval of 2 minutes is very short, and it can be considered that the two trips before and after can be combined from the perception. If it is greater than 20 minutes, it will not be merged, because of how long the interval between the front and rear trips is, it can be considered that the front and rear trips are separated from the perception. If it is between 2 and 20 minutes, obtain the POI information of the starting point of the itinerary, and determine whether the POI information is empty. If the POI information is empty, it is not a residential, commercial, station, etc., merge the itinerary, that is, determine whether the POI can be obtained. For example, if the vehicle stayed on the side of the road for ten minutes, and there is no information that can be mined at this starting point, it can be considered that the front and rear are the same trip. If the POI information is not empty, according to the owner's historical behavior, for example, the owner will send the child to the kindergarten on the way to work every day, and will stay in the kindergarten for a short time. journey. If the POI information is not empty, the owner's historical travel habits are obtained. If the owner's history has more than 5 short stops at the POI location, the itinerary will be merged, otherwise the machine learning model will be called for judgment.

本发明实施例提供的行程融合方法通过获取第一时间与第二时间之间的时间间隔,可以更加快速有效的确定是否将待融合行程与前一行程进行。具体的,本发明首先可以获取待融合行程,并基于待融合行程获取第一时间与第二时间的时间间隔,其中,第一时间是待融合行程对应的启动时间,而第二时间是待融合对应的前一行程的停止时间,而后本发明可以确定第一时间与第二时间之间的时间间隔是否小于第一时间阈值,若小于第一时间阈值,则确定待融合行程为临时行程,然后将待融合行程和前一行程进行融合,得到目标行程,最后本申请可以对该目标行程进行存储。本发明通过判断第一时间与第二时间之间的时间间隔是否小于第一时间阈值,来确定是否将待融合行程和前一行程进行融合,其在一定程度上可以提高行程获取的准确性,进而可以提高用户的使用体验。另外,本发明实施例通过结合第一时间阈值和第二时间阈值,可以使最终获取的目标行程更加准确,且更能符合用户的实际需求。另外,本发明实施例通过结合专家规则和机器学习规则可以对行程进行更加智能化的合并。By acquiring the time interval between the first time and the second time in the itinerary fusion method provided by the embodiment of the present invention, it can more quickly and effectively determine whether to perform the to-be-fused itinerary with the previous itinerary. Specifically, the present invention can first obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, wherein the first time is the start time corresponding to the itinerary to be merged, and the second time is the start time of the itinerary to be merged The stop time of the corresponding previous trip, and then the present invention can determine whether the time interval between the first time and the second time is less than the first time threshold, and if it is less than the first time threshold, it is determined that the trip to be merged is a temporary trip, and then A target itinerary is obtained by merging the itinerary to be fused with the previous itinerary, and finally the application can store the target itinerary. The present invention determines whether to fuse the to-be-fused itinerary with the previous itinerary by judging whether the time interval between the first time and the second time is less than the first time threshold, which can improve the accuracy of the itinerary acquisition to a certain extent, Thus, the user experience can be improved. In addition, in the embodiment of the present invention, by combining the first time threshold and the second time threshold, the final acquired target itinerary can be more accurate, and can better meet the actual needs of the user. In addition, the embodiments of the present invention can combine the itineraries more intelligently by combining expert rules and machine learning rules.

如图8所示,本发明实施例还提供一种行程融合装置400,该行程融合装置400包括:获取模块410、第一确定模块420、第二确定模块430、融合模块440和存储模块450。As shown in FIG. 8 , an embodiment of the present invention further provides a journey fusion apparatus 400 , the journey fusion apparatus 400 includes an acquisition module 410 , a first determination module 420 , a second determination module 430 , a fusion module 440 and a storage module 450 .

获取模块410,用于获取待融合行程,并基于所述待融合行程获取第一时间与第二时间的时间间隔,所述第一时间是所述待融合行程对应的启动时间,所述第二时间是所述待融合对应的前一行程的停止时间。The obtaining module 410 is configured to obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, the first time is the start time corresponding to the itinerary to be merged, the second time Time is the stop time of the previous trip corresponding to the to-be-fused.

第一确定模块420,用于确定所述时间间隔是否小于第一时间阈值。The first determination module 420 is configured to determine whether the time interval is less than a first time threshold.

第二确定模块430,用于若所述时间间隔小于所述第一时间阈值,则确定所述待融合行程为临时行程。The second determination module 430 is configured to determine that the to-be-fused itinerary is a temporary itinerary if the time interval is less than the first time threshold.

融合模块440,用于将所述待融合行程和所述前一行程进行融合,得到目标行程。The fusion module 440 is configured to fuse the to-be-fused itinerary with the previous itinerary to obtain a target itinerary.

可选地,融合模块440还可以用于若所述时间间隔小于所述第一时间阈值,则获取在所述第一时间时所述车辆所在位置的信息点,根据所述信息点,确定所述车辆所在位置是否为第一指定位置,所述第一指定位置对应的场景是用户的兴趣场景,若所述车辆所在位置是第一指定位置,则确定所述待融合行程为非临时行程,将所述待融合行程作为目标行程,若所述车辆所在位置不是第一指定位置,则确定所述待融合行程为临时行程,将所述待融合行程和所述前一行程进行融合,得到目标行程。Optionally, the fusion module 440 may be further configured to acquire the information point of the location of the vehicle at the first time if the time interval is less than the first time threshold, and determine the information point according to the information point. whether the location of the vehicle is the first designated location, the scene corresponding to the first designated location is the user's interest scene, and if the location of the vehicle is the first designated location, it is determined that the itinerary to be merged is a non-temporary itinerary, Taking the to-be-fused itinerary as the target itinerary, if the location of the vehicle is not the first designated location, then determine the to-be-fused itinerary as a temporary itinerary, and fuse the to-be-fused itinerary with the previous itinerary to obtain the target journey.

存储模块450,用于对所述目标行程进行存储。The storage module 450 is configured to store the target itinerary.

可选地,装置400还用于若所述时间间隔大于所述第一时间阈值,则确定所述时间间隔是否大于第二时间阈值,若所述时间间隔大于所述第二时间阈值,则 确定所述待融合行程为非临时行程,将所述待融合行程作为目标行程。Optionally, the apparatus 400 is further configured to determine whether the time interval is greater than the second time threshold if the time interval is greater than the first time threshold, and determine whether the time interval is greater than the second time threshold if the time interval is greater than the second time threshold. The to-be-fused itinerary is a non-temporary itinerary, and the to-be-fused itinerary is used as a target itinerary.

可选地,装置400还用于若所述时间间隔大于所述第二时间阈值,则获取在所述第一时间时所述车辆所在位置的信息点;根据所述信息点确定所述车辆所在位置是否为第二指定位置,所述第二指定位置对应的场景是临时停车场景;若所述车辆所在位置为第二指定位置,则将所述待融合行程和所述前一行程进行融合,得到目标行程;若所述车辆所在位置不是第二指定位置,则确定所述待融合行程为非临时行程,将所述待融合行程作为目标行程。Optionally, the apparatus 400 is further configured to acquire an information point of the location of the vehicle at the first time if the time interval is greater than the second time threshold; and determine the location of the vehicle according to the information point. Whether the location is the second designated location, the scene corresponding to the second designated location is a temporary parking scene; if the location of the vehicle is the second designated location, the to-be-fused itinerary and the previous itinerary are fused, A target itinerary is obtained; if the location of the vehicle is not the second designated location, it is determined that the itinerary to be merged is a non-temporary itinerary, and the itinerary to be merged is used as a target itinerary.

可选地,装置400还用于若所述时间间隔小于或者等于所述第二时间阈值,则确定是否获取到所述车辆在所述第一时间时所在位置的信息点;如果未获取到,则将所述待融合行程和所述前一行程进行融合,得到目标行程。Optionally, the device 400 is further configured to, if the time interval is less than or equal to the second time threshold, determine whether to obtain the information point of the location of the vehicle at the first time; if not, Then, the to-be-fused itinerary and the previous itinerary are fused to obtain a target itinerary.

可选地,装置400还用于若获取到,则查找所述车辆出现在所述第一时间对应的位置的次数,并确定该次数是否大于预设次数;若大于预设次数,则将所述待融合行程和所述前一行程进行融合,得到目标行程。Optionally, the device 400 is further configured to find the number of times that the vehicle appears at the position corresponding to the first time if obtained, and determine whether the number of times is greater than a preset number of times; The described itinerary to be fused and the previous itinerary are fused to obtain the target itinerary.

可选地,装置400还用于若该次数小于或者等于预设次数,则获取在所述第一时间时所述车辆所在位置的信息点;利用机器学习模型确定所述信息点是否为可融合信息点;若为可融合信息点,则将所述待融合行程和所述前一行程进行融合,得到目标行程。Optionally, the device 400 is further configured to obtain the information point of the location of the vehicle at the first time if the number of times is less than or equal to a preset number of times; and use a machine learning model to determine whether the information point can be fused. information point; if it is an information point that can be fused, the itinerary to be fused and the previous itinerary are fused to obtain the target itinerary.

可选地,装置400还用于若所述信息点不是可融合信息点,则将所述待融合行程作为目标行程。Optionally, the apparatus 400 is further configured to use the itinerary to be fused as a target itinerary if the information point is not a fused information point.

本发明实施例提供的行程融合装置通过获取第一时间与第二时间之间的时间间隔,可以更加快速有效的确定是否将待融合行程与前一行程进行。具体的,本发明首先可以获取待融合行程,并基于待融合行程获取第一时间与第二时间的时间间隔,其中,第一时间是待融合行程对应的启动时间,而第二时间是待融合对应的前一行程的停止时间,而后本发明可以确定第一时间与第二时间之间的时间间隔是否小于第一时间阈值,若小于第一时间阈值,则确定待融合行程为临时行程,然后将待融合行程和前一行程进行融合,得到目标行程,最后本申请可以对该目标行程进行存储。本发明通过判断第一时间与第二时间之间的时间间隔是否小于第一时间阈值,来确定是否将待融合行程和前一行程进行融合,其在一定程度上可以提高行程获取的准确性,进而可以提高用户的使用体验。By acquiring the time interval between the first time and the second time, the stroke fusion device provided in the embodiment of the present invention can more quickly and effectively determine whether to perform the fusion stroke with the previous stroke. Specifically, the present invention can first obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, wherein the first time is the start time corresponding to the itinerary to be merged, and the second time is the start time of the itinerary to be merged The stop time of the corresponding previous trip, and then the present invention can determine whether the time interval between the first time and the second time is less than the first time threshold, and if it is less than the first time threshold, it is determined that the trip to be merged is a temporary trip, and then A target itinerary is obtained by merging the itinerary to be fused with the previous itinerary, and finally the application can store the target itinerary. The present invention determines whether to fuse the to-be-fused itinerary with the previous itinerary by judging whether the time interval between the first time and the second time is less than the first time threshold, which can improve the accuracy of the itinerary acquisition to a certain extent, Thus, the user experience can be improved.

如图9所示,本发明实施例还提供一种电子控制器500,该电子控制器500包括处理器510以及存储器520,存储器520存储有计算机程序指令,计算机程序指令被处理器510调用时实执行上述的行程融合方法As shown in FIG. 9 , an embodiment of the present invention further provides an electronic controller 500 . The electronic controller 500 includes a processor 510 and a memory 520 . The memory 520 stores computer program instructions, and the computer program instructions are called by the processor 510 in real time. Execute the itinerary fusion method described above

处理器510可以包括一个或者多个处理核。处理器510利用各种接口和线路连接整个电子控制器内的各个部分,通过运行或执行存储在存储器520内的指令、程序、代码集或指令集,以及调用存储在存储器520内的数据,执行电子控制器的各种功能和处理数据。可选地,处理器510可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、 可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器510可集成中央处理器510(Central Processing Unit,CPU)、图像处理器510(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器510中,单独通过一块通信芯片进行实现。Processor 510 may include one or more processing cores. The processor 510 uses various interfaces and lines to connect various parts in the entire electronic controller, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 520, and calling the data stored in the memory 520. Various functions of the electronic controller and processing data. Optionally, the processor 510 may adopt at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA). A hardware form is implemented. The processor 510 may integrate one or a combination of a central processing unit 510 (Central Processing Unit, CPU), a graphics processor 510 (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing of the display content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 510, and is implemented by a communication chip alone.

存储器520可以包括随机存储器520(Random Access Memory,RAM),也可以包括只读存储器520(Read-Only Memory)。存储器520图可用于存储指令、程序、代码、代码集或指令集。存储器520图可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令、用于实现上述各个方法实施例的指令等。存储数据区还可以存储电子控制器在使用中所创建的数据等。The memory 520 may include a random access memory 520 (Random Access Memory, RAM), or may include a read-only memory 520 (Read-Only Memory). The memory 520 map may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 520 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the above method embodiments, and the like. The storage data area can also store data etc. created by the electronic controller in use.

如图10所示,本发明实施例还提供一种计算机可读存储介质600,该计算机可读取存储介质600中存储有计算机程序指令610,计算机程序指令610可被处理器调用以执行上述实施例中所描述的方法。As shown in FIG. 10, an embodiment of the present invention further provides a computer-readable storage medium 600, where computer program instructions 610 are stored in the computer-readable storage medium 600, and the computer program instructions 610 can be invoked by a processor to execute the above implementation method described in the example.

计算机可读取存储介质可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读取存储介质包括非易失性计算机可读取存储介质(non-transitory computer-readable storage medium)。计算机可读取存储介质600具有执行上述方法中的任何方法步骤的程序代码的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码可以例如以适当形式进行压缩。The computer-readable storage medium may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium includes a non-volatile computer-readable storage medium (non-transitory computer-readable storage medium). Computer readable storage medium 600 has storage space for program code to perform any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. The program code may, for example, be compressed in a suitable form.

以上,仅是本发明的较佳实施例而已,并非对本发明作任何形式上的限制,虽然本发明已以较佳实施例揭示如上,然而并非用以限定本发明,任何本领域技术人员,在不脱离本发明技术方案范围内,当可利用上述揭示的技术内容做出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本发明技术方案内容,依据本发明的技术实质对以上实施例所作的任何简介修改、等同变化与修饰,均仍属于本发明技术方案的范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the present invention in any form. Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Without departing from the scope of the technical solution of the present invention, when the technical content disclosed above can be used to make some changes or modifications to equivalent embodiments with equivalent changes, provided that the content of the technical solution of the present invention is not deviated from, the technical essence of the present invention is correct. Any brief modifications, equivalent changes and modifications made in the above embodiments still fall within the scope of the technical solutions of the present invention.

Claims (10)

一种行程融合方法,其特征在于,应用于车辆,所述方法包括:A trip fusion method, characterized in that, applied to a vehicle, the method comprising: 获取待融合行程,并基于所述待融合行程获取第一时间与第二时间的时间间隔,所述第一时间是所述待融合行程对应的启动时间,所述第二时间是所述待融合对应的前一行程的停止时间;Obtain the itinerary to be merged, and obtain the time interval between the first time and the second time based on the itinerary to be merged, the first time is the start time corresponding to the itinerary to be merged, and the second time is the time to be merged The stop time of the corresponding previous trip; 确定所述时间间隔是否小于第一时间阈值;determining whether the time interval is less than a first time threshold; 若所述时间间隔小于所述第一时间阈值,则确定所述待融合行程为临时行程;If the time interval is less than the first time threshold, determining that the to-be-fused itinerary is a temporary itinerary; 将所述待融合行程和所述前一行程进行融合,得到目标行程;Integrating the to-be-fused itinerary and the previous itinerary to obtain a target itinerary; 对所述目标行程进行存储。The target itinerary is stored. 根据权利要求1所述的方法,其特征在于,所述若所述时间间隔小于所述第一时间阈值,则确定所述待融合行程为临时行程,将所述待融合行程和所述前一行程进行融合,得到目标行程,包括:The method according to claim 1, wherein, if the time interval is less than the first time threshold, determining the to-be-fused itinerary is a temporary itinerary, and combining the to-be-fused itinerary with the previous The itinerary is fused to get the target itinerary, including: 若所述时间间隔小于所述第一时间阈值,则获取在所述第一时间时所述车辆所在位置的信息点;If the time interval is less than the first time threshold, acquiring the information point of the location of the vehicle at the first time; 根据所述信息点,确定所述车辆所在位置是否为第一指定位置,所述第一指定位置对应的场景是用户的兴趣场景;According to the information point, determine whether the location of the vehicle is a first designated location, and the scene corresponding to the first designated location is the user's interest scene; 若所述车辆所在位置是第一指定位置,则确定所述待融合行程为非临时行程,将所述待融合行程作为目标行程;If the location of the vehicle is the first designated location, determining that the itinerary to be merged is a non-temporary itinerary, and taking the itinerary to be merged as a target itinerary; 若所述车辆所在位置不是第一指定位置,则确定所述待融合行程为临时行程,将所述待融合行程和所述前一行程进行融合,得到目标行程。If the location of the vehicle is not the first designated location, it is determined that the itinerary to be merged is a temporary itinerary, and the itinerary to be merged and the previous itinerary are merged to obtain a target itinerary. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises: 若所述时间间隔大于所述第一时间阈值,则确定所述时间间隔是否大于第二时间阈值;If the time interval is greater than the first time threshold, determining whether the time interval is greater than a second time threshold; 若所述时间间隔大于所述第二时间阈值,则确定所述待融合行程为非临时行程,将所述待融合行程作为目标行程。If the time interval is greater than the second time threshold, it is determined that the itinerary to be fused is a non-temporary itinerary, and the itinerary to be fused is used as a target itinerary. 根据权利要求3所述的方法,其特征在于,所述若所述时间间隔大于所述第二时间阈值,则确定所述待融合行程为非临时行程,将所述待融合行程作为目标行程,包括:The method according to claim 3, wherein if the time interval is greater than the second time threshold, determining the to-be-fused itinerary is a non-temporary itinerary, and using the to-be-fused itinerary as a target itinerary, include: 若所述时间间隔大于所述第二时间阈值,则获取在所述第一时间时所述车辆所在位置的信息点;If the time interval is greater than the second time threshold, acquiring the information point of the location of the vehicle at the first time; 根据所述信息点确定所述车辆所在位置是否为第二指定位置,所述第二指定位置对应的场景是临时停车场景;Determine whether the location of the vehicle is a second designated location according to the information point, and the scene corresponding to the second designated location is a temporary parking scene; 若所述车辆所在位置为第二指定位置,则将所述待融合行程和所述前一行程进行融合,得到目标行程;If the location of the vehicle is the second designated location, the to-be-fused itinerary and the previous itinerary are fused to obtain a target itinerary; 若所述车辆所在位置不是第二指定位置,则确定所述待融合行程为非临时行程,将所述待融合行程作为目标行程。If the location of the vehicle is not the second designated location, it is determined that the itinerary to be fused is a non-temporary itinerary, and the itinerary to be fused is used as a target itinerary. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, wherein the method further comprises: 若所述时间间隔小于或者等于所述第二时间阈值,则确定是否获取到所述车辆在所述第一时间时所在位置的信息点;If the time interval is less than or equal to the second time threshold, determining whether to obtain the information point of the location of the vehicle at the first time; 如果未获取到,则将所述待融合行程和所述前一行程进行融合,得到目标行程。If not obtained, the to-be-fused itinerary and the previous itinerary are fused to obtain the target itinerary. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method according to claim 5, wherein the method further comprises: 若获取到,则查找所述车辆出现在所述第一时间对应的位置的次数,并确定该次数是否大于预设次数;If obtained, search for the number of times the vehicle appears at the position corresponding to the first time, and determine whether the number of times is greater than a preset number of times; 若大于预设次数,则将所述待融合行程和所述前一行程进行融合,得到目标行程。If it is greater than the preset number of times, the to-be-fused stroke and the previous stroke are merged to obtain a target stroke. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, wherein the method further comprises: 若该次数小于或者等于预设次数,则获取在所述第一时间时所述车辆所在位置的信息点;If the number of times is less than or equal to the preset number of times, acquiring the information point of the location of the vehicle at the first time; 利用机器学习模型确定所述信息点是否为可融合信息点;Use a machine learning model to determine whether the information point is a fusible information point; 若为可融合信息点,则将所述待融合行程和所述前一行程进行融合,得到目标行程。If it is an information point that can be fused, the to-be-fused itinerary and the previous itinerary are fused to obtain a target itinerary. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, wherein the method further comprises: 若所述信息点不是可融合信息点,则将所述待融合行程作为目标行程。If the information point is not a fused information point, the to-be-fused itinerary is used as a target itinerary. 一种行程融合装置,其特征在于,应用于车辆,所述装置包括:A trip fusion device, characterized in that, applied to a vehicle, the device comprising: 获取模块,用于获取待融合行程,并基于所述待融合行程获取第一时间与第二时间的时间间隔,所述第一时间是所述待融合行程对应的启动时间,所述第二时间是所述待融合对应的前一行程的停止时间;an acquisition module, configured to acquire the itinerary to be fused, and obtain the time interval between a first time and a second time based on the itinerary to be fused, where the first time is the start time corresponding to the itinerary to be fused, and the second time is the stop time of the previous trip corresponding to the to-be-fused; 第一确定模块,用于确定所述时间间隔是否小于第一时间阈值;a first determination module, configured to determine whether the time interval is less than a first time threshold; 第二确定模块,用于若所述时间间隔小于所述第一时间阈值,则确定所述待融合行程为临时行程;a second determining module, configured to determine that the to-be-fused itinerary is a temporary itinerary if the time interval is less than the first time threshold; 融合模块,用于将所述待融合行程和所述前一行程进行融合,得到目标行程;a fusion module, configured to fuse the to-be-fused itinerary and the previous itinerary to obtain a target itinerary; 存储模块,用于对所述目标行程进行存储。The storage module is used for storing the target itinerary. 一种电子控制器,其特征在于,包括处理器以及存储器,所述存储器存储有计算机程序指令,所述计算机程序指令被所述处理器调用时执行权利要求1~8任一项所述的行程融合方法。An electronic controller, characterized in that it includes a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are invoked by the processor, the process described in any one of claims 1 to 8 is executed fusion method.
PCT/CN2021/102834 2020-12-01 2021-06-28 Trip fusion method and apparatus, and vehicle Ceased WO2022116522A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011398906.5 2020-12-01
CN202011398906.5A CN112634488B (en) 2020-12-01 2020-12-01 Journey fusion method and device and vehicle

Publications (1)

Publication Number Publication Date
WO2022116522A1 true WO2022116522A1 (en) 2022-06-09

Family

ID=75307675

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/102834 Ceased WO2022116522A1 (en) 2020-12-01 2021-06-28 Trip fusion method and apparatus, and vehicle

Country Status (2)

Country Link
CN (1) CN112634488B (en)
WO (1) WO2022116522A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115230692A (en) * 2022-08-11 2022-10-25 小米汽车科技有限公司 Vehicle control method and device, vehicle and readable storage medium
CN116432871A (en) * 2023-06-13 2023-07-14 北京化工大学 An Optimal Method for Bus Scheduling Based on AdaBoost Algorithm

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112634488B (en) * 2020-12-01 2022-10-14 广州橙行智动汽车科技有限公司 Journey fusion method and device and vehicle

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9349290B2 (en) * 2014-07-21 2016-05-24 General Motors Llc Self-reported tracking methods including a trip plan with an expected duration or expected return
CN106033643A (en) * 2015-03-10 2016-10-19 中国移动通信集团辽宁有限公司 A data processing method and device
US9846977B1 (en) * 2014-09-02 2017-12-19 Metromile, Inc. Systems and methods for determining vehicle trip information
CN108197660A (en) * 2018-01-17 2018-06-22 中国科学院上海高等研究院 Multi-model Feature fusion/system, computer readable storage medium and equipment
CN109840612A (en) * 2018-07-24 2019-06-04 上海赢科信息技术有限公司 User's driving behavior analysis method and system
US10384686B2 (en) * 2015-12-15 2019-08-20 Greater Than Ab. Method and system for assessing the trip performance of a driver
CN112634488A (en) * 2020-12-01 2021-04-09 广州橙行智动汽车科技有限公司 Journey fusion method and device and vehicle

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4130090C1 (en) * 1991-05-14 1992-09-17 Mannesmann Kienzle Gmbh, 7730 Villingen-Schwenningen, De Vehicle motion sensing system - samples outputs of sensors and combines them logically with further signal
US5819201A (en) * 1996-09-13 1998-10-06 Magellan Dis, Inc. Navigation system with vehicle service information
JP3653954B2 (en) * 1997-10-23 2005-06-02 トヨタ自動車株式会社 Mobile device for mobile traffic control system, control station for mobile traffic control system, mobile traffic control system
US6225890B1 (en) * 1998-03-20 2001-05-01 Trimble Navigation Limited Vehicle use control
JP5689993B1 (en) * 2014-02-28 2015-03-25 株式会社ブリヂストン Vehicle running state monitoring device
ITUA20164800A1 (en) * 2016-06-30 2017-12-30 Octo Telematics Spa Procedure for estimating the duration of a vehicle journey based on the determination of the vehicle status.
CN110634199B (en) * 2019-08-30 2021-06-29 上海能塔智能科技有限公司 Terminal device, vehicle trip recording method, and computer-readable storage medium
CN110798807B (en) * 2019-11-06 2020-12-22 北京海益同展信息科技有限公司 Method, apparatus, computer device and medium for recording vehicle trajectory
CN111145573A (en) * 2019-12-27 2020-05-12 江苏星诺信息技术有限公司 Method for analyzing vehicle stationary points based on distance, duration and frequency aggregation of parking points
CN111708068B (en) * 2020-05-26 2024-01-26 泰斗微电子科技有限公司 Track determination method and device for target object, terminal equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9349290B2 (en) * 2014-07-21 2016-05-24 General Motors Llc Self-reported tracking methods including a trip plan with an expected duration or expected return
US9846977B1 (en) * 2014-09-02 2017-12-19 Metromile, Inc. Systems and methods for determining vehicle trip information
CN106033643A (en) * 2015-03-10 2016-10-19 中国移动通信集团辽宁有限公司 A data processing method and device
US10384686B2 (en) * 2015-12-15 2019-08-20 Greater Than Ab. Method and system for assessing the trip performance of a driver
CN108197660A (en) * 2018-01-17 2018-06-22 中国科学院上海高等研究院 Multi-model Feature fusion/system, computer readable storage medium and equipment
CN109840612A (en) * 2018-07-24 2019-06-04 上海赢科信息技术有限公司 User's driving behavior analysis method and system
CN112634488A (en) * 2020-12-01 2021-04-09 广州橙行智动汽车科技有限公司 Journey fusion method and device and vehicle

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHEN LIDAN: "Research on the Impact of Electric Vehicles Broadly Access to the Power System and Their Control Strategy", DOCTORAL DISSERTATIONS FULL-TEXT DATABASE, 8 September 2018 (2018-09-08), pages 1 - 161, XP055829884 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115230692A (en) * 2022-08-11 2022-10-25 小米汽车科技有限公司 Vehicle control method and device, vehicle and readable storage medium
CN115230692B (en) * 2022-08-11 2024-03-26 小米汽车科技有限公司 Vehicle control method and device, vehicle and readable storage medium
CN116432871A (en) * 2023-06-13 2023-07-14 北京化工大学 An Optimal Method for Bus Scheduling Based on AdaBoost Algorithm

Also Published As

Publication number Publication date
CN112634488A (en) 2021-04-09
CN112634488B (en) 2022-10-14

Similar Documents

Publication Publication Date Title
US11423774B2 (en) Road condition generation method, apparatus and device, and storage medium
WO2022116522A1 (en) Trip fusion method and apparatus, and vehicle
CN109902899B (en) Information generation method and device
CN112380448B (en) Vehicle data processing method and device, computer equipment and storage medium
US9020760B2 (en) System for classifying streets for vehicle navigation
CN108444486B (en) Navigation route sorting method and device
US12320662B2 (en) System and method of creating custom dynamic neighborhoods for individual drivers
CN111982145A (en) Driving route recommendation method, device, device and storage medium
JP2010060433A (en) Guiding object region determining device, navigation device, guiding object region determining method, and program
CN112598192A (en) Method and device for predicting vehicle entering logistics park, storage medium and terminal
CN118586812A (en) A cargo transportation scheduling method and system based on artificial intelligence
JP2024530216A (en) SYSTEM AND METHOD FOR MONITORING A VEHICLE - Patent application
CN104515530A (en) Method for optimizing navigation line of long-distance freight vehicle
CN112818071A (en) Traffic management field knowledge graph construction method and device based on unified road network
CN118410117B (en) Get-off point recommendation method and device, electronic equipment and computer readable storage medium
CN115729972A (en) Vehicle scene service pushing method and device, storage medium and vehicle
CN112781607B (en) Navigation device and method for providing personalized map service thereof
Tian et al. Identifying residential and workplace locations from transit smart card data
JP4223309B2 (en) Route guidance device, route guidance method, and computer program
CN118411818A (en) Pick-up point recommendation method and interaction method
CN113393011A (en) Method, apparatus, computer device and medium for predicting speed limit information
CN117194391A (en) Data processing method, device, equipment and computer readable storage medium
CN118583180A (en) Method and apparatus for interaction
KR102592628B1 (en) Apparatus and method for determining branching point
CN114219180A (en) Boarding point recommendation method and device, computer equipment and readable storage medium

Legal Events

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

Ref document number: 21899564

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21899564

Country of ref document: EP

Kind code of ref document: A1