Illegal vehicle identification method, device, electronic equipment and medium
By obtaining vehicle attribute characteristics and regional dynamic change characteristics, combined with LPC coding and LSTM model, illegal operating vehicles are identified, which solves the problem of low identification accuracy in the existing technology and improves the identification accuracy.
Patent Information
- Application Number
- CN202311771939.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-12-21
AI Technical Summary
It is difficult for existing technology to effectively identify illegally operated vehicles, and the identification accuracy is low. Moreover, illegal operating methods are constantly being renovated and models are constantly upgraded, making it difficult to meet the identification requirements.
By obtaining the vehicle attribute characteristics and regional dynamic change characteristics of the vehicle to be identified, combined with LPC coding and LSTM model, the vehicle identity is identified and the identification accuracy is improved.
It improves the accuracy of illegally operating vehicle identification, can more accurately reflect the dynamic changing characteristics of the region, and enhances the reliability of the identification results.
Smart Images

Figure CN117746348B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data and artificial intelligence technology. Specifically, the present invention relates to a method, device, electronic equipment and medium for identifying illegally operated vehicles. Background Art
[0002] The existence of illegally operated vehicles not only has a bad impact on social security, but also has a great impact on the normal order of the transportation market, causing many harms; however, there is currently no effective method or system to achieve automatic identification of illegally operated vehicles.
[0003] Existing methods mostly use rapid retrieval of vehicle video surveillance and vehicle passing data, and then use unsupervised or supervised traditional machine learning algorithms for identification. However, the above solutions are heavily dependent on the latest vehicle video surveillance and vehicle passing data, and the existing illegally operated vehicles have the characteristics of "illegal operation methods are constantly updated and models are constantly upgraded", which means that it is difficult to simply meet the requirements for identifying illegal vehicles based on past behavioral pattern experience, resulting in the inability to guarantee the accuracy of identification, which still needs further improvement. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method, device, electronic equipment and medium for identifying illegally operated vehicles, aiming to solve the problem of low recognition accuracy.
[0005] In the first aspect, the technical solution of the present invention to solve the above technical problem is as follows: a method for identifying illegally operated vehicles, the method comprising:
[0006] Acquire a vehicle attribute feature set of a vehicle to be identified and a target region, wherein the vehicle attribute feature set includes at least one vehicle attribute feature;
[0007] For each of the vehicle attribute features, determine the regional dynamic change features corresponding to the vehicle attribute features at the target time for the vehicle to be identified according to the vehicle attribute features, where the target time is the time required for the vehicle to be identified to travel to the target area;
[0008] According to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics, the identity recognition result of the vehicle to be recognized is identified, and the identity recognition result is a normally operated vehicle or an illegally operated vehicle.
[0009] The beneficial effect of the present invention is that in the process of identifying the identity recognition result of the vehicle to be identified, not only the vehicle attribute characteristics of the vehicle to be identified are taken into account, but also the regional dynamic change characteristics of the vehicle to be identified, that is, the change characteristics of the vehicle attribute characteristics of the vehicle to be identified during the movement process. Based on these two aspects of characteristics, the accuracy of the identity recognition result of the vehicle to be identified can be improved.
[0010] Based on the above technical solution, the present invention can also be improved as follows.
[0011] Furthermore, the method further comprises:
[0012] Dividing the target time into a plurality of time slices;
[0013] For each of the vehicle attribute features, the above-mentioned determining, based on the vehicle attribute features, the regional dynamic change features corresponding to the vehicle attribute features of the to-be-identified vehicle at the target time includes:
[0014] For each of the vehicle attribute features, the regional dynamic change features corresponding to the vehicle attribute features of the to-be-identified vehicle at each of the time slices are determined according to the vehicle attribute features.
[0015] The beneficial effect of adopting the above further solution is that the target time is divided into time slices of smaller granularity, which can more accurately reflect the changes in the dynamic change characteristics of the region over time.
[0016] Further, for each of the vehicle attribute features, the above-mentioned determining, based on the vehicle attribute features, the regional dynamic change features corresponding to the vehicle attribute features of the to-be-identified vehicle at each of the time slices includes:
[0017] For each of the vehicle attribute features, the regional dynamic change features corresponding to the vehicle attribute features of the to-be-identified vehicle at each of the time slices are determined through LPC coding according to the vehicle attribute features.
[0018] The beneficial effect of adopting the above further solution is that the regional dynamic change characteristics corresponding to the vehicle attribute characteristics can be more accurately extracted through the LPC encoding method.
[0019] Furthermore, the above vehicle attribute feature set is determined in the following manner:
[0020] Acquire the initial set of vehicles to be identified, wherein the number of vehicle attribute features in the initial set is not less than the number of vehicle attribute features in the vehicle attribute feature set;
[0021] Determining a weight of each vehicle attribute feature in the initial set according to each vehicle attribute feature in the initial set;
[0022] According to the weight of each of the vehicle attribute features in the initial set and a preset threshold, each of the vehicle attribute features in the initial set is screened to obtain the vehicle attribute feature set.
[0023] The beneficial effect of adopting the above further solution is that the vehicle attribute features in the initial set are screened according to the weights of the various vehicle attribute features, so that redundant items in the initial set can be removed, thereby reducing the computational complexity.
[0024] Furthermore, the weight of each of the vehicle attribute features in the initial set is determined in the following manner:
[0025] Obtaining target model parameters corresponding to when a loss function of a recognition model is minimized, wherein the recognition model is a model for identifying an identity recognition result of the vehicle based on an initial set of vehicles;
[0026] The weight of each of the vehicle attribute features in the initial set is determined according to the target model parameters.
[0027] The beneficial effect of adopting the above further scheme is that this scheme adopts a method of determining weights while training the model, thereby improving the accuracy of weight determination.
[0028] Furthermore, the above target model parameters are determined in the following way:
[0029] Acquire training samples, wherein the training samples include a sample vehicle attribute feature set of multiple sample vehicles, each of the sample vehicle attribute feature sets includes multiple vehicle attribute features, each of the sample vehicles corresponds to a classification label, and for each of the sample vehicles, the classification label represents a real identity recognition result of the sample vehicle;
[0030] Training the initial model according to the training samples to obtain a prediction recognition result for each of the sample vehicles;
[0031] Determining the loss function value of the initial model according to each of the prediction recognition results and each of the classification labels;
[0032] The initial model corresponding to the minimum loss function value is used as the recognition model, and the model parameters of the initial model corresponding to the minimum loss function value are used as the target model parameters.
[0033] The beneficial effect of adopting the above further scheme is that since the target model parameters are the model parameters corresponding to the minimum loss function value, determining the weights based on the target model parameters can make the determined weights more accurate.
[0034] Furthermore, the identification result of the vehicle to be identified according to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics includes:
[0035] According to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics, the identity recognition result of the vehicle to be identified is obtained through the pre-trained LSTM model.
[0036] The beneficial effect of adopting the above further scheme is that, since the characteristics of regional dynamic changes are time-series, the identification results of the vehicle to be identified are identified based on the LSTM model that considers the time-series characteristics, which can improve the accuracy of the identification results.
[0037] In a second aspect, in order to solve the above technical problems, the present invention also provides an identification device for illegally operated vehicles, the device comprising:
[0038] A data acquisition module, used to acquire a vehicle attribute feature set and a target region of a vehicle to be identified, wherein the vehicle attribute feature set includes at least one vehicle attribute feature;
[0039] A feature determination module is used to determine, for each of the vehicle attribute features, a regional dynamic change feature corresponding to the vehicle attribute feature at a target time for the vehicle to be identified, according to the vehicle attribute feature, wherein the target time is the time required for the vehicle to be identified to travel to the target area;
[0040] The identification module is used to identify the identity recognition result of the vehicle to be identified according to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics, and the identity recognition result is a normally operated vehicle or an illegally operated vehicle.
[0041] In a third aspect, in order to solve the above-mentioned technical problem, the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method for identifying illegally operated vehicles of the present application is implemented.
[0042] In a fourth aspect, in order to solve the above-mentioned technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for identifying illegally operated vehicles of the present application is implemented.
[0043] Additional aspects and advantages of the present application will be partially given in the following description, which will become apparent from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for describing the embodiments of the present invention are briefly introduced below.
[0045] Figure 1A schematic flow chart of a method for identifying illegally operated vehicles provided by one embodiment of the present invention;
[0046] Figure 2 A schematic diagram of the structure of a device for identifying illegally operated vehicles provided by one embodiment of the present invention;
[0047] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The principles and features of the present invention are described below. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0049] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. 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 invention will be described below in conjunction with the accompanying drawings.
[0050] The solution provided by the embodiment of the present invention can be applied to any application scenario where it is necessary to identify illegally operated vehicles. The solution provided by the embodiment of the present invention can be executed by any electronic device, for example, it can be a user's terminal device, including at least one of the following: a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a smart TV, and a smart vehicle-mounted device.
[0051] The embodiment of the present invention provides a possible implementation method, such as Figure 1 As shown, a flowchart of a method for identifying an illegally operated vehicle is provided. The solution can be executed by any electronic device, for example, a terminal device, or a terminal device and a server. For the convenience of description, the method provided by the embodiment of the present invention will be described below by taking the terminal device as the execution subject as an example. Figure 1 The method may include the following steps:
[0052] Step S110, obtaining a vehicle attribute feature set and a target region of a vehicle to be identified, wherein the vehicle attribute feature set includes at least one vehicle attribute feature;
[0053] Step S120, for each of the vehicle attribute features, determining, according to the vehicle attribute features, a regional dynamic change feature corresponding to the vehicle attribute feature at a target time, wherein the target time is the time required for the vehicle to be identified to travel to the target region;
[0054] Step S130, identifying the identity recognition result of the vehicle to be identified according to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics, and the identity recognition result is a normally operated vehicle or an illegally operated vehicle.
[0055] Through the method of the present invention, in the process of identifying the identity recognition result of the vehicle to be identified, not only the vehicle attribute characteristics of the vehicle to be identified are taken into account, but also the geographical dynamic change characteristics of the vehicle to be identified, that is, the change characteristics of the vehicle attribute characteristics of the vehicle to be identified during the movement process. Based on these two aspects of characteristics, the accuracy of the identity recognition result of the vehicle to be identified can be improved.
[0056] The solution of the present invention is further described below in conjunction with the following specific embodiments. In this embodiment, the method for identifying illegally operated vehicles may include the following steps:
[0057] Step S110, obtaining a vehicle attribute feature set and a target region of a vehicle to be identified, wherein the vehicle attribute feature set includes at least one vehicle attribute feature;
[0058] Optionally, at least one vehicle attribute feature includes but is not limited to the type of vehicle (electric vehicle or gasoline vehicle), the age of the vehicle, the value of the vehicle, etc.
[0059] The target region may be a given target area.
[0060] Optionally, the above vehicle attribute feature set is determined in the following manner:
[0061] Acquire the initial set of vehicles to be identified, wherein the number of vehicle attribute features in the initial set is not less than the number of vehicle attribute features in the vehicle attribute feature set;
[0062] Determine the weight of each vehicle attribute feature in the initial set according to each vehicle attribute feature in the initial set, and for each vehicle attribute feature, the greater the weight of the vehicle attribute feature, the more obvious the vehicle feature reflected by the vehicle attribute feature, and thus the greater the influence of the vehicle attribute feature on the identity recognition result;
[0063] According to the weight of each of the vehicle attribute features in the initial set and a preset threshold, each of the vehicle attribute features in the initial set is screened to obtain the vehicle attribute feature set.
[0064] Optionally, according to the weight of each vehicle attribute feature in the initial set and the preset threshold, one implementation method for screening each vehicle attribute feature in the initial set is: deleting the vehicle attribute features corresponding to the weights less than the preset threshold from the initial set. The vehicle attribute features corresponding to the weights less than the preset threshold represent features that have little impact on the identity recognition result, and therefore, can be deleted from the initial set.
[0065] Optionally, the weight of each of the vehicle attribute features in the initial set is determined in the following manner:
[0066] Obtaining target model parameters corresponding to when a loss function of a recognition model is minimized, wherein the recognition model is a model for identifying an identity recognition result of the vehicle based on an initial set of vehicles;
[0067] The weight of each of the vehicle attribute features in the initial set is determined according to the target model parameters.
[0068] Optionally, the above target model parameters are determined by:
[0069] Acquire training samples, wherein the training samples include a sample vehicle attribute feature set of multiple sample vehicles, each of the sample vehicle attribute feature sets includes multiple vehicle attribute features, each of the sample vehicles corresponds to a classification label, and for each of the sample vehicles, the classification label represents the real identity recognition result of the sample vehicle, for example, the classification label is: y=1, indicating that the real identity recognition result is an illegally operated vehicle, and the classification label is: y=0, indicating that the real identity recognition result is a normally operated vehicle;
[0070] Training the initial model according to the training samples to obtain a prediction recognition result for each of the sample vehicles;
[0071] Determining the loss function value of the initial model according to each of the prediction recognition results and each of the classification labels;
[0072] The initial model corresponding to the minimum loss function value is used as the recognition model, and the model parameters of the initial model corresponding to the minimum loss function value are used as the target model parameters.
[0073] The training process of the above recognition model can be specifically referred to the following process:
[0074] Get training samples, which include M sample vehicles, which can be recorded as: U = {u1,u2,u3...u M}, M sample vehicles correspond to N parking positions, which can be recorded as the vehicle parking point set V = {v1,v2,v3...v N}; For a sample vehicle u j , the sample vehicle u j The vehicle attribute feature of can be recorded as a, and the vehicle driving behavior of the sample vehicle at time t can be recorded as: (u j ,v j ,t,a), where v j ∈V represents the parking position of the sample vehicle. The classification label corresponding to the sample vehicle is y=1, indicating that the sample vehicle is an illegally operated vehicle. Based on the above representation method, for multiple sample vehicles in the training sample, the vehicle attribute feature a of each sample vehicle is first normalized according to the feature item (type of vehicle attribute feature) to obtain the normalized vehicle attribute feature, which can be expressed as: f={a1, a1, a1···a p}, where a j represents the jth vehicle attribute feature, 1≤j≤p. The preset initial attribute feature weight vector of each sample attribute feature can be expressed as: θ={θ1,θ2,θ3...θ p}, where θ i represents the initial weight of the i-th vehicle attribute feature, 1≤i≤p, and p represents the number of types of vehicle attribute features in the training sample.
[0075] According to the training samples, the prediction recognition result of each sample vehicle is obtained through the sigmoid function in the initial model, wherein the sigmoid function can be expressed as:
[0076]
[0077] Among them, h θ (f) represents the predicted recognition results of each sample vehicle, which can be expressed by probability value, θ T represents the transpose of θ.
[0078] Among them, θ1a1+θ2a2+...+θ p a p =θ T f, the predicted recognition result of the sample vehicle obtained according to formula (1) can also be expressed as:
[0079] P(y=1|f;θ)=h θ (f) (2)
[0080] P(y=0|f;θ)=1-h θ (f) (3)
[0081] The above formula (2) indicates that the probability that the sample vehicle is an illegally operated vehicle is h θ (f), the above formula (3) indicates that the probability that the sample vehicle is a normal operating vehicle is 1-hθ (f).
[0082] By integrating the above formula (2) and formula (3), we can get formula (4):
[0083] P(y|f;θ)=(h θ (f)) y (1-h θ (f)) 1-y (4)
[0084] Wherein, P(y|f; θ) represents the probability of the predicted recognition result of each sample vehicle obtained by the initial model, and θ can also be expressed as the model parameter of the initial model.
[0085] By maximizing the likelihood function, the training loss function L(θ) of the initial model is obtained as:
[0086]
[0087] By taking the logarithm of the two sides of formula (5), we can obtain:
[0088]
[0089] Among them, formula (6) represents the gradient ascent task.
[0090] Introduction The above formula (6) is converted into a gradient descent task. By minimizing the training loss function, the initial attribute feature weight vector is updated to obtain the updated attribute feature weight vector. The specific process is as follows:
[0091]
[0092] Among them, α is the model learning rate of the initial model, θ j Represents the weight of the j-th vehicle attribute feature after update.
[0093] The model is trained by minimizing the training loss function to obtain the attribute feature weight vector θ, and then the weight of θ is normalized to obtain the normalized attribute feature weight vector ω i :
[0094]
[0095] The normalized attribute feature weight vector is used as the weight of each vehicle attribute feature.
[0096] After determining the weights of each vehicle attribute feature, set a threshold η, and filter out the vehicle attribute features with weights less than η from the training samples to filter out redundant features and obtain the optimized feature set f new={a1,a2,a3...a s}.
[0097] Similarly, based on the weights of the vehicle attribute features determined above, the initial set can be filtered to obtain a vehicle attribute feature set. After obtaining the vehicle attribute feature set, the following step S120 is performed. In addition, after obtaining the vehicle attribute feature set, the optimized vehicle attribute feature a can be sequentially i Perform time-based interval sampling.
[0098] Step S120, for each of the vehicle attribute features, determining, according to the vehicle attribute features, a regional dynamic change feature corresponding to the vehicle attribute feature at a target time, wherein the target time is the time required for the vehicle to be identified to travel to the target region;
[0099] The target time may be derived based on the distance between the current position of the vehicle to be identified and the target area, and the current speed of the vehicle to be identified.
[0100] For each vehicle attribute feature, the regional dynamic change feature corresponding to the vehicle attribute feature can reflect the change of the vehicle attribute feature during the process of the vehicle to be identified moving from the current position to the target region.
[0101] Optionally, the method further includes:
[0102] The target time is divided into multiple time slices. The duration of each time slice can be equal or unequal. Multiple time slices can be represented by a time slice set: T = {t1, t2, t3...t τ}, where τ is the number of time slices;
[0103] For each of the vehicle attribute features, in the above S120, determining the regional dynamic change features corresponding to the vehicle attribute features of the to-be-identified vehicle at the target time according to the vehicle attribute features includes:
[0104] For each of the vehicle attribute features, the regional dynamic change features corresponding to the vehicle attribute features of the to-be-identified vehicle at each of the time slices are determined according to the vehicle attribute features.
[0105] Optionally, for each of the vehicle attribute features, determining, according to the vehicle attribute features, the regional dynamic change features corresponding to the vehicle attribute features of the to-be-identified vehicle at each of the time slices, includes:
[0106] For each of the vehicle attribute features, the regional dynamic change features corresponding to the vehicle attribute features of the to-be-identified vehicle at each of the time slices are determined through LPC coding according to the vehicle attribute features.
[0107] For vehicle attribute feature a i , the vehicle attribute feature a i The corresponding determination process of the regional dynamic change characteristics can be as follows: Determine the vehicle attribute characteristics a through LPC coding i In a time slice t i The LPC spectrum feature of the vehicle is the vehicle attribute feature a i Corresponding regional dynamic change characteristics.
[0108] Step S130, identifying the identity recognition result of the vehicle to be identified according to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics, and the identity recognition result is a normally operated vehicle or an illegally operated vehicle.
[0109] Optionally, one possible way to identify the identity recognition result of the vehicle to be identified based on the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics is as follows: according to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics, determine the regional dynamic change characteristics corresponding to the vehicle to be identified, and according to the regional dynamic change characteristics corresponding to the vehicle to be identified, determine the identity recognition result of the vehicle to be identified.
[0110] Continuing with the previous example, Represents the vehicle attribute feature a i In time slice t i The corresponding LPC spectrum features under time slice t can be obtained by splicing i Next, the vehicle u to be identified is at time slice t i The target area LPC spectrum characteristics (regional dynamic change characteristics) are as follows: Based on the time slice t of the vehicle u to be identified i The LPC spectrum characteristics of the target area under the above can determine the LPC spectrum characteristics of the vehicle u to be identified under each of the time slices: That is, the regional dynamic change characteristics of the vehicle u to be identified, so that based on the regional dynamic change characteristics of the vehicle u to be identified, the identity recognition result of the vehicle u to be identified can be obtained.
[0111] Optionally, in S130, identifying the identity recognition result of the vehicle to be identified according to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics includes:
[0112] According to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics, the identity recognition result of the vehicle to be identified is obtained through the pre-trained LSTM model.
[0113] Continuing with the previous example, the LPC spectrum features of the vehicle u to be identified at each time slice can be expressed as Taking the LPC spectrum features of the vehicle u to be identified at each time slice as the input of the LSTM timing network (LSTM model), we get:
[0114]
[0115] Among them, h o and c o Respectively represent the initial hidden unit and state unit of the LSTM model input, Represented as the output state of the LSTM model, x u It represents the corresponding expression of the LPC spectrum features of the vehicle u to be identified at each time slice under the LSTM model.
[0116] The output state of the LSTM model is used as the regional dynamic change feature of the vehicle u to be identified, so as to The identification result of the vehicle u to be identified is achieved:
[0117]
[0118] Among them, σ is the sigmo id function, y u represents the identification result, and W represents the prediction weight of the model output.
[0119] The beneficial effects of the scheme of the present invention are as follows: the traditional machine learning method relies on the video surveillance and vehicle passing data of the vehicle, and the stability of its pattern characteristics is poor. It needs to be based on the latest vehicle video surveillance and vehicle passing data. The existing illegal operating vehicles have the characteristics of "illegal operating methods are constantly updated and patterns are constantly upgraded", which means that it is difficult to simply meet the requirements for identifying illegal operating vehicles based on past behavior pattern experience. The present invention focuses on the regional dynamic change pattern of illegal operating vehicles, analyzes and compares the differences in the regional structural change patterns of illegal operating vehicles and normal operating vehicles, and proposes an illegal operating vehicle identification algorithm based on the characteristics of the regional change pattern, thereby improving the accuracy of illegal operating vehicle identification.
[0120] Based on Figure 1 Based on the same principle as the method shown in , the embodiment of the present invention also provides an identification device 20 for illegally operated vehicles, such as Figure 2 As shown in , the illegal operation vehicle identification device 20 may include a data acquisition module 210, a feature determination module 220 and an identification module 230, wherein:
[0121] The data acquisition module 210 is used to acquire a vehicle attribute feature set and a target region of a vehicle to be identified, wherein the vehicle attribute feature set includes at least one vehicle attribute feature;
[0122] The feature determination module 220 is used to determine, for each of the vehicle attribute features, the regional dynamic change feature corresponding to the vehicle attribute feature at a target time for the vehicle to be identified, according to the vehicle attribute feature, wherein the target time is the time required for the vehicle to be identified to travel to the target region;
[0123] The identification module 230 is used to identify the identity recognition result of the vehicle to be identified according to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics, and the identity recognition result is a normally operated vehicle or an illegally operated vehicle.
[0124] Optionally, the device further comprises:
[0125] A time division module, used for dividing the target time into multiple time slices;
[0126] For each of the vehicle attribute features, the feature determination module 220 is specifically used to determine the regional dynamic change feature corresponding to the vehicle attribute feature of the to-be-identified vehicle at the target time according to the vehicle attribute feature:
[0127] For each of the vehicle attribute features, the regional dynamic change features corresponding to the vehicle attribute features of the to-be-identified vehicle at each of the time slices are determined according to the vehicle attribute features.
[0128] Optionally, for each of the vehicle attribute features, when the feature determination module 220 determines the regional dynamic change feature corresponding to the vehicle attribute feature of the to-be-identified vehicle at each of the time slices according to the vehicle attribute feature, it is specifically used to:
[0129] For each of the vehicle attribute features, the regional dynamic change features corresponding to the vehicle attribute features of the to-be-identified vehicle at each of the time slices are determined through LPC coding according to the vehicle attribute features.
[0130] Optionally, the above vehicle attribute feature set is determined in the following manner:
[0131] Acquire the initial set of vehicles to be identified, wherein the number of vehicle attribute features in the initial set is not less than the number of vehicle attribute features in the vehicle attribute feature set;
[0132] Determining a weight of each vehicle attribute feature in the initial set according to each vehicle attribute feature in the initial set;
[0133] According to the weight of each of the vehicle attribute features in the initial set and a preset threshold, each of the vehicle attribute features in the initial set is screened to obtain the vehicle attribute feature set.
[0134] Optionally, the weight of each of the vehicle attribute features in the initial set is determined in the following manner:
[0135] Obtaining target model parameters corresponding to when a loss function of a recognition model is minimized, wherein the recognition model is a model for identifying an identity recognition result of the vehicle based on an initial set of vehicles;
[0136] The weight of each of the vehicle attribute features in the initial set is determined according to the target model parameters.
[0137] Optionally, the above target model parameters are determined by:
[0138] Acquire training samples, wherein the training samples include a sample vehicle attribute feature set of multiple sample vehicles, each of the sample vehicle attribute feature sets includes multiple vehicle attribute features, each of the sample vehicles corresponds to a classification label, and for each of the sample vehicles, the classification label represents a real identity recognition result of the sample vehicle;
[0139] Training the initial model according to the training samples to obtain a prediction recognition result for each of the sample vehicles;
[0140] Determining the loss function value of the initial model according to each of the prediction recognition results and each of the classification labels;
[0141] The initial model corresponding to the minimum loss function value is used as the recognition model, and the model parameters of the initial model corresponding to the minimum loss function value are used as the target model parameters.
[0142] Optionally, when the identification module 230 identifies the identification result of the vehicle to be identified according to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics, it is specifically used to:
[0143] According to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics, the identity recognition result of the vehicle to be identified is obtained through the pre-trained LSTM model.
[0144] The device for identifying illegally operated vehicles in the embodiment of the present invention can execute the method for identifying illegally operated vehicles provided in the embodiment of the present invention, and the implementation principles are similar. The actions performed by each module and unit in the device for identifying illegally operated vehicles in each embodiment of the present invention correspond to the steps in the method for identifying illegally operated vehicles in each embodiment of the present invention. For the detailed functional description of each module in the device for identifying illegally operated vehicles, please refer to the description in the corresponding method for identifying illegally operated vehicles shown in the previous text, which will not be repeated here.
[0145] Among them, the above-mentioned illegal vehicle identification device can be a computer program (including program code) running in a computer device, for example, the illegal vehicle identification device is an application software; the device can be used to execute the corresponding steps in the method provided in the embodiment of the present invention.
[0146] In some embodiments, the device for identifying illegally operated vehicles provided in the embodiments of the present invention can be implemented in a combination of software and hardware. As an example, the device for identifying illegally operated vehicles provided in the embodiments of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the method for identifying illegally operated vehicles provided in the embodiments of the present invention. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), or other electronic components.
[0147] In other embodiments, the device for identifying illegally operated vehicles provided by the embodiments of the present invention may be implemented in a software manner. Figure 2 An identification device for illegally operated vehicles stored in a memory is shown, which can be software in the form of programs and plug-ins, and includes a series of modules, including a data acquisition module 210, a feature determination module 220 and an identification module 230, for implementing the identification method for illegally operated vehicles provided in an embodiment of the present invention.
[0148] The modules involved in the embodiments of the present invention may be implemented by software or hardware, wherein the name of a module does not limit the module itself in some cases.
[0149] Based on the same principle as the method shown in the embodiments of the present invention, an electronic device is also provided in the embodiments of the present invention, which may include but is not limited to: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the method shown in any embodiment of the present invention by calling the computer program.
[0150] In an alternative embodiment, an electronic device is provided, such as Figure 3 As shown, Figure 3 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present invention.
[0151] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0152] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0153] The memory 4003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.
[0154] The memory 4003 is used to store the application code (computer program) for executing the solution of the present invention, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the application code stored in the memory 4003 to implement the content shown in the above method embodiment.
[0155] The electronic device may also be a terminal device. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0156] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding contents of the aforementioned method embodiment.
[0157] According to another aspect of the present invention, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the implementation modes of the above-mentioned various embodiments.
[0158] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0159] It should be understood that the flow charts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the module, the program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0160] The computer-readable storage medium provided by the embodiment of the present invention may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0161] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0162] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the disclosure scope involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) by each other.
Claims
1. A method for identifying illegally operated vehicles, characterized in that: The following steps are involved: Acquire a vehicle attribute feature set of a vehicle to be identified and a target region, wherein the vehicle attribute feature set includes at least one vehicle attribute feature; For each of the vehicle attribute features, determine the regional dynamic change feature corresponding to the vehicle attribute feature at the target time of the vehicle to be identified according to the vehicle attribute feature, the target time is the time required for the vehicle to be identified to travel to the target area, and the regional dynamic change feature is a feature that characterizes the change of the vehicle attribute feature of the vehicle to be identified during the movement; According to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics, the identification result of the vehicle to be identified is identified, and the identification result is a normally operated vehicle or an illegally operated vehicle; For each of the vehicle attribute features, determining, based on the vehicle attribute features, the regional dynamic change features corresponding to the vehicle attribute features of the to-be-identified vehicle at the target time, includes: Dividing the target time into a plurality of time slices; For each of the vehicle attribute features, the LPC spectrum features corresponding to the vehicle attribute features of the vehicle to be identified at each time slice are determined through LPC coding according to the vehicle attribute features, and the LPC spectrum features are used as the regional dynamic change features corresponding to the vehicle attribute features.
2. The method according to claim 1, characterized in that: The vehicle attribute feature set is determined in the following manner: Acquire the initial set of vehicles to be identified, wherein the number of vehicle attribute features in the initial set is not less than the number of vehicle attribute features in the vehicle attribute feature set; Determining a weight of each vehicle attribute feature in the initial set according to each vehicle attribute feature in the initial set; According to the weight of each of the vehicle attribute features in the initial set and a preset threshold, each of the vehicle attribute features in the initial set is screened to obtain the vehicle attribute feature set.
3. The method according to claim 2, characterized in that The weight of each of the vehicle attribute features in the initial set is determined in the following manner: Obtaining target model parameters corresponding to when a loss function of a recognition model is minimized, wherein the recognition model is a model for identifying an identity recognition result of the vehicle based on an initial set of vehicles; The weight of each of the vehicle attribute features in the initial set is determined according to the target model parameters.
4. The method according to claim 3, characterized in that: The target model parameters are determined in the following way: Acquire training samples, wherein the training samples include a sample vehicle attribute feature set of multiple sample vehicles, each of the sample vehicle attribute feature sets includes multiple vehicle attribute features, each of the sample vehicles corresponds to a classification label, and for each of the sample vehicles, the classification label represents a real identity recognition result of the sample vehicle; Training the initial model according to the training samples to obtain a prediction recognition result for each of the sample vehicles; Determining the loss function value of the initial model according to each of the prediction recognition results and each of the classification labels; The initial model corresponding to the minimum loss function value is used as the recognition model, and the model parameters of the initial model corresponding to the minimum loss function value are used as the target model parameters.
5. The method according to any one of claims 1 to 4, characterized in that The identifying result of the vehicle to be identified according to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics includes: According to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics, the identity recognition result of the vehicle to be identified is obtained through the pre-trained LSTM model.
6. A device for identifying illegally operated vehicles, characterized in that: include: A data acquisition module, used to acquire a vehicle attribute feature set and a target region of a vehicle to be identified, wherein the vehicle attribute feature set includes at least one vehicle attribute feature; A feature determination module is used to determine, for each of the vehicle attribute features, a regional dynamic change feature corresponding to the vehicle attribute feature at a target time for the vehicle to be identified, according to the vehicle attribute feature, wherein the target time is the time required for the vehicle to be identified to travel to the target area, and the regional dynamic change feature is a feature that characterizes the change of the vehicle attribute feature of the vehicle to be identified during the movement; An identification module, used to identify the identity recognition result of the vehicle to be identified according to the regional dynamic change characteristics corresponding to each of the vehicle attribute characteristics, and the identity recognition result is a normal operating vehicle or an illegally operated vehicle; For each of the vehicle attribute features, the feature determination module is specifically configured to: Dividing the target time into a plurality of time slices; For each of the vehicle attribute features, the LPC spectrum features corresponding to the vehicle attribute features of the vehicle to be identified at each time slice are determined through LPC coding according to the vehicle attribute features, and the LPC spectrum features are used as the regional dynamic change features corresponding to the vehicle attribute features.
7. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
