A peer vehicle analysis method based on shared prototype space

Through the multi-source fusion method of Transformer and shared prototype space, the problem of insufficient spatio-temporal data interaction in the existing technology is solved, and in-depth exploration and accurate recommendation of car owners' behavioral habits are achieved.

CN119760323BActive Publication Date: 2025-08-29QINGDAO SONLI SOFTWARE INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510238567.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-03
Publication Date
2025-08-29
Estimated Expiration
2045-03-03

AI Technical Summary

Technical Problem

The existing peer vehicle analysis methods fail to make full use of the interaction between spatiotemporal data and features, resulting in the inability to effectively dig up car owner behavioral information.

Method used

Multi-source fusion Transformer is used to extract vehicle and time information, and aligned vehicle and spatiotemporal information through shared prototype space to perform feature modeling and clustering analysis.

Benefits of technology

It achieves more complete feature fusion and behavioral habit information mining, which can provide accurate recommendations for car owners with similar habits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119760323B_ABST
    Figure CN119760323B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of data analysis technology and relates to a peer vehicle analysis method based on a shared prototype space. The method first collects and preprocesses data, then uses a feature extractor to extract vehicle information, and based on the extracted features, uses the shared prototype space to align vehicle and spatiotemporal information as a model for the owner's habits. Then, based on the learned prototype space, the owner's habit characteristics are further analyzed to achieve more comprehensive feature modeling and fusion, and can more fully explore potential behavioral information, and make recommendations for owners with similar habits.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data analysis and relates to a method for analyzing traveling vehicles based on a shared prototype space. Background Art

[0002] In recent years, with the development of intelligent transportation systems, the collection and analysis of urban vehicle driving data has become increasingly important. By analyzing vehicle driving data, we can uncover hidden driver habits and identify drivers with similar living and working habits, providing strong support for services such as aftermarket recommendations.

[0003] Vehicle peer analysis algorithms typically analyze the living and working habits of vehicle owners based on structured spatiotemporal data (vehicle information, time information, and travel area information). These habits are then used to cluster vehicle owners and provide recommendations to those with similar habits. Existing peer analysis methods typically employ methods based on path overlap or deep learning. The path overlap method uses vehicle trajectories as features to calculate similarity and perform clustering, but fails to fully utilize spatiotemporal data and lacks interaction between information. Deep learning methods use vehicle information and spatiotemporal data as input and use neural networks to learn corresponding features. These methods simply concatenate features for learning, resulting in insufficient interaction between features and inability to fully tap into underlying behavioral information. Therefore, a novel peer analysis method based on a shared prototype space is urgently needed. Summary of the Invention

[0004] The purpose of the present invention is to overcome the shortcomings of the existing technology and to provide a peer vehicle analysis method based on a shared prototype space. The method uses a multi-source fusion Transformer to extract vehicle information and model and fuse time information. Based on the learned features, the shared prototype space is used to align vehicle and spatiotemporal information as a model of the owner's habits. The owner's habit characteristics are then further analyzed based on the learned prototype space.

[0005] To achieve the above objectives, the present invention adopts the following technical solutions:

[0006] A peer vehicle analysis method based on a shared prototype space includes the following steps:

[0007] S1. Data collection: Collecting structured spatiotemporal data of vehicles. Structured spatiotemporal data includes vehicle information, time information and spatial information.

[0008] S2. Data preprocessing: Preprocess the structured spatiotemporal data to obtain vehicle features, time features, and spatial features;

[0009] S3, vehicle feature extraction: The vehicle features and time features are concatenated and input into the feature extractor to extract vehicle and time features again. The time features are fused into the vehicle features using cross attention. The feature extractor uses a multi-source feature fusion Transformer backbone network.

[0010] S4, shared prototype space learning and training: embed the vehicle features obtained in step S3 into the shared prototype space, capture the habitual features contained in the vehicle features and temporal feature information, and learn and train by aligning the vehicle and spatial information with the prototype features;

[0011] S5. Peer vehicle analysis: Different clustering is performed based on date types, and automotive aftermarket business recommendations are made for car owners with similar habits.

[0012] As a further technical solution of the present invention, the vehicle information described in step S1 is the information of the vehicle itself, including the license plate number, vehicle model and type; the time information is the specific time, and also includes holidays and morning and evening rush hour information; the spatial information is the road section and area where the vehicle is located and the basic information of the area itself.

[0013] As a further technical solution of the present invention, the vehicle characteristics in step S2 are recorded as , including vehicle price, vehicle type and license plate number features, where vehicle price and vehicle type are input as discrete features, and license plate number features are obtained through the embedding layer; the time feature is recorded as , taking the special mark of the date as the discrete feature, the special mark includes whether it is a working day or a holiday. Each date in a year is embedded to obtain the date feature, and the time is divided into 1 interval every hour, and the time feature is obtained by embedding; the spatial feature is recorded as , the city is pre-divided into different areas, and the type, size, and traffic volume of each area are used as discrete features.

