Passenger number determination method and device of vehicle, equipment and medium
By acquiring and preprocessing the channel state information on the vehicle, the model is trained to determine the number of passengers, which solves the problem of inaccurate data measurement in the existing technology, achieves more accurate passenger counting, and is suitable for a variety of application scenarios.
Patent Information
- Application Number
- CN202410616367.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-09-06
AI Technical Summary
Existing vehicle passenger counting methods have problems with inaccurate data measurement, which affects counting results. In particular, crowd counting technology based on signal strength indicators (RSSI) lacks robustness and scalability due to multipath interference and environmental brightness sensitivity.
By setting up a data acquisition unit to obtain the initial channel state information on the vehicle, perform preprocessing and data enhancement to form a training set, train the model based on the channel state information (CSI) to determine the number of passengers, and use the fine-grained features of CSI to improve counting accuracy , and summarize the results in the case of multiple data acquisition units to reduce bias.
It achieves more accurate passenger counting, utilizes the diversity of channel state information to improve overall performance, reduces the bias of a single classifier method, and is suitable for a variety of application scenarios.
Smart Images

Figure CN118606701A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of traffic management, and in particular to a method, device, equipment and medium for determining the number of passengers of a vehicle. Background Art
[0002] Passenger counting is crucial in various applications, including optimization of vehicle scheduling and assessment of traffic capacity. Existing people counting methods can be mainly divided into two categories: device-based counting and device-free counting. Device-based methods usually require users to carry sensors all the time to achieve accurate detection, which is inconvenient for users. Device-free counting methods can be further divided into three subcategories: non-image sensor-based counting, such as pressure sensors and infrared sensors, image-based counting, and radio frequency (RF)-based counting. Non-image sensor-based counting methods usually suffer from NLOS (non-line-of-sight) and frequent false alarm problems, which degrade their detection performance for multiple individuals. Image-based techniques have been used for indoor and outdoor crowd counting for more than a decade. However, several limiting factors restrict the application scenarios of such methods, such as privacy leakage issues, non-line-of-sight (NLOS) issues, and sensitivity to ambient brightness, which makes it unsuitable for some application scenarios focusing on long-term and privacy-conscious sensing tasks. Signal strength indicator (RSSI)-based crowd counting techniques have shown promise, but due to some limitations such as multipath interference, RSSI-based crowd counting techniques currently lack the robustness and scalability for accurate real-world occupancy measurements. At the same time, because the RSSI measurement is the total received power at the receiver, multipath fading usually distorts the RSSI measurement, causing inaccurate data measurement and affecting the counting results. Summary of the invention
[0003] Based on this, it is necessary to propose a method, device, equipment and medium for determining the number of passengers in a vehicle in order to address the technical problem of inaccurate data measurement in the prior art that affects the counting results.
[0004] In a first aspect, a method for determining the number of passengers of a vehicle is provided, the method comprising:
[0005] Acquiring initial channel state information on the target vehicle through a data acquisition unit disposed on the target vehicle;
[0006] Preprocessing the initial channel state information to obtain target channel state information;
[0007] The target channel state information is used as time series data, and data enhancement is performed on the time series data by a cross-time domain window clipping method to obtain a target training set;
[0008] The preset model is trained based on the target training set to obtain a target model, and the number of passengers on the target transportation vehicle is determined based on the target model.
[0009] Exemplarily, the data acquisition unit is used to collect channel state information derived from wireless signals and broadcasted by a router (AP), wherein the channel state information (CSI) and the signal strength indicator (RSSI) are two characteristics of the radio signal, wherein the signal strength indicator (RSSI) only provides coarse-grained information, while the channel state information (CSI) is a more fine-grained feature including amplitude and phase details across multiple subcarriers, making the channel state information (CSI) more sensitive to slight environmental changes.
[0010] Specifically, a control transmission unit for sending a control message to the AP to generate a wireless signal containing CSI data is provided corresponding to the data collection unit.
[0011] Optionally, the step of acquiring the initial channel state information on the target vehicle by means of a data acquisition unit disposed on the target vehicle comprises:
[0012] When the number of the data acquisition unit is 1, first channel state data in a preset data format is acquired on the target vehicle, and a first channel state matrix is determined based on the first channel state data, and the first channel state matrix is used as the channel state information;
[0013] When the number of the data acquisition units is greater than 1, the second channel state data collected by each data acquisition unit is acquired to obtain a second channel state data set, a second channel state matrix set is determined according to the second channel state data set, and the second channel state matrix set is used as the channel state information.
[0014] Optionally, the step of preprocessing the initial channel state information to obtain target channel state information includes:
[0015] Performing spatial diversity preprocessing on the channel state information to obtain first diversity data;
[0016] Performing a noise reduction preprocessing on the first diversity data to obtain second diversity data;
[0017] The second diversity data is pre-processed by time diversity processing to obtain the target channel state information.
[0018] Optionally, the step of performing the noise reduction processing in the preprocessing on the second diversity data to obtain the target channel state information includes:
[0019] According to the elimination algorithm used in the noise reduction process, the second diversity data is subjected to a preset subcarrier elimination process to obtain initial channel state information, wherein the preset subcarrier includes at least one of a null subcarrier and a protection subcarrier;
[0020] Acquiring a gain factor of the target channel state information according to a prediction algorithm adopted by the noise reduction processing;
[0021] The gain factor is multiplied by the initial channel state information to obtain the target channel state information.
[0022] Optionally, the step of taking the target channel state information as time series data and performing data enhancement on the time series data by a cross-time domain window clipping method to obtain a target training set further includes:
[0023] When the number of the data acquisition units is 1, the target channel state information is used as time series data, and the target channel state information is segmented according to the segmentation time and the sliding window time of the cross-time domain window clipping method to obtain a first segmented data set, so as to complete the step of data enhancement of the target channel state information, wherein the sliding window time is less than the segmentation time;
[0024] Using the first segmented data set as the target training set;
[0025] When the number of the data acquisition units is greater than 1, the target channel state information is used as time series data, and the target channel state information is segmented according to the segmentation time and the sliding window time of the cross-time domain window clipping method to obtain a second segmented data set, so as to complete the step of data enhancement of the target channel state information, wherein the sliding window time is less than the segmentation time;
[0026] The second segmented data set is used as the target training set.
[0027] Optionally, the step of training a preset model based on the target training set to obtain a target model includes:
[0028] Based on the target training set and the optimizer with preset parameters, at least two preset models are iteratively trained with integrated learning to obtain a first model with a preset number of iterations, wherein the preset model is an ultra-lightweight architecture model that decays the learning rate through a cosine function and calculates the training loss through a cross entropy loss function;
[0029] Evaluate the first model using a preset evaluation index to obtain evaluation data;
[0030] If the evaluation data meets the preset conditions, the first model is used as the target model;
[0031] If the evaluation data does not meet the preset conditions, the optimizer based on the target training set and preset parameters is continued to perform iterative training on the initial model.
[0032] Optionally, the method further includes:
[0033] Acquire actual channel state information on the target vehicle, and determine source data of the actual channel state information;
[0034] If the source data is 1, the actual channel state information is input into the target model to obtain the number of passengers on the target vehicle;
[0035] If the source data is greater than 1, actual channel state information from different sources is input into the target model respectively to obtain recognition results for each actual channel state information;
[0036] The average distribution probability of each recognition result is calculated, and the recognition result with the highest average distribution probability is used as the number of passengers on the target transportation vehicle.
[0037] In a second aspect, a device for determining the number of passengers of a vehicle is provided, the device comprising:
[0038] A data acquisition module, used to acquire initial channel state information on the target vehicle through a data acquisition unit arranged on the target vehicle;
[0039] A preprocessing module, used to preprocess the initial channel state information to obtain target channel state information;
[0040] A data enhancement module, used to take the target channel state information as time series data, and perform data enhancement on the time series data by a cross-time domain window clipping method to obtain a target training set;
[0041] The training and reasoning module is used to train a preset model based on the target training set to obtain a target model, and determine the number of passengers on the target transportation vehicle based on the target model.
[0042] In a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for determining the number of passengers of a vehicle when executing the computer program.
[0043] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for determining the number of passengers of a vehicle are implemented.
[0044] The present application obtains initial channel state information on the target vehicle through a data acquisition unit disposed on the target vehicle; preprocesses the initial channel state information to obtain target channel state information; uses the target channel state information as time series data, and performs data enhancement on the time series data through a cross-time domain window clipping method to obtain a target training set; trains a preset model based on the target training set to obtain a target model, and determines the number of passengers on the target vehicle based on the target model. The channel state information in the radio signal is used, and the diversity of the channel state information is utilized to improve the overall passenger counting performance, and the sensitive characteristics of the channel state information are relied upon to make the passenger counting more accurate. The initial channel state information on the target vehicle is obtained through a data acquisition unit disposed on the target vehicle. When multiple data acquisition units are disposed, the results from the multiple data acquisition units can also be aggregated to provide a set-based inference about the number of passengers, which can reduce the deviation associated with a single classifier method. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only 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.
[0046] in:
[0047] Figure 1 A diagram of an application environment of a method for determining the number of passengers of a transportation vehicle in one embodiment;
[0048] Figure 2 A flowchart of a method for determining the number of passengers of a transportation vehicle in one embodiment;
[0049] Figure 3 A schematic diagram of data transmission in one embodiment;
[0050] Figure 4 A structural block diagram of a device for determining the number of passengers in a vehicle in one embodiment;
[0051] Figure 5 is a structural block diagram of a computer device in one embodiment;
[0052] Figure 6It is a structural block diagram of a computer device in another embodiment. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] The method for determining the number of passengers in a vehicle provided by the embodiment of the present invention can be applied in the following aspects: Figure 1 In an application environment, a client 110 communicates with a server 120 through a network, and the server 120 calculates the number of passengers on a vehicle. The server 120 obtains initial channel state information on a target vehicle through a data acquisition unit provided on the target vehicle; preprocesses the initial channel state information to obtain target channel state information; uses the target channel state information as time series data, and performs data enhancement on the time series data through a cross-time domain window clipping method to obtain a target training set; trains a preset model based on the target training set to obtain a target model, and determines the number of passengers on the target vehicle based on the target model, and sends the number of passengers to a cloud server 130 to display the number of passengers.
[0055] Similarly, when the computing pressure on the server 120 is relatively high, the client 110 can also be used to calculate the number of passengers on a vehicle, that is, the client 110 obtains the initial channel state information on the target vehicle forwarded by the server 120 through a data acquisition unit disposed on the target vehicle; preprocesses the initial channel state information to obtain target channel state information; uses the target channel state information as time series data, and performs data enhancement on the time series data through a cross-time domain window cropping method to obtain a target training set; trains a preset model based on the target training set to obtain a target model, and determines the number of passengers on the target vehicle based on the target model.
[0056] The client 110 may be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices. The server 120 may be implemented by an independent server or a server cluster consisting of multiple servers.
[0057] The present invention is described in detail below through specific embodiments.
[0058] See also Figure 2 As shown, Figure 2 A flow chart of a method for determining the number of passengers of a vehicle provided in an embodiment of the present invention includes the following steps:
[0059] S101, acquiring initial channel state information on a target vehicle through a data acquisition unit disposed on the target vehicle;
[0060] Exemplarily, a control signal is sent to the wireless access node of the router on the target vehicle through a preset transmitting unit, so that the router on the target vehicle sends a wireless signal (WiFi signal) with channel state information. The data acquisition unit receives the wireless signal and obtains the initial channel state information on the target vehicle.
[0061] Exemplarily, the data acquisition unit is used to collect channel state information derived from wireless signals broadcast by routers, wherein the channel state information (CSI) and the signal strength indicator (RSSI) are two characteristics of radio signals, wherein the signal strength indicator (RSSI) only provides coarse-grained information, while the channel state information (CSI) is a more fine-grained feature including amplitude and phase details across multiple subcarriers, making the channel state information (CSI) more sensitive to slight environmental changes.
[0062] Specifically, the preset transmitting unit is a control transmitting unit corresponding to the data acquisition unit and configured to send a control message to a wireless access node to generate a wireless signal containing CSI data.
[0063] S102, preprocessing the initial channel state information to obtain target channel state information;
[0064] Exemplarily, in an indoor environment, there may be a large number of reflectors and scatterers, resulting in a high possibility of deep fading in the communication channel. Therefore, the possibility of measurement error of the channel state information is very high. The measurement error of the channel state information can be reduced by preprocessing. The measurement error of the channel state information can be reduced by numerical correction methods, for example, correcting the channel state information with large measurement error; the measurement error of the channel state information can also be reduced by eliminating the channel state information with large measurement error.
[0065] Exemplarily, since there are often obstacles between the data acquisition unit and the preset transmitting unit, as well as noise and interference from overlapping channels, the propagation process of the wireless signal (WiFi signal) with channel state information is a continuous change. Preprocessing is used to ensure that each channel state information element collected by different data acquisition units represents the same time domain and frequency domain channel measurement, thereby ensuring the accuracy of the wireless signal with channel state information.
[0066] Exemplarily, the channel state information is subjected to signal outlier removal and noise reduction processing through preprocessing to ensure the quality of the channel state information.
[0067] S103, taking the target channel state information as time series data, and performing data enhancement on the time series data by a cross-time domain window clipping method to obtain a target training set;
[0068] Exemplarily, data enhancement is an effective method to solve the overfitting problem, cross-time window cropping is a basic data enhancement method for time series data, and the target channel state information can also be regarded as time series data, so the cross-time window cropping method is used to increase the amount of target channel state information.
[0069] Exemplarily, through data enhancement, the target training set is expanded, thereby making the target training set richer, and when the target training set is used to train the model, the accuracy of the trained model is guaranteed.
[0070] Exemplarily, the time series data is data collected at different times, collected in chronological order, and is used to describe the changes of phenomena over time, reflecting the state or degree of change of a thing, phenomenon, etc. over time.
[0071] S104: training a preset model based on the target training set to obtain a target model, and determining the number of passengers on the target transportation vehicle based on the target model.
[0072] Initial channel state information on the target vehicle is obtained by a data acquisition unit disposed on the target vehicle; the initial channel state information is preprocessed to obtain target channel state information; the target channel state information is used as time series data, and the time series data is data enhanced by a cross-time domain window clipping method to obtain a target training set; a preset model is trained based on the target training set to obtain a target model, and the number of passengers on the target vehicle is determined based on the target model. By using the channel state information in the radio signal, the diversity of the channel state information can be utilized to improve the overall passenger counting performance. The results from multiple data acquisition units can also be aggregated to provide set-based inferences about the number of passengers, which can reduce the bias associated with a single classifier approach.
[0073] In a possible implementation manner, the step of acquiring initial channel state information on the target vehicle by means of a data acquisition unit disposed on the target vehicle includes:
[0074] When the number of the data acquisition unit is 1, first channel state data in a preset data format is acquired on the target vehicle, and a first channel state matrix is determined based on the first channel state data, and the first channel state matrix is used as the channel state information;
[0075] When the number of the data acquisition units is greater than 1, the second channel state data collected by each data acquisition unit is acquired to obtain a second channel state data set, a second channel state matrix set is determined according to the second channel state data set, and the second channel state matrix set is used as the channel state information.
[0076] Exemplarily, the process of acquiring the initial channel state information on the target vehicle is a process of collecting K data packets transmitted between the data acquisition unit and the preset transmission unit. The combination of the data acquisition unit and the preset transmission unit can be regarded as a multiple-input multiple-output (MIMO) orthogonal frequency division multiplexing (OFDM) system, and the preset data format of the multiple-input multiple-output (MIMO) orthogonal frequency division multiplexing (OFDM) system has the following parameters: transmitter antenna M, receiver antenna N and subcarrier Z. Therefore, the size of the channel state matrix is usually expressed as M*N*K*Z, where Z is the total number of subcarriers per unit channel state information.
[0077] Exemplarily, if the Wi-Fi (wireless signal) chip of the receiver has only one antenna, the size of the channel state matrix is expressed as 1*K*Z.
[0078] Exemplarily, each subcarrier of the channel state signal and the channel state matrix of one antenna of the channel state signal can be expressed as equations:
[0079]
[0080]
[0081] Where e is the exponential constant, θ kz represents the phase response of the zth subcarrier in the kth received data packet, |h kz | represents the amplitude of the zth subcarrier in the kth received data packet.
[0082] In a possible implementation manner, the step of preprocessing the initial channel state information to obtain target channel state information includes:
[0083] Performing spatial diversity preprocessing on the channel state information to obtain first diversity data;
[0084] Performing a noise reduction preprocessing on the first diversity data to obtain second diversity data;
[0085] The second diversity data is pre-processed by time diversity processing to obtain the target channel state information.
[0086] Exemplarily, due to the lack of control over the configuration of network nodes (APs) in the target environment, in order to ensure that the orthogonal frequency division multiplexing symbols used to extract channel state information estimation traverse multiple signal paths, spatial diversity processing is used to ensure that each orthogonal frequency division multiplexing symbol path fades independently, thereby ensuring the reliability of the channel state information measurement even if some paths are in a deep fade state.
[0087] For example, since there are often obstacles between the data acquisition unit and the preset transmitting unit, as well as noise and interference from overlapping channels, the propagation process of the wireless signal (WiFi signal) with channel state information is a continuous change. Time diversity processing is used to ensure that a continuous channel state information element collected by different data acquisition units represents the same measurement target, thereby ensuring the accuracy of the wireless signal with channel state information and improving robustness.
[0088] For example, Figure 3 As shown, the communication process for collecting channel state information is described. The transmitter (Pinger, preset transmitting unit) assumes the responsibility of transmitting control messages to the AP to facilitate the generation of wireless signals containing channel state information. At the same time, Raspberry Pi (Raspberry Pi 4B) is used as a channel state information collector (data acquisition unit) to extract channel state information from different locations. In order to ensure seamless transmission of information, Ping messages are sent from Pinger to AP, and then Pong messages are exchanged from AP to the channel state information collector (data acquisition unit).
[0089] On the Raspberry Pi (Raspberry Pi 4B) under the target operating system (Raspberry Pi OS), use the latest version of the firmware (nexmon_csi firmware) framework and set the firmware (nexmon_csi firmware) framework to monitor mode.
[0090] Specifically, the following filter parameters were used during configuration: channel 36 / 80, core number 1, default mask (NSSmask 1), and media access control address of Huawei AP. To establish a connection, each pinger (default transmitting unit) was paired with a Huawei AP. To minimize signal interference, a separate laptop was connected to all Raspberry Pis (Raspberry Pi 4B) via the first default protocol (SSH protocol), using different 2.4GHz channels for data control. The AP's 5GHz channel operates on channel 36 with a bandwidth of 80MHz, which complies with the second default protocol (802.11ac protocol).
[0091] It should be noted that the specific AP model used is not limited as long as it supports the 802.11ac protocol. Finally, the Pinger connects to the 5GHz channel of the AP to generate a data stream, allowing the data acquisition unit in monitoring mode to capture channel status information. Each preset transmitting unit is configured to send ping messages to the AP at the same time at a rate of 1000Hz.
[0092] It is also configured to collect channel state information from multiple data acquisition units simultaneously to substantially ensure that each channel state information collected across different receivers represents the same time domain and frequency domain channel measurement.
[0093] In a possible implementation manner, the step of performing the noise reduction processing in the preprocessing on the second diversity data to obtain the target channel state information includes:
[0094] According to the elimination algorithm adopted by the noise reduction process, performing a preset subcarrier elimination process on the second diversity data to obtain initial channel state information, wherein the preset subcarrier includes at least one of a null subcarrier and a protection subcarrier;
[0095] Acquiring a gain factor of the target channel state information according to a prediction algorithm adopted by the noise reduction processing;
[0096] The gain factor is multiplied by the initial channel state information to obtain the target channel state information.
[0097] For example, by conducting experiments in a single-passenger scenario, experimental data is obtained, and the experimental data is analyzed to show that the amplitude of the null subcarrier is very high, which will introduce abnormal values in the channel state information and may force the model to learn to pay more attention to these values, resulting in poor performance. At the same time, the channel state information usually contains severe noise introduced by the automatic gain control (AGC) factor, and the channel state information affected by the AGC factor cannot accurately reflect the real attenuation experienced by the channel.
[0098] Exemplarily, according to the elimination algorithm in the noise reduction processing, the second diversity data is subjected to preset subcarrier elimination processing, the subcarriers introducing abnormal values are eliminated, and the initial channel state information is obtained, and then the AGC factor is estimated using an AGC factor prediction method to obtain the inverse of the AGC factor (gain factor), and then the gain factor (AGC factor) of the target channel state information is obtained according to the inverse of the AGC factor (gain factor).
[0099] For example, the formula is:
[0100]
[0101] The gain factor is multiplied by the initial channel state information to obtain the target channel state information, wherein: Refers to the channel state information of the i-th subcarrier in the k-th group extracted, Z is the total number of subcarriers, RSSI k represents the received signal strength of the kth packet in dBm, which is converted to Mw for consistency, i.e., the power of the rescaled channel state information will match its corresponding received signal strength value, effectively canceling out the AGC.
[0102] In a possible implementation manner, the step of taking the target channel state information as time series data and performing data enhancement on the time series data by a cross-time domain window clipping method to obtain a target training set further includes:
[0103] When the number of the data acquisition units is 1, the target channel state information is used as time series data, and the target channel state information is segmented according to the segmentation time and the sliding window time of the cross-time domain window clipping method to obtain a first segmented data set, so as to complete the step of data enhancement of the target channel state information, wherein the sliding window time is less than the segmentation time;
[0104] Using the first segmented data set as the target training set;
[0105] When the number of the data acquisition units is greater than 1, the target channel state information is used as time series data, and the target channel state information is segmented according to the segmentation time and the sliding window time of the cross-time domain window clipping method to obtain a second segmented data set, so as to complete the step of data enhancement of the target channel state information, wherein the sliding window time is less than the segmentation time;
[0106] The second segmented data set is used as the target training set.
[0107] Exemplarily, to utilize the amplitude response of the target channel state information, the amplitude data of the target channel state information is segmented using a sliding window of duration Ts, thereby creating segments each of duration Tw to increase the amount of target channel state information collected.
[0108] Exemplarily, Ts is selected to be shorter than Tw, that is, the sliding window time is less than the segmentation time, resulting in the segmented data of consecutive segments having overlapping areas, thereby enhancing the data set by increasing the number of samples available for training, and ensuring comprehensive coverage of the changes in target channel state information caused by human fidgeting in different time periods through the overlapping areas.
[0109] Exemplarily, when a total of about 120,000 data packets are obtained, the segmentation window Tw is set to 100, the sliding window Ts is set to 50, and 2390 segmented data with a dimension of 100*242 are obtained.
[0110] In a possible implementation, the step of training a preset model based on the target training set to obtain a target model includes:
[0111] Based on the target training set and the optimizer with preset parameters, at least two preset models are iteratively trained with integrated learning to obtain a first model with a preset number of iterations, wherein the preset model is an ultra-lightweight architecture model that decays the learning rate through a cosine function and calculates the training loss through a cross entropy loss function;
[0112] Evaluate the first model using a preset evaluation index to obtain evaluation data;
[0113] If the evaluation data meets the preset conditions, the first model is used as the target model;
[0114] If the evaluation data does not meet the preset conditions, the optimizer based on the target training set and preset parameters is continued to perform iterative training on the initial model.
[0115] For example, the optimizer with preset parameters (AdamW optimizer) has a batch size of 64 and a learning rate of 10 -3 , weight decay is 10 -6 , which is used to optimize model parameters during the training phase. The ultra-lightweight architecture model (CosineAnnealingLR scheduler) includes a method for decaying the learning rate through a cosine function and using a cross-entropy loss function with label smoothing of 0.1 to calculate the training loss.
[0116] Exemplarily, the preset evaluation index includes at least one of accuracy, F1 score (F1-score), and model evaluation index (AUC), to perform a more comprehensive performance evaluation of the first model.
[0117] In a possible implementation, the method further includes:
[0118] Acquire actual channel state information on the target vehicle, and determine source data of the actual channel state information;
[0119] If the source data is 1, the actual channel state information is input into the target model to obtain the number of passengers on the target vehicle;
[0120] If the source data is greater than 1, actual channel state information from different sources is input into the target model respectively to obtain recognition results for each actual channel state information;
[0121] The average distribution probability of each recognition result is calculated, and the recognition result with the highest average distribution probability is used as the number of passengers on the target transportation vehicle.
[0122] Exemplarily, if the source data is greater than 1, that is, the channel state information collected by data acquisition units at different locations is obtained, the actual channel state information from different sources is respectively input into the target model to obtain recognition results for each actual channel state information, and the average distribution probability of each recognition result is calculated, and the recognition result with the highest average distribution probability is used as the number of passengers on the target vehicle.
[0123] In a possible implementation, Figure 4 As shown, a device for determining the number of passengers of a vehicle, the device comprising:
[0124] The data acquisition module 201 is used to acquire the initial channel state information on the target vehicle through a data acquisition unit arranged on the target vehicle;
[0125] A preprocessing module 202, configured to preprocess the initial channel state information to obtain target channel state information;
[0126] A data enhancement module 203 is used to use the target channel state information as time series data, and perform data enhancement on the time series data by a cross-time domain window clipping method to obtain a target training set;
[0127] The training and reasoning module 204 is used to train the preset model based on the target training set to obtain a target model, and determine the number of passengers on the target transportation vehicle based on the target model.
[0128] In a possible implementation manner, the data acquisition module 201 is used to:
[0129] When the number of the data acquisition unit is 1, first channel state data in a preset data format is acquired on the target vehicle, and a first channel state matrix is determined based on the first channel state data, and the first channel state matrix is used as the channel state information;
[0130] When the number of the data acquisition units is greater than 1, the second channel state data collected by each data acquisition unit is acquired to obtain a second channel state data set, a second channel state matrix set is determined according to the second channel state data set, and the second channel state matrix set is used as the channel state information.
[0131] In a possible implementation manner, the data acquisition module 201 is used to:
[0132] Performing spatial diversity preprocessing on the channel state information to obtain first diversity data;
[0133] Performing a noise reduction preprocessing on the first diversity data to obtain second diversity data;
[0134] The second diversity data is pre-processed by time diversity processing to obtain the target channel state information.
[0135] In a possible implementation manner, the preprocessing module 202 is used to:
[0136] According to the elimination algorithm adopted by the noise reduction process, performing a preset subcarrier elimination process on the second diversity data to obtain initial channel state information, wherein the preset subcarrier includes at least one of a null subcarrier and a protection subcarrier;
[0137] Acquiring a gain factor of the target channel state information according to a prediction algorithm adopted by the noise reduction processing;
[0138] The gain factor is multiplied by the initial channel state information to obtain the target channel state information.
[0139] In a possible implementation manner, the data enhancement module 203 is used to:
[0140] When the number of the data acquisition units is 1, the target channel state information is used as time series data, and the target channel state information is segmented according to the segmentation time and the sliding window time of the cross-time domain window clipping method to obtain a first segmented data set, so as to complete the step of data enhancement of the target channel state information, wherein the sliding window time is less than the segmentation time;
[0141] Using the first segmented data set as the target training set;
[0142] When the number of the data acquisition units is greater than 1, the target channel state information is used as time series data, and the target channel state information is segmented according to the segmentation time and the sliding window time of the cross-time domain window clipping method to obtain a second segmented data set, so as to complete the step of data enhancement of the target channel state information, wherein the sliding window time is less than the segmentation time;
[0143] The second segmented data set is used as the target training set.
[0144] In a possible implementation, the training reasoning module 204 is used to:
[0145] Based on the target training set and the optimizer with preset parameters, at least two preset models are iteratively trained with integrated learning to obtain a first model with a preset number of iterations, wherein the preset model is an ultra-lightweight architecture model that decays the learning rate through a cosine function and calculates the training loss through a cross entropy loss function; x
[0146] Evaluate the first model using a preset evaluation index to obtain evaluation data;
[0147] If the evaluation data meets the preset conditions, the first model is used as the target model;
[0148] If the evaluation data does not meet the preset conditions, the optimizer based on the target training set and preset parameters is continued to perform iterative training on the initial model.
[0149] In a possible implementation, the training reasoning module 204 is used to:
[0150] Acquire actual channel state information on the target vehicle, and determine source data of the actual channel state information;
[0151] If the source data is 1, the actual channel state information is input into the target model to obtain the number of passengers on the target vehicle;
[0152] If the source data is greater than 1, actual channel state information from different sources is input into the target model respectively to obtain recognition results for each actual channel state information;
[0153] The average distribution probability of each recognition result is calculated, and the recognition result with the highest average distribution probability is used as the number of passengers on the target transportation vehicle.
[0154] This embodiment obtains initial channel state information on the target vehicle through a data acquisition unit disposed on the target vehicle; preprocesses the initial channel state information to obtain target channel state information; uses the target channel state information as time series data, and performs data enhancement on the time series data through a cross-time domain window clipping method to obtain a target training set; trains a preset model based on the target training set to obtain a target model, and determines the number of passengers on the target vehicle based on the target model. By using the channel state information in the radio signal, the diversity of the channel state information can be utilized to improve the overall passenger counting performance. The results from multiple data acquisition units can also be aggregated to provide set-based inferences about the number of passengers, which can reduce the bias associated with a single classifier approach.
[0155] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external client via a network connection. When the computer program is executed by the processor, the functions or steps on the service side of a method for determining the number of passengers of a vehicle are implemented.
[0156] In one embodiment, a computer device is provided. The computer device may be a client, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server through a network connection. When the computer program is executed by the processor, the functions or steps on the client side of a method for determining the number of passengers of a vehicle are implemented.
[0157] In one embodiment, a motor control device is proposed, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: acquiring initial channel state information on a target vehicle through a data acquisition unit disposed on the target vehicle; preprocessing the initial channel state information to obtain target channel state information; using the target channel state information as time series data, and performing data enhancement on the time series data through a cross-time domain window clipping method to obtain a target training set; training a preset model based on the target training set to obtain a target model, and determining the number of passengers on the target vehicle based on the target model.
[0158] This embodiment obtains initial channel state information on the target vehicle through a data acquisition unit disposed on the target vehicle; preprocesses the initial channel state information to obtain target channel state information; uses the target channel state information as time series data, and performs data enhancement on the time series data through a cross-time domain window clipping method to obtain a target training set; trains a preset model based on the target training set to obtain a target model, and determines the number of passengers on the target vehicle based on the target model. By using the channel state information in the radio signal, the diversity of the channel state information can be utilized to improve the overall passenger counting performance. The results from multiple data acquisition units can also be aggregated to provide set-based inferences about the number of passengers, which can reduce the bias associated with a single classifier approach.
[0159] In one embodiment, a computer-readable storage medium is proposed, which stores a computer program. When the computer program is executed by a processor, the following steps are implemented: obtaining initial channel state information on the target vehicle through a data acquisition unit arranged on the target vehicle; preprocessing the initial channel state information to obtain target channel state information; using the target channel state information as time series data, and performing data enhancement on the time series data through a cross-time domain window clipping method to obtain a target training set; training a preset model based on the target training set to obtain a target model, and determining the number of passengers on the target vehicle based on the target model.
[0160] This embodiment obtains initial channel state information on the target vehicle through a data acquisition unit disposed on the target vehicle; preprocesses the initial channel state information to obtain target channel state information; uses the target channel state information as time series data, and performs data enhancement on the time series data through a cross-time domain window clipping method to obtain a target training set; trains a preset model based on the target training set to obtain a target model, and determines the number of passengers on the target vehicle based on the target model. By using the channel state information in the radio signal, the diversity of the channel state information can be utilized to improve the overall passenger counting performance. The results from multiple data acquisition units can also be aggregated to provide set-based inferences about the number of passengers, which can reduce the bias associated with a single classifier approach.
[0161] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can refer to the relevant descriptions on the server side and the client side in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.
[0162] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0163] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0164] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for determining the number of passengers in a transportation vehicle, characterized in that: The method comprises: Acquiring initial channel state information on the target vehicle through a data acquisition unit disposed on the target vehicle; Preprocessing the initial channel state information to obtain target channel state information; The target channel state information is used as time series data, and data enhancement is performed on the time series data by a cross-time domain window clipping method to obtain a target training set; The preset model is trained based on the target training set to obtain a target model, and the number of passengers on the target transportation vehicle is determined based on the target model.
2. The method for determining the number of passengers in a vehicle according to claim 1, characterized in that: The step of acquiring the initial channel state information on the target vehicle by means of a data acquisition unit disposed on the target vehicle comprises: When the number of the data acquisition unit is 1, first channel state data in a preset data format is acquired on the target vehicle, and a first channel state matrix is determined based on the first channel state data, and the first channel state matrix is used as the channel state information; When the number of the data acquisition units is greater than 1, the second channel state data collected by each data acquisition unit is acquired to obtain a second channel state data set, a second channel state matrix set is determined according to the second channel state data set, and the second channel state matrix set is used as the channel state information.
3. The method for determining the number of passengers in a vehicle according to claim 1, characterized in that: The step of preprocessing the initial channel state information to obtain target channel state information includes: Performing spatial diversity preprocessing on the channel state information to obtain first diversity data; Performing a noise reduction preprocessing on the first diversity data to obtain second diversity data; The second diversity data is pre-processed by time diversity processing to obtain the target channel state information.
4. The method for determining the number of passengers in a vehicle according to claim 3, characterized in that: The step of performing pre-processing of noise reduction on the second diversity data to obtain the target channel state information comprises: According to the elimination algorithm adopted by the noise reduction process, performing a preset subcarrier elimination process on the second diversity data to obtain initial channel state information, wherein the preset subcarrier includes at least one of a null subcarrier and a protection subcarrier; Acquiring a gain factor of the target channel state information according to a prediction algorithm adopted by the noise reduction processing; The gain factor is multiplied by the initial channel state information to obtain the target channel state information.
5. The method for determining the number of passengers in a vehicle according to claim 1, characterized in that: The step of taking the target channel state information as time series data and performing data enhancement on the time series data by a cross-time domain window clipping method to obtain a target training set also includes: When the number of the data acquisition units is 1, the target channel state information is used as time series data, and the target channel state information is segmented according to the segmentation time and the sliding window time of the cross-time domain window clipping method to obtain a first segmented data set, so as to complete the step of data enhancement of the target channel state information, wherein the sliding window time is less than the segmentation time; Using the first segmented data set as the target training set; When the number of the data acquisition units is greater than 1, the target channel state information is used as time series data, and the target channel state information is segmented according to the segmentation time and the sliding window time of the cross-time domain window clipping method to obtain a second segmented data set, so as to complete the step of data enhancement of the target channel state information, wherein the sliding window time is less than the segmentation time; The second segmented data set is used as the target training set.
6. The method for determining the number of passengers in a vehicle according to claim 1, characterized in that: The step of training the preset model based on the target training set to obtain the target model includes: Based on the target training set and the optimizer with preset parameters, at least two preset models are iteratively trained with integrated learning to obtain a first model with a preset number of iterations, wherein the preset model is an ultra-lightweight architecture model that decays the learning rate through a cosine function and calculates the training loss through a cross entropy loss function; Evaluate the first model using a preset evaluation index to obtain evaluation data; If the evaluation data meets the preset conditions, the first model is used as the target model; If the evaluation data does not meet the preset conditions, the optimizer based on the target training set and preset parameters is continued to perform iterative training on the initial model.
7. The method for determining the number of passengers in a vehicle according to claim 1, characterized in that: The method further comprises: Acquire actual channel state information on the target vehicle, and determine source data of the actual channel state information; If the source data is 1, the actual channel state information is input into the target model to obtain the number of passengers on the target vehicle; If the source data is greater than 1, actual channel state information from different sources is input into the target model respectively to obtain recognition results for each actual channel state information; The average distribution probability of each recognition result is calculated, and the recognition result with the highest average distribution probability is used as the number of passengers on the target transportation vehicle.
8. A device for determining the number of passengers in a vehicle, characterized in that: The device comprises: A data acquisition module, used to acquire initial channel state information on the target vehicle through a data acquisition unit arranged on the target vehicle; A preprocessing module, used to preprocess the initial channel state information to obtain target channel state information; A data enhancement module, used to take the target channel state information as time series data, and perform data enhancement on the time series data by a cross-time domain window clipping method to obtain a target training set; The training and reasoning module is used to train a preset model based on the target training set to obtain a target model, and determine the number of passengers on the target transportation vehicle based on the target model.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for determining the number of passengers of a transportation vehicle as claimed in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for determining the number of passengers of a vehicle as claimed in any one of claims 1 to 7 are implemented.
