Data processing method for source coding based on correlation
By adopting a data processing method based on correlation source encoding in the parking space detection system, the problems of high power consumption and large data volume in the existing system are solved, and the data packet length is shortened and the transmission stability is improved, and the reliability and service life of the system are improved.
Patent Information
- Application Number
- CN202411807387.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-03-11
AI Technical Summary
The existing parking space detection system consumes a high power consumption during data transmission and the amount of data is transmitted, which affects the reliability and service life of the system.
The data processing method based on correlation source encoding is adopted, and the correlation of data is detected to encode, which shortens the packet length, reduces the energy consumption of information transmission, and increases the stability of transmission.
It greatly shortens the length of the data packet, reduces the energy consumption of information transmission, increases the stability of transmission, and improves the reliability and service life of the parking space detection system.
Smart Images

Figure CN119602912A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a data processing method for performing source coding based on correlation, which is applied to a parking space detection system. Background Art
[0002] With the development of smart transportation technology, the level of parking space intelligence is gradually improving, and the problem of parking difficulties in urban areas has been effectively alleviated. However, with the increase in network scale, higher requirements are put forward for reducing system costs, increasing stability and reliability. The existing parking space detection system adopts a shared system architecture. Only sensors are laid on the parking spaces, and the master control unit with edge computing and communication functions is shared by multiple parking spaces, and solar energy is used to power the system, which can greatly reduce the cost of data collection. Since multiple parking spaces share solar power supply, the energy consumption requirements of the system must be as low as possible. In addition, this type of parking space detection system adopts multi-parking space joint detection technology. The change of the state of a parking space requires not only one or more sensor detection values of the vehicle, but also the detection data of the sensors on the adjacent parking spaces to make a judgment. Therefore, the information of the adjacent parking spaces needs to be transmitted to the master control unit, so the overall power consumption will increase. At the same time, the master control unit needs to integrate the information of these parking spaces, so the sensor must send the original collected data to the master control unit, so the amount of data transmitted is also relatively large. Therefore, in this case, it is necessary to adopt source coding technology to shorten the transmission data length, reduce system power consumption, and increase transmission reliability.
[0003] Traditional source coding technology is based on the coding of general information, so it is relatively inefficient when applied to this system. However, the data collected by the geomagnetic sensor in this system is relevant when the parking space is in the same state, that is, when the parking space is occupied, the detected geomagnetic values are not particularly different, and the same is true when the parking space is vacant. Therefore, the present invention uses this correlation for encoding to greatly shorten the length of the data packet, thereby reducing system power consumption, increasing transmission reliability, and overall achieving the purpose of extending the system life and reducing the system use cost. Summary of the invention
[0004] In view of the deficiencies in the prior art, the present invention provides a data processing method for source coding based on correlation, which utilizes the correlation of detection data for encoding, compresses the sensor detection data packet length, reduces the energy consumption of information transmission, and increases the stability of transmission.
[0005] To achieve the above-mentioned purpose, the present invention provides the following technical solutions: a data processing method for source coding based on correlation, which uses a parking space detection device to collect parking space status data, pre-sets the same anchor value under the same parking space state in the detection device, calculates the difference between the original data under the current parking space state and the anchor value under this state, and obtains the correlation value, determines the anchor value used for the current parking space state through the correlation value, encodes and packages the data packet using the anchor value of the current parking space state, and sends it to a receiving device, which receives the data and unpacks the data packet, and obtains the original data after decoding the data.
[0006] Furthermore, the parking space status includes a parking space vacant state and a parking space occupied state, and processing the parking space status data includes the following steps: S1. The parking space detection device collects raw data and presets the parking space idle state anchor value and occupied state anchor value; S2. Calculate the difference between the original data of the idle state and the anchor value of the idle state to obtain an idle related value; Calculate the difference between the original data of the occupancy state and the anchor value of the occupancy state to obtain the occupancy-related value; S3, judging whether the idle correlation value is greater than the occupied correlation value, if the idle correlation value is greater than the occupied correlation value, proceeding to step S4; if the idle correlation value is less than the occupied correlation value, proceeding to step S5; S4, using the idle anchor value to encode and pack the data packet; S5, using the occupied anchor value to encode and pack the data packet; S6, sending the source-coded data packet to the master control unit; S7. The master control unit receives the source-coded data packet and obtains the original data after unpacking and decoding.
[0007] Furthermore, the initial value setting and updating of the idle state anchor value in step S1 includes the following steps: S201, setting an anchor value of the parking space idle state according to the initial parking space idle state value, and sending the anchor value to the main control unit; S202. During system operation, when the current parking space and the adjacent parking space are both idle, the current parking space status value and the anchor value in step S201 are averaged to obtain a new anchor value; the new anchor value is updated once locally and in the master control unit after averaging N times.
[0008] Furthermore, the initial value setting and updating of the occupancy state anchor value in step S1 includes the following steps: S211, setting an anchor value of the parking space occupancy state according to the initial parking space occupancy state value, and sending the anchor value to the main control unit; S212. During system operation, when the current parking space is occupied and its adjacent parking spaces are idle, the current parking space status value is averaged with the anchor value in step S211 to obtain a new anchor value; the anchor value is updated once locally and in the master control unit after averaging N times.
[0009] Furthermore, the new anchor value calculation formula is: M_N= (M*N+C) / (N+1), where M is the original average value, C is the currently read parking space status value, N is the current average number and is automatically accumulated, and M_N is the new anchor value.
[0010] Compared with the prior art, the data processing method for source coding based on correlation of the present invention has the following beneficial effects: Compared with the traditional source coding technology based on general information, the present invention uses the correlation of parking space detection data in the same state for source coding, which greatly shortens the length of the data packet, reduces the energy consumption of information transmission, increases the stability of transmission, and improves the reliability and service life of the parking space detection system. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 This is a diagram of the parking space detection system architecture used in the present invention; Figure 2 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0012] 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 only 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. Example
[0013] like Figure 1 The figure shows the parking space detection system architecture of this embodiment, in which the present invention is applied. The system adopts a shared system architecture and a multi-parking space joint detection technology. The determination of the change of the current parking space state needs to combine the detection data of multiple sensors of the current parking space and its adjacent parking spaces. The data of the current parking space and the adjacent parking spaces need to be transmitted to the master control unit at the same time. At the same time, the master control unit needs to integrate the information of these parking spaces, and the dynamic detection sensor belt and the state sensor need to send the original collected data to the master control unit.
[0014] A data processing method for source coding based on correlation in this embodiment uses a parking space detection device to collect parking space status data, pre-sets the same anchor value under the same parking space status in the detection device, calculates the difference between the original data under the current parking space status and the anchor value under this status, obtains the correlation value, determines the anchor value used for the current parking space status through the correlation value, encodes and packages the data packet using the anchor value of the current parking space status, and sends it to a receiving device. The receiving device receives the data and unpacks the data packet, and the original collected data can be obtained after data decoding.
[0015] See also Figure 2 Specifically, a data processing method for performing source coding based on correlation according to the present invention is used to process the parking space vacancy state and parking space occupancy state data in a parking space detection system, including the following steps: S1. Collect raw data through parking space detection equipment, and preset parking space idle state anchor value and occupied state anchor value; S2. Calculate the difference between the original data of the idle state and the anchor value of the idle state to obtain an idle related value; Calculate the difference between the original data of the occupancy state and the anchor value of the occupancy state to obtain the occupancy-related value; S3, judging whether the idle correlation value is greater than the occupied correlation value, if the idle correlation value is greater than the occupied correlation value, proceeding to step S4; if the idle correlation value is less than the occupied correlation value, proceeding to step S5; S4, using the idle anchor value to encode and pack the data packet; S5, using the occupied anchor value to encode and pack the data packet; S6, sending the source-coded data packet to the master control unit; S7. The master control unit receives the source-coded data packet and obtains the original data after unpacking and decoding.
[0016] In the above step S1, the initial value setting and maintenance method of the idle state anchor value is as follows: S201, when the system is installed, the system sets the geomagnetic value of the parking space status reading state detection sensor set by the debugging personnel as the anchor value when idle, and sends the anchor value to the main control unit; S202. When the system is running, each time when the parking space is empty and the adjacent parking space is also empty, the read geomagnetic value and the anchor value in step S201 are averaged, and the calculation formula is: M_N= (M*N+C) / (N+1), where M is the original average value, C is the currently read geomagnetic value, N is the current average number and is automatically accumulated, and M_N is the new average value, that is, the new anchor value. The anchor value is updated once locally and in the main control unit after averaging multiple times.
[0017] The initial value setting and maintenance method of the occupied state anchor value is similar to the initial value setting and maintenance method of the idle state anchor value. That is, in the above step S1, the initial value setting and maintenance method of the occupied state anchor value is as follows: S211. When the system is installed, the system sets the geomagnetic value of the parking space status reading status detection sensor set by the debugging personnel as the anchor value when occupied, and sends the anchor value to the main control unit; S212. When the system is running, each time when the parking space is occupied and when the adjacent parking spaces are all vacant, the read geomagnetic value and the anchor value in step S211 are averaged, and the calculation formula is: M_N= (M*N+C) / (N+1), where M is the original average value, C is the currently read geomagnetic value, N is the current average number and is automatically accumulated, and M_N is the new average value, that is, the new anchor value. The anchor value is updated once locally and in the main control unit after averaging multiple times.
[0018] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A data processing method for source coding based on correlation, characterized in that: Parking space detection equipment is used to collect parking space status data, and the same anchor value under the same parking space status is pre-set in the detection equipment. The difference between the original data under the current parking space status and the anchor value under this status is calculated to obtain the correlation value. The anchor value used for the current parking space status is determined by the correlation value, and the anchor value of the current parking space status is used to encode and package the data packet, which is sent to the data receiving device. The receiving device receives the data and unpacks the data packet. The original data can be obtained after data decoding.
2. A data processing method for source coding based on correlation as claimed in claim 1, characterized in that: The parking space status includes a parking space vacant state and a parking space occupied state. Processing the parking space status data includes the following steps: S1. The parking space detection device collects raw data and presets the parking space idle state anchor value and occupied state anchor value; S2. Calculate the difference between the original data of the idle state and the anchor value of the idle state to obtain an idle related value; Calculate the difference between the original data of the occupancy state and the anchor value of the occupancy state to obtain the occupancy-related value; S3, judging whether the idle correlation value is greater than the occupied correlation value, if the idle correlation value is greater than the occupied correlation value, proceeding to step S4; if the idle correlation value is less than the occupied correlation value, proceeding to step S5; S4, using the idle anchor value to encode and pack the data packet; S5, using the occupied anchor value to encode and pack the data packet; S6, sending the source-coded data packet to the master control unit; S7. The master control unit receives the source-coded data packet and obtains the original data after unpacking and decoding.
3. A data processing method for source coding based on correlation as claimed in claim 2, characterized in that: The initial value setting and updating of the idle state anchor value in step S1 includes the following steps: S201, setting an anchor value of the parking space idle state according to the initial parking space idle state value, and sending the anchor value to the main control unit; S202. During system operation, when the current parking space and the adjacent parking space are both idle, the current parking space status value and the anchor value in step S201 are averaged to obtain a new anchor value; the new anchor value is updated once locally and in the master control unit after averaging N times.
4. A data processing method for source coding based on correlation as claimed in claim 2, characterized in that: The initial value setting and updating of the occupancy state anchor value in step S1 includes the following steps: S211, setting an anchor value of the parking space occupancy state according to the initial parking space occupancy state value, and sending the anchor value to the main control unit; S212. During system operation, when the current parking space is occupied and its adjacent parking spaces are idle, the current parking space status value is averaged with the anchor value in step S211 to obtain a new anchor value; the anchor value is updated once locally and in the master control unit after averaging N times.
5. A data processing method for performing source coding based on correlation as claimed in claim 3 or 4, characterized in that: The new anchor value calculation formula is: M_N= (M*N+C) / (N+1), where M is the original average value, C is the currently read parking space status value, N is the current average number and the value is automatically accumulated, and M_N is the new anchor value.