[0014] As a further technical solution of the present invention, the multi-source feature fusion Transformer backbone network in step S3 includes Layer, The layer contains two self-attention modules, a cross-attention module and an FFN layer; the working process of each layer is as follows:

[0015] The two self-attention modules are used to extract the interaction between sub-features within the same feature class, specifically expressed as: , ,in 、 Respectively Vehicle characteristics and time characteristics of the layer;

[0016] The cross attention module is used to fuse the temporal features into the vehicle features, using the temporal features As a key to the attention mechanism Sum , vehicle characteristics As a query , extracting from time features to key features for fusion, expressed as: , , ,in represents a linear transformation, represents the activation function;

[0017] The FFN layer further extracts features through multi-layer MLP to obtain the output of this layer ;

[0018] go through After layer calculation, the final vehicle characteristics and time characteristics are obtained .

[0019] As a further technical solution of the present invention, the specific process of step S4 is: before the learning and training begins, first initialize Prototype features , where the dimension of each prototype feature is and same, Represents a certain habit, combines time and area as an index, and randomly selects prototype features as the expression of the index. Specifically, assuming areas, with an interval of 1 hour, there are a total of indexes, each index Representative Region No. The index of the prototype feature corresponding to the time region. During learning and training, the feature extractor and the prototype feature are optimized separately. The process of optimizing the feature extractor is as follows:

[0020] First select one of the data, the index of the prototype feature corresponding to the time zone in the data is , after step B S3, the feature is obtained ,Will Splice them together and send them into two linear layers to learn a two-dimensional weight vector ,use Get the final fusion features : ,in They are The corresponding two-dimensional weight vector;

[0021] Recalculate Similarity scores to each prototype: ,maximize The sum of the similarities of the corresponding positions in , the loss function is: At the same time, according to Update each prototype feature ,in is a hyperparameter;

[0022] Using multi-task learning, we predict the corresponding spatial features based on the prototype features and temporal features of the vehicle, and predict the type of area where the vehicle is currently located based on the learned features: , ,in For splicing operation, is the owner's habit feature; and cross entropy loss is used to guide learning: ,in To predict the results, is the predicted probability value;

[0023] The specific process of optimizing prototype features is as follows: after updating the parameters of the feature extractor, each index is updated according to the owner information, that is, a new prototype is reassigned to each index. , calculate its difference with each prototype Score : ,in For car owners and prototype The similarity score of =1 means the owner In time Passing area , otherwise it is 0, select the one with the highest score The prototype is used as the new prototype feature corresponding to the index.

[0024] As a further technical solution of the present invention, the specific process of step S5 is: for For a certain period of time, the vehicle information is divided into The time information is stitched together and input into the prototype shared space to obtain this Score of each period , according to the obtained scores and prototype features, the owner's habitual feature expression is obtained : ,in , and then The data is stored in the database as the owner's characteristics, and the owners are clustered using the K-means clustering algorithm; or for a certain owner, the nearest neighbor search algorithm is used to find owners with similar habits for further analysis of the owner.

[0025] Compared with the prior art, the present invention has the following advantages:

[0026] (1) A multi-source fusion Transformer is proposed to extract vehicle and time information separately, and use cross attention to fuse time information into vehicle information to achieve more comprehensive feature modeling and fusion.

[0027] (2) Use the shared prototype space to represent different behavioral habit information, align vehicle and space information with the prototype, and more fully explore potential behavioral information. From the extracted features, explore the habit characteristics of the car owner and make recommendations for car owners with similar habits. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 This is a workflow diagram of the peer vehicle analysis method based on shared prototype space described in the present invention. DETAILED DESCRIPTION

[0029] The present invention will be further described below through examples with reference to the accompanying drawings.

[0030] Example:

[0031] like Figure 1 As shown, this embodiment provides a method for analyzing traveling vehicles based on a shared prototype space, which specifically includes the following steps:

[0032] S1. Data Collection: Collect structured spatiotemporal data of vehicles. Structured spatiotemporal data includes vehicle information, time information, and spatial information. Vehicle information refers to the vehicle itself, including license plate number, vehicle model, and type. Time information refers to the specific time, including holidays and morning and evening rush hour information. Spatial information refers to the road section and area where the vehicle is located, as well as basic information about the area itself.

[0033] S2. Data preprocessing: Preprocess the structured spatiotemporal data to obtain vehicle characteristics , time characteristics and spatial characteristics ; Vehicle characteristics Including vehicle price, vehicle type and license plate number features, where vehicle price and vehicle type are input as discrete features, and license plate number features are obtained through the embedding layer; time features The special marks of the date are used as discrete features. The special marks include whether it is a weekday or a holiday. Each date in a year is embedded to obtain the date feature. The time is divided into an interval every hour, and the time feature is obtained by embedding. Spatial features The city is pre-divided into different areas, and the type (such as commercial area, etc.), size (small, medium and large), and traffic volume of each area are used as discrete features. These discrete features are used as labels to guide model learning in subsequent training.

