Driving condition identification method, device and equipment and storage medium
The working condition identification model trained through the adaptive particle swarm algorithm and K-means algorithm, combined with vehicle data and slope information, solves the problems of high identification cost and insufficient working condition scene range in the existing technology, and realizes the identification of vehicle driving conditions. Efficient identification, including mountainous working conditions.
Patent Information
- Application Number
- CN202411066518.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-09-24
AI Technical Summary
Existing vehicle driving condition identification solutions have shortcomings in terms of identification cost and range of working condition scenarios. In particular, the recognition of working conditions in mountainous areas is not divided into categories, and the deployment of deep neural networks takes up a lot of resources and increases the identification cost.
The adaptive particle swarm algorithm is used to cluster key historical vehicle driving data to obtain the initial cluster center, and the K-means algorithm is used to train the working condition identification model. It combines the current vehicle data and slope information to output driving condition information, including high-speed , suburbs or urban areas.
It achieves low-cost, resource-intensive driving condition identification, expands the range of identified working condition scenarios, including identification of mountainous working conditions, and reduces identification costs.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent driving, and in particular to a driving condition identification method, device, equipment and storage medium. Background Art
[0002] In the vehicle field, accurately identifying the vehicle's driving conditions is an important issue, because different driving conditions require different driving strategies and vehicle control methods.
[0003] However, existing vehicle driving condition recognition solutions are usually based on newly added image sensors, or use deep neural networks for modeling to achieve condition recognition. Deep neural networks deployed on the vehicle side occupy a large amount of resources and have high requirements on the performance of the vehicle-side processor, thereby increasing the recognition cost. In addition, existing recognition solutions do not involve the division of mountainous conditions when identifying specific working condition scenarios.
[0004] Therefore, when realizing the recognition of vehicle driving conditions, the existing technology is still lacking in terms of recognition cost and the range of recognized operating condition scenarios. Summary of the invention
[0005] The present application provides a driving condition identification method, device, equipment and storage medium to solve the problem that the prior art is still lacking in identification cost and the range of identified condition scenarios when realizing vehicle driving condition identification.
[0006] In a first aspect, the present application provides a driving condition identification method, comprising:
[0007] Acquire a key indicator data set, the key indicator data set including multiple sets of key indicator data, the key indicator data being used to indicate key vehicle driving data within a historical time period;
[0008] Clustering the key indicator data set by using an adaptive particle swarm algorithm to obtain a plurality of initial cluster centers, and training the key indicator data set by using a K-means algorithm based on the plurality of initial cluster centers to obtain a working condition recognition model including a target cluster center;
[0009] Acquire vehicle driving data within a current time period, the vehicle driving data including current key indicator data and current slope, wherein the current key indicator data include current average vehicle speed, current braking frequency and current maximum vehicle speed; if the current slope is not within a preset slope range, input the current key indicator data into the operating condition identification model, and output driving condition information through the operating condition identification model, wherein the driving condition information includes highway, suburbs or urban areas.
[0010] In a possible design, the acquiring of the key indicator data set includes: acquiring a historical data set, the historical data set including a plurality of sets of historical indicator data, the historical indicator data being used to indicate detailed vehicle driving data within a historical time period, the detailed vehicle driving data including average vehicle speed, braking frequency, braking time, maximum vehicle speed, idle ratio, average acceleration, and average deceleration;
[0011] After normalizing each of the historical indicator data, the average vehicle speed, braking frequency and maximum vehicle speed are extracted from each of the historical indicator data as the corresponding key indicator data, and a plurality of the key indicator data are used as the key indicator data set.
[0012] In a possible design, the obtaining of multiple initial cluster centers includes:
[0013] In the key indicator data set, a plurality of the key indicator data are randomly obtained as corresponding initial center vectors;
[0014] Taking the minimum distance between each key indicator data and each initial center vector as the optimization goal, after updating each initial center vector through the adaptive particle swarm algorithm, each center vector that meets the optimization goal is used as the corresponding initial cluster center;
[0015] According to each of the initial cluster centers and the key indicator data set, the target cluster center is obtained by using a K-means algorithm.
[0016] In a possible design, obtaining the target cluster center by using the K-means algorithm includes:
[0017] Obtaining the distance between each of the key indicator data and each of the initial cluster centers, and allocating each of the key indicator data to each of the clusters corresponding to the shortest distance, each of the clusters including a plurality of the key indicator data that are close to each other, and each of the clusters corresponding to each of the initial cluster centers;
[0018] According to the average value of the multiple key indicator data in each cluster, the average coordinate position of each cluster is obtained and used as a new cluster center, and each target cluster center is obtained according to each new cluster center, wherein each target cluster center corresponds to a different driving condition, and the driving conditions include highway, suburbs and urban areas.
[0019] In a possible design, obtaining each of the target cluster centers according to each of the new cluster centers includes:
[0020] Obtaining a difference between each of the new cluster centers and the corresponding initial cluster center as a change difference of each of the new cluster centers, and detecting whether each of the change differences is less than or equal to a change threshold;
[0021] If so, taking each of the new cluster centers as the target cluster center of the operating condition identification model;
[0022] If not, the new cluster center that is greater than the change threshold will be marked as the cluster center to be updated, and based on the key indicator data and the cluster center to be updated, the new cluster cluster corresponding to the cluster center to be updated is re-obtained, and the cluster center to be updated is updated according to the average coordinate position of the new cluster cluster, and this cycle is repeated until the cluster center to be updated is less than or equal to the change threshold.
[0023] In a possible design, if the current slope is within a preset slope range, the driving condition information indicates the mountainous condition.
[0024] In a second aspect, the present application provides a driving condition identification device, comprising:
[0025] An acquisition module, used to acquire a key indicator data set, wherein the key indicator data set includes multiple sets of key indicator data, and the key indicator data is used to indicate key vehicle driving data within a historical time period;
[0026] A processing module, used for clustering the key indicator data set by using an adaptive particle swarm algorithm to obtain a plurality of initial cluster centers, and training the key indicator data set by using a K-means algorithm based on the plurality of initial cluster centers to obtain a working condition recognition model including a target cluster center;
[0027] An execution module is used to obtain vehicle driving data within a current time period, wherein the vehicle driving data includes current key indicator data and a current slope, wherein the current key indicator data includes a current average vehicle speed, a current braking frequency, and a current maximum vehicle speed. If the current slope is not within a preset slope range, the current key indicator data is input into the operating condition identification model, and driving condition information is output through the operating condition identification model, wherein the driving condition information includes highway, suburbs, or urban areas.
[0028] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0029] The memory stores computer-executable instructions;
[0030] The processor executes the computer-executable instructions stored in the memory to implement a driving condition identification method.
[0031] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions, and the computer execution instructions are used to implement a driving condition identification method when executed by a processor.
[0032] The driving condition identification method, device, equipment and storage medium provided in the present application use an adaptive particle swarm algorithm to optimize a key indicator data set indicating key driving data of a vehicle within a historical time period to obtain multiple initial clustering centers, and based on the multiple initial clustering centers, train the key indicator data set through a K-means algorithm to obtain a condition identification model including a target clustering center, obtain the current average vehicle speed, current braking frequency, current maximum vehicle speed and current slope within the current time period, and when the current slope is not in a preset slope range, input the current key indicator data into the condition identification model, and output the driving condition information through the target clustering center in the condition identification model. Compared with existing identification schemes, this scheme is based on data obtained by existing sensors, is simpler, more efficient, and easier to implement, occupies less resources during deployment, and has a low identification cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 Schematic diagram of the process of the driving condition identification method provided in the embodiment of the present application Figure 1 ;
[0035] Figure 2 Schematic diagram of the process of the driving condition identification method provided in the embodiment of the present application Figure 2 ;
[0036] Figure 3 A schematic diagram of the structure of a driving condition identification device provided in an embodiment of the present application;
[0037] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0038] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0039] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0040] In the vehicle field, the recognition of vehicle driving conditions can be divided based on driver behavior and driving scenarios. Vehicle action conditions based on driver behavior include acceleration, deceleration, cruising, turning, lane changing, U-turn and coupling conditions. Vehicle action condition recognition based on driving scenarios is usually based on newly added image sensors or deep neural network modeling to achieve condition recognition. These two vehicle action condition recognition solutions based on driving scenarios undoubtedly increase the recognition cost for low-cost existing vehicles.
[0041] Therefore, the present application provides a driving condition identification method, which optimizes a key indicator data set indicating key driving data of a vehicle in a historical time period through an adaptive particle swarm algorithm to obtain multiple initial clustering centers, and based on the multiple initial clustering centers, trains the key indicator data set through a K-means algorithm to obtain a condition identification model including a target clustering center, obtains the current average vehicle speed, current braking frequency, current maximum vehicle speed and current slope in the current time period, and when the current slope is not in a preset slope range, inputs the current key indicator data into the condition identification model, and outputs the driving condition information through the target clustering center in the condition identification model. Compared with existing identification schemes, this scheme is based on data obtained by existing sensors, is simpler, more efficient, and easier to implement, occupies less resources during deployment, and has a low identification cost.
[0042] The following specific embodiments are used to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0043] Embodiment 1
[0044] Figure 1 Schematic diagram of the process of the driving condition identification method provided in the embodiment of the present application Figure 1 .like Figure 1 As shown, the method includes:
[0045] S101, obtaining a key indicator data set, where the key indicator data set includes multiple sets of key indicator data, where the key indicator data is used to indicate key vehicle driving data within a historical time period;
[0046] Specifically, based on existing vehicle sensors, vehicle speed and braking signals are collected, and a historical data set is established, wherein the historical data set includes multiple groups of historical indicator data, each historical indicator data corresponds to the vehicle speed and braking signal in a different vehicle driving time segment, and the vehicle driving time, such as 100s, is used as a time segment to calculate the average speed, braking frequency, braking time, maximum speed, idle ratio, average acceleration and average deceleration of 100s as the corresponding historical indicator data, and the corresponding historical indicator data are extracted based on the historical data set as each key indicator data to obtain a key indicator data set including multiple groups of key indicator data.
[0047] S102, clustering the key indicator data set by using an adaptive particle swarm algorithm to obtain a plurality of initial cluster centers, and training the key indicator data set by using a K-means algorithm based on the plurality of initial cluster centers to obtain a working condition recognition model including a target cluster center;
[0048] Specifically, after obtaining the key indicator data set, an adaptive particle swarm optimization algorithm is used to establish a particle swarm optimization target, where the particle swarm optimization target is to minimize the distance from each group of normalized key indicator data to each cluster center. After obtaining the initial cluster centers of K-means by achieving the particle swarm optimization target, the key indicator data set is trained using the K-means clustering method based on the initial cluster centers. The Chebyshev distance is used to assign corresponding cluster clusters to each group of key indicator data, and the initial cluster centers are updated according to each cluster cluster to obtain the corresponding target cluster centers, where each target cluster center corresponds to different working conditions such as highways, suburbs, and urban areas.
[0049] S103. Acquire vehicle driving data in the current time period, wherein the vehicle driving data includes current key indicator data and current slope, wherein the current key indicator data includes current average vehicle speed, current braking frequency and current maximum vehicle speed. If the current slope is not in a preset slope range, input the current key indicator data into the operating condition identification model, and output driving condition information through the operating condition identification model, wherein the driving condition information includes highway, suburbs or urban areas.
[0050] Specifically, after obtaining the operating condition recognition model including the target cluster center, the operating condition recognition model is deployed on the vehicle controller. During vehicle driving, the current driving data of a preset time segment is collected through existing sensors, such as collecting data every 100 seconds, and the current driving condition is identified based on the current slope in the current driving data. If not, the current driving data is sent to the operating condition recognition model in the vehicle controller, and the current driving condition such as highway, suburbs or urban areas is identified through the target cluster center in the operating condition recognition model, thereby realizing online recognition of driving conditions.
[0051] The method provided in this embodiment uses an adaptive particle swarm algorithm to optimize a key indicator data set indicating key driving data of vehicles in a historical time period to obtain multiple initial clustering centers, and based on the multiple initial clustering centers, the key indicator data set is trained through a K-means algorithm to obtain a working condition recognition model including a target clustering center, and then the current average vehicle speed, current braking frequency, current maximum vehicle speed and current slope in the current time period are obtained, and when the current slope is not in a preset slope range, the current key indicator data is input into the working condition recognition model, and the driving condition information is output through the target clustering center in the working condition recognition model. Therefore, compared with the existing recognition scheme, this scheme is based on data obtained by existing sensors, is simpler, more efficient, and easier to implement, occupies less resources during deployment, and has a low recognition cost.
[0052] The driving condition identification method of the present application is described in detail below using a specific embodiment.
[0053] Embodiment 2
[0054] Figure 2 Schematic diagram of the process of the driving condition identification method provided in the embodiment of the present application Figure 2 .like Figure 2 As shown, the method includes:
[0055] S201, obtaining a historical data set, the historical data set including multiple groups of historical indicator data, performing normalization processing on each of the historical indicator data, and extracting the key indicator data from each of the historical indicator data to obtain multiple key indicator data;
[0056] Specifically, the vehicle speed and braking signals in the historical time are collected, and a historical indicator data set is established. The vehicle driving time, such as 100 seconds, is used as the historical time segment. The average vehicle speed, braking frequency, braking time, maximum vehicle speed, idle speed ratio, average acceleration and average deceleration within 100 seconds are calculated and used as historical indicator data. The historical indicator data indicates the detailed vehicle driving data in the historical time period, and each historical indicator data is normalized by the maximum-minimum method to ensure that different historical indicator data will not produce deviations during the training process and affect the clustering convergence.
[0057] Furthermore, when extracting key indicator data, principal component analysis is used to select preset cumulative contribution rates, such as those greater than 85%, from the historical data set as key indicators such as average vehicle speed, braking frequency, and maximum vehicle speed, thereby obtaining multiple sets of corresponding key indicator data, and using the multiple sets of key indicator data as key indicator data sets.
[0058] S202, randomly obtaining a plurality of the key indicator data from the key indicator data set as corresponding initial center vectors;
[0059] Specifically, after obtaining the key indicator data set, it is necessary to use the adaptive particle swarm optimization algorithm to optimize the initial center of K-means. When obtaining the initial cluster center through the adaptive particle swarm optimization algorithm, a plurality of different vectors such as 3 are randomly selected from the multiple sets of key indicator data collected as the initial center vectors of the adaptive particle swarm optimization algorithm. Each initial center vector is used as a decision variable as shown in the following formula:
[0060] ;
[0061] Among them, C is the cluster center, c1, c2 and c3 are the center vectors of the first, second and third categories respectively, and the data representation of each initial center vector is = [ave_speed, brk_times, max_speed], where ave_speed is the average speed, brk_times is the braking frequency, and max_speed is the maximum speed.
[0062] S203, taking the minimum distance between each key indicator data and each initial center vector as the optimization goal, after updating each initial center vector through an adaptive particle swarm algorithm, each center vector that meets the optimization goal is used as the corresponding initial cluster center;
[0063] Specifically, after obtaining each initial center vector, the particle swarm optimization target is established, and the optimization target is expressed by the following formula:
[0064] ;
[0065] Among them, f is the optimization target, 3 is the number of cluster centers, that is, the number of working conditions, xi is the i-th group of input vectors, N is the number of training samples, and | | represents the Euclidean distance. The training samples are multiple groups of key indicator data obtained by calculation, that is, [ave_speed, brk_times, max_speed] vectors; the number of training samples is the number of groups of key indicator data [ave_speed, brk_times, max_speed] obtained based on historical data;
[0066] Furthermore, the position vector of the particle swarm optimization algorithm is defined as: The goal of the particle swarm optimization algorithm is to find the one that minimizes the optimization target f. The position and speed updates of the adaptive particle swarm optimization algorithm are expressed by the following formula:
[0067]
[0068] Among them, vn(t) is the velocity vector of the nth particle at time t, Cn(t) is the position vector of the nth particle, p(t) and g(t) are the individual optimal solution and the global optimal solution respectively, ɷ is the inertia weight, λ1 is the self-cognition learning factor, λ2 is the social cognition learning factor, r1 and r2 are random values in the range of [0, 1], and the individual optimal solution of each particle is: the position vector of each particle with the minimum target value during the iteration process. The global optimal solution is the decision vector of the particle with the minimum target value in the entire population during the iteration process, and Cn(t) is updated by the following formula:
[0069]
[0070] Furthermore, the update of the ɷ inertia weight is expressed by the following formula:
[0071] ;
[0072] Among them, ɷ is the inertia weight, tmax is the maximum number of iterations of the particle swarm, and the updates of the λ1 self-cognition learning factor and the λ2 social cognition learning factor are expressed by the following formulas:
[0073] , ;
[0074] Among them, tmax is the maximum number of iterations of the particle swarm. The significance of the settings of 0.5 and 2 is to control both and within the range of [1,1.5]. When the iteration starts, t starts to accumulate from 1. At this time, and has a maximum value and a minimum value, which prompts particles to explore the solution space and improve the exploration ability of particles. As the number of iterations increases, and begins to decrease and begins to increase, which prompts particles to develop the solution space and improve the development ability of particles. Based on this adaptive mechanism, particles can adaptively explore and develop the solution space according to the number of iterations, improving the optimization ability of the particle swarm optimization algorithm. The adaptive particle swarm optimization algorithm uses C as the decision vector and obtains the initial cluster center corresponding to K-means by achieving the optimization goal.
[0075] S204, obtaining the distance between each of the key indicator data and each of the initial cluster centers, and assigning each of the key indicator data to each of the clusters corresponding to the shortest distance, each of the clusters including a plurality of close key indicator data, and each of the clusters corresponding to each of the initial cluster centers;
[0076] Specifically, after obtaining the initial cluster centers through the adaptive particle swarm optimization algorithm, the distance from each group of key indicator data in the key indicator data set to each initial cluster center is calculated through the Chebyshev distance, and the key indicator data is assigned to the cluster cluster with the nearest distance. The Chebyshev distance is the maximum value of the difference between the elements at each corresponding position in the two vectors. Therefore, in the presence of outliers, it will not be affected by the outliers and has good robustness to outliers.
[0077] S205, obtaining the average coordinate position of each cluster according to the average value of the plurality of key indicator data in each cluster, and using the average coordinate position of each cluster as a new cluster center, and obtaining each target cluster center according to each new cluster center;
[0078] Specifically, after allocating each key indicator data to the nearest cluster, the average coordinate position of each cluster is calculated and used as the new cluster center, and the new cluster center is detected to see if it changes. If it does not change or the change is less than a certain threshold, the algorithm ends, clustering is completed, and the cluster center is output as the target cluster center. Otherwise, the key indicator data is re-allocated to the nearest cluster based on the new Chebyshev distance. Among them, each target cluster center corresponds to different working conditions such as highway, suburbs and urban areas.
[0079] Further, for obtaining each target cluster center according to each new cluster center, obtaining the difference between each new cluster center and the corresponding initial cluster center as the change difference of each new cluster center, detecting whether each change difference is less than or equal to the change threshold, and if so, taking each new cluster center as the target cluster center of the working condition recognition model;
[0080] If not, the new cluster center that is greater than the change threshold will be marked as the cluster center to be updated, and based on the key indicator data and the cluster center to be updated, the new cluster cluster corresponding to the cluster center to be updated is re-obtained, and the cluster center to be updated is updated according to the average coordinate position of the new cluster cluster. This cycle is repeated until the cluster center to be updated is less than or equal to the change threshold.
[0081] S206, obtaining vehicle driving data in the current time period, wherein the vehicle driving data includes current key indicator data and current slope;
[0082] Specifically, after obtaining the working condition identification model including the target cluster centers, the vehicle driving data in the current time period is collected based on the existing sensors, where the current key indicator data include the current average vehicle speed, the current braking frequency and the current maximum vehicle speed. For the current slope, the slope signal collected by the gearbox is denoised through a low-pass filter to obtain a valid slope signal value, that is, the current slope is obtained.
[0083] S207, if the current slope is not within the preset slope range, inputting the current key indicator data into the operating condition identification model, and outputting driving condition information through the operating condition identification model;
[0084] Specifically, after obtaining the vehicle driving data in the current time period, the current vehicle operating condition is identified as a mountainous condition based on the current slope. That is, if the current slope is not in the preset slope range, the current key indicator data including the current average vehicle speed, the current braking frequency and the current maximum vehicle speed are input into the operating condition identification model, and the current key indicator data are classified through the target cluster centers in the operating condition identification model. The classified results are indicated by the driving condition information, and the driving condition information includes highway, suburban or urban areas.
[0085] S208, if the current slope is within a preset slope range, indicating a mountainous condition through the driving condition information;
[0086] Specifically, if the sensor detects that the current slope is in a preset slope range, the current key indicator data is not input into the operating condition identification model, but the current vehicle operating condition is directly considered to be a mountainous area, and the driving condition information is used to indicate that the current driving condition is a mountainous area, thereby making it simpler, more efficient and easier to achieve operating condition identification.
[0087] The method provided in this embodiment uses an adaptive particle swarm algorithm to optimize a key indicator data set indicating key driving data of vehicles in a historical time period to obtain multiple initial clustering centers, and based on the multiple initial clustering centers, the key indicator data set is trained through a K-means algorithm to obtain a working condition recognition model including a target clustering center, and then the current average vehicle speed, current braking frequency, current maximum vehicle speed and current slope in the current time period are obtained, and when the current slope is not in a preset slope range, the current key indicator data is input into the working condition recognition model, and the driving condition information is output through the target clustering center in the working condition recognition model. Therefore, compared with the existing recognition scheme, this scheme is based on data obtained by existing sensors, is simpler, more efficient, and easier to implement, occupies less resources during deployment, and has a low recognition cost.
[0088] The embodiment of the present invention can divide the electronic device or the main control device into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0089] Figure 3 This is a schematic diagram of the structure of the driving condition identification device provided in the embodiment of the present application. Figure 3 As shown, the device 30 comprises:
[0090] An acquisition module 301 is used to acquire a key indicator data set, where the key indicator data set includes multiple sets of key indicator data, where the key indicator data is used to indicate key vehicle driving data within a historical time period;
[0091] The processing module 302 is used to cluster the key indicator data set by using an adaptive particle swarm algorithm to obtain a plurality of initial cluster centers, and based on the plurality of initial cluster centers, train the key indicator data set by using a K-means algorithm to obtain a working condition recognition model including a target cluster center;
[0092] The execution module 303 is used to obtain the vehicle driving data in the current time period, and the vehicle driving data includes the current key indicator data and the current slope, wherein the current key indicator data includes the current average vehicle speed, the current braking frequency and the current maximum vehicle speed. If the current slope is not in the preset slope range, the current key indicator data is input into the operating condition identification model, and the driving condition information is output through the operating condition identification model, and the driving condition information includes highway, suburbs or urban areas.
[0093] Further, the acquisition module 301 is specifically used to acquire a historical data set, wherein the historical data set includes multiple groups of historical indicator data, wherein the historical indicator data is used to indicate detailed vehicle driving data within a historical time period, wherein the detailed vehicle driving data includes average vehicle speed, braking frequency, braking time, maximum vehicle speed, idle speed ratio, average acceleration and average deceleration;
[0094] After normalizing each of the historical indicator data, the average vehicle speed, braking frequency and maximum vehicle speed are extracted from each of the historical indicator data as the corresponding key indicator data, and a plurality of the key indicator data are used as the key indicator data set.
[0095] Furthermore, the processing module 302 is specifically configured to randomly obtain a plurality of the key indicator data from the key indicator data set as corresponding initial center vectors;
[0096] Taking the minimum distance between each key indicator data and each initial center vector as the optimization goal, after updating each initial center vector through the adaptive particle swarm algorithm, each center vector that meets the optimization goal is used as the corresponding initial cluster center;
[0097] According to each of the initial cluster centers and the key indicator data set, the target cluster center is obtained by using a K-means algorithm.
[0098] Further, the processing module 302 is specifically used to obtain the distance between each of the key indicator data and each of the initial cluster centers, and distribute each of the key indicator data to each of the clusters corresponding to the shortest distance, each of the clusters includes a plurality of close key indicator data, and each of the clusters corresponds to each of the initial cluster centers;
[0099] According to the average value of the multiple key indicator data in each cluster, the average coordinate position of each cluster is obtained and used as a new cluster center, and each target cluster center is obtained according to each new cluster center, wherein each target cluster center corresponds to a different driving condition, and the driving conditions include highway, suburbs and urban areas.
[0100] Further, the processing module 302 is specifically used to obtain the difference between each of the new cluster centers and the corresponding initial cluster center as the change difference of each of the new cluster centers, and detect whether each of the change differences is less than or equal to the change threshold;
[0101] If so, taking each of the new cluster centers as the target cluster center of the operating condition identification model;
[0102] If not, the new cluster center that is greater than the change threshold will be marked as the cluster center to be updated, and based on the key indicator data and the cluster center to be updated, the new cluster cluster corresponding to the cluster center to be updated is re-obtained, and the cluster center to be updated is updated according to the average coordinate position of the new cluster cluster, and this cycle is repeated until the cluster center to be updated is less than or equal to the change threshold.
[0103] Furthermore, the execution module 303 is specifically configured to indicate a mountainous condition through the driving condition information if the current slope is within a preset slope interval.
[0104] The driving condition identification device provided in this embodiment can execute the driving condition identification method of the above-mentioned embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0105] In the specific implementation of the aforementioned driving condition identification device, each module can be implemented as a processor, and the processor can execute computer-executable instructions stored in the memory, so that the processor executes the aforementioned driving condition identification method.
[0106] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown, the electronic device 40 includes: at least one processor 401 and a memory 402. The electronic device 40 also includes a communication component 403. The processor 401, the memory 402 and the communication component 403 are connected via a bus 404.
[0107] In the specific implementation process, at least one processor 401 executes the computer-executable instructions stored in the memory 402, so that at least one processor 401 executes the driving condition identification method executed by the electronic device side as above.
[0108] The specific implementation process of the processor 401 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0109] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0110] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage.
[0111] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.
[0112] The above-mentioned functions implemented by the electronic device and the main control device introduce the scheme provided by the embodiment of the present invention. It can be understood that in order to implement the above-mentioned functions, the electronic device or the main control device includes a hardware structure and / or software module corresponding to the execution of each function. In combination with the units and algorithm steps of each example described in the embodiment disclosed in the embodiment of the present invention, the embodiment of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present invention.
[0113] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above-mentioned driving condition identification method is implemented.
[0114] The computer-readable storage medium mentioned above may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium may be any available medium that can be accessed by a general or special-purpose computer.
[0115] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in an electronic device or a main control device.
[0116] The present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium. At least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.
[0117] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0118] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A driving condition identification method, characterized in that: The method comprises: Acquire a key indicator data set, the key indicator data set including multiple sets of key indicator data, the key indicator data being used to indicate key vehicle driving data within a historical time period; Clustering the key indicator data set by using an adaptive particle swarm algorithm to obtain a plurality of initial cluster centers, and training the key indicator data set by using a K-means algorithm based on the plurality of initial cluster centers to obtain a working condition recognition model including a target cluster center; Acquire vehicle driving data within a current time period, the vehicle driving data including current key indicator data and current slope, wherein the current key indicator data include current average vehicle speed, current braking frequency and current maximum vehicle speed; if the current slope is not within a preset slope range, input the current key indicator data into the operating condition identification model, and output driving condition information through the operating condition identification model, wherein the driving condition information includes highway, suburbs or urban areas.
2. The method according to claim 1, characterized in that The step of obtaining a key indicator data set includes: Acquire a historical data set, the historical data set including multiple groups of historical indicator data, the historical indicator data is used to indicate detailed vehicle driving data within a historical time period, the detailed vehicle driving data including average vehicle speed, braking frequency, braking time, maximum vehicle speed, idle speed ratio, average acceleration and average deceleration; After normalizing each of the historical indicator data, the average vehicle speed, braking frequency and maximum vehicle speed are extracted from each of the historical indicator data as the corresponding key indicator data, and a plurality of the key indicator data are used as the key indicator data set.
3. The method according to claim 1, characterized in that The obtaining of multiple initial cluster centers includes: In the key indicator data set, a plurality of the key indicator data are randomly obtained as corresponding initial center vectors; Taking the minimum distance between each key indicator data and each initial center vector as the optimization goal, after updating each initial center vector through the adaptive particle swarm algorithm, each center vector that meets the optimization goal is used as the corresponding initial cluster center; According to each of the initial cluster centers and the key indicator data set, the target cluster center is obtained by using a K-means algorithm.
4. The method according to claim 3, characterized in that The method of obtaining the target cluster center by using the K-means algorithm includes: Obtaining the distance between each of the key indicator data and each of the initial cluster centers, and allocating each of the key indicator data to each of the clusters corresponding to the shortest distance, each of the clusters including a plurality of the key indicator data that are close to each other, and each of the clusters corresponding to each of the initial cluster centers; According to the average value of the multiple key indicator data in each cluster, the average coordinate position of each cluster is obtained and used as a new cluster center, and each target cluster center is obtained according to each new cluster center, wherein each target cluster center corresponds to a different driving condition, and the driving conditions include highway, suburbs and urban areas.
5. The method according to claim 4, characterized in that The acquiring each of the target cluster centers according to each of the new cluster centers includes: Obtaining a difference between each of the new cluster centers and the corresponding initial cluster center as a change difference of each of the new cluster centers, and detecting whether each of the change differences is less than or equal to a change threshold; If so, taking each of the new cluster centers as the target cluster center of the operating condition identification model; If not, the new cluster center that is greater than the change threshold will be marked as the cluster center to be updated, and based on the key indicator data and the cluster center to be updated, the new cluster cluster corresponding to the cluster center to be updated is re-obtained, and the cluster center to be updated is updated according to the average coordinate position of the new cluster cluster, and this cycle is repeated until the cluster center to be updated is less than or equal to the change threshold.
6. The method according to claim 1, characterized in that If the current slope is within a preset slope interval, the driving condition information indicates a mountainous condition.
7. A driving condition identification device, characterized in that: include: An acquisition module, used to acquire a key indicator data set, wherein the key indicator data set includes multiple sets of key indicator data, and the key indicator data is used to indicate key vehicle driving data within a historical time period; A processing module, used for clustering the key indicator data set by using an adaptive particle swarm algorithm to obtain a plurality of initial cluster centers, and training the key indicator data set by using a K-means algorithm based on the plurality of initial cluster centers to obtain a working condition recognition model including a target cluster center; An execution module is used to obtain vehicle driving data within a current time period, wherein the vehicle driving data includes current key indicator data and a current slope, wherein the current key indicator data includes a current average vehicle speed, a current braking frequency, and a current maximum vehicle speed. If the current slope is not within a preset slope range, the current key indicator data is input into the operating condition identification model, and driving condition information is output through the operating condition identification model, wherein the driving condition information includes highway, suburbs, or urban areas.
8. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.
Citation Information
Cited By
Driving condition construction method and device, vehicle and storage medium
CN120804926A