[0034] S3. Vehicle feature extraction: extract vehicle features and time characteristics After splicing, the input feature extractor extracts vehicle and time features again, and uses cross attention to fuse the time features into the vehicle features. The feature extractor adopts a multi-source feature fusion Transformer backbone network; the multi-source feature fusion Transformer backbone network includes Layer, The layer contains two self-attention modules, a cross-attention module and an FFN layer; the working process of each layer is as follows:

[0035] The two self-attention modules are used to extract the interaction between sub-features within the same feature class, specifically expressed as: , ,in 、 Respectively Vehicle characteristics and time characteristics of the layer;

[0036] The cross attention module is used to fuse the temporal features into the vehicle features, using the temporal features As a key to the attention mechanism Sum , vehicle characteristics As a query , extracting from time features to key features for fusion, expressed as: , , ,in represents a linear transformation, represents the activation function;

[0037] The FFN layer further extracts features through multi-layer MLP to obtain the output of this layer ;

[0038] go through After layer calculation, the final vehicle characteristics and time characteristics are obtained .

[0039] S4, shared prototype space learning and training: embed the vehicle features obtained in step S3 into the shared prototype space, capture the habit features contained in the vehicle features and time feature information, and learn and train by aligning the vehicle and space information with the prototype features; the specific process is: before the learning and training begins, initialize Prototype features , where the dimension of each prototype feature is and same, Represents a certain habit, such as going to work, entertainment, etc. If a car appears at a specific place and time, it contains the characteristics of its possible work and life habits. The time and area are combined as an index, and a random selection is made under each index. prototype features as the expression of the index. Specifically, assuming areas, with an interval of 1 hour, there are a total of indexes, each index Representative Region No. The index of the prototype feature corresponding to the time region. During learning and training, the feature extractor and the prototype feature are optimized separately. The process of optimizing the feature extractor is as follows:

[0040] First select one of the data, the index of the prototype feature corresponding to the time zone in the data is , after step B S3, the feature is obtained ,Will Splice them together and send them into two linear layers to learn a two-dimensional weight vector ,use Get the final fusion features : ,in They are The corresponding two-dimensional weight vector;

[0041] Recalculate Similarity scores to each prototype: , since the goal is to index Will Aligned with the prototype space, passing through the same area on weekends and weekdays may correspond to different habits, so only maximizing Instead of maximizing the score of each prototype, the loss function is: At the same time, according to Update each prototype feature ,in is a hyperparameter;

[0042] To ensure that the prototype features include habit features, a multi-task learning approach is used to predict the corresponding spatial features based on the prototype features and time features of the vehicle. For example, if the vehicle owner a and the time 9:00 a.m. on a weekday are input, the type of area the vehicle is currently in (such as a commercial area) is predicted based on the learned features: , ,in For splicing operation, is the owner's habit feature; and cross entropy loss is used to guide learning: ,in To predict the results, is the predicted probability value;

[0043] The specific process of optimizing prototype features is as follows: after updating the parameters of the feature extractor, each index is updated according to the owner information, that is, a new prototype is reassigned to each index. , calculate its difference with each prototype Score : ,in For car owners and prototype The similarity score of =1 means the owner In time Passing area , otherwise it is 0, select the one with the highest score The prototype is used as the new prototype feature corresponding to the index.

[0044] S5. Analysis of peer vehicles: Different clusters are made based on date types to recommend aftermarket services to car owners with similar habits. For the working days in January, the vehicle information is combined with 24 time information (month is January, working day, time is ), the vehicle information is spliced ​​with the 24 time information and input into the prototype shared space to obtain the scores of these 24 time periods , according to the obtained scores and prototype features, the owner's habitual feature expression is obtained : ,in , and then The data is stored in the database as the owner's characteristics, and the owners are clustered using the K-means clustering algorithm; or for a certain owner, the nearest neighbor search algorithm is used to find owners with similar habits for further analysis of the owner.

[0045] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Systems and algorithms not described in detail herein are generally known techniques. Those skilled in the art will readily appreciate that various modifications and variations are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be within the scope of protection of the present invention.

[0046] Although the above describes the specific embodiments of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without any creative work are still within the scope of protection of the present invention.

Claims

1. A method for analyzing vehicles traveling together based on a shared prototype space, characterized in that: The specific steps include: S1. Data collection: Collecting structured spatiotemporal data of vehicles. Structured spatiotemporal data includes vehicle information, time information and spatial information. S2. Data preprocessing: Preprocess the structured spatiotemporal data to obtain vehicle features, time features, and spatial features; S3, vehicle feature extraction: The vehicle features and time features are concatenated and input into the feature extractor to extract the vehicle and time features again, and the time features are fused into the vehicle features using cross attention. The feature extractor uses a multi-source feature fusion Transformer backbone network, which includes Layer, The layer contains two self-attention modules, a cross-attention module and an FFN layer; the working process of each layer is as follows: The two self-attention modules are used to extract the interaction between sub-features within the same feature class, specifically expressed as: , ,in 、 Respectively Vehicle characteristics and time characteristics of the layer; The cross attention module is used to fuse the temporal features into the vehicle features, using the temporal features As a key to the attention mechanism Sum ,vehicle As a query , extracting from time features to key features for fusion, expressed as: , , ,in represents a linear transformation, represents the activation function; The FFN layer further extracts features through multi-layer MLP to obtain the output of this layer ; go through After layer calculation, the final vehicle characteristics and time characteristics are obtained ; S4, shared prototype space learning and training: embed the vehicle features obtained in step S3 into the shared prototype space, capture the habitual features contained in the vehicle features and temporal feature information, and learn and train by aligning the vehicle and spatial information with the prototype features; S5. Peer vehicle analysis: Different clustering is performed based on date types, and automotive aftermarket business recommendations are made for car owners with similar habits.

2. The method for analyzing traveling vehicles based on a shared prototype space according to claim 1 is characterized in that: The vehicle information in step S1 is the information of the vehicle itself, including the license plate number, vehicle model and type; the time information is the specific time, including holidays and morning and evening rush hour information; the spatial information is the road section and area where the vehicle is located and the basic information of the area itself.

3. The method for analyzing traveling vehicles based on a shared prototype space according to claim 2 is characterized in that: The vehicle characteristics in step S2 are recorded as , including vehicle price, vehicle type and license plate number features, where vehicle price and vehicle type are input as discrete features, and license plate number features are obtained through the embedding layer; the time feature is recorded as , taking the special mark of the date as the discrete feature, the special mark includes whether it is a working day or a holiday. Each date in a year is embedded to obtain the date feature, and the time is divided into 1 interval every hour, and the time feature is obtained by embedding; the spatial feature is recorded as , the city is pre-divided into different areas, and the type, size, and traffic volume of each area are used as discrete features.

4. The method for analyzing traveling vehicles based on a shared prototype space according to claim 3 is characterized in that: The specific process of step S4 is: before the learning and training begins, initialize Prototype features , where the dimension of each prototype feature is and same, Represents a certain habit, combines time and area as an index, and randomly selects prototype features as the expression of the index. Specifically, assuming areas, with an interval of 1 hour, there are a total of indexes, each index Representative Region No. The index of the prototype feature corresponding to each time region, during learning and training, the feature extractor and prototype feature are optimized separately; The process of optimizing the feature extractor is as follows: First select one of the data, the index of the prototype feature corresponding to the time zone in the data is , after step S3, the feature is obtained ,Will Splice them together and send them into two linear layers to learn a two-dimensional weight vector ,use Get the final fusion features : ,in They are The corresponding two-dimensional weight vector; Recalculate Similarity scores to each prototype: ,maximize The sum of the similarities of the corresponding positions in , the loss function is: At the same time, according to Update each prototype feature ,in is a hyperparameter; Using multi-task learning, we predict the corresponding spatial features based on the prototype features and temporal features of the vehicle, and predict the type of area where the vehicle is currently located based on the learned features: , ,in For splicing operations, is the owner's habit feature; and cross entropy loss is used to guide learning: ,in To predict the results, is the predicted probability value; The specific process of optimizing prototype features is as follows: after updating the parameters of the feature extractor, each index is updated according to the owner information, that is, a new prototype is reassigned to each index. , calculate its difference with each prototype Score : ,in For car owners and prototype The similarity score of =1 means the owner In time Passing area , otherwise it is 0, select the one with the highest score The prototype is used as the new prototype feature corresponding to the index.

5. The method for analyzing traveling vehicles based on a shared prototype space according to claim 4 is characterized in that: The specific process of step S5 is: For a certain period of time, the vehicle information is divided into The time information is stitched together and input into the prototype shared space to obtain this Score of each period , according to the obtained scores and prototype features, the owner's habitual feature expression is obtained : ,in , and then The data is stored in the database as the owner's characteristics, and the owners are clustered using the K-means clustering algorithm; or for a certain owner, the nearest neighbor search algorithm is used to find owners with similar habits for further analysis of the owner.

Citation Information

Patent Citations

  • BEVFormer and neighborhood attention Transform fused end-to-end automatic driving trajectory planning system, method and training method

    CN117516581A

  • Airport short-term load prediction method based on large language model migration

    CN118966422A