Model training method based on geomagnetic sensor and parking space detection method and system
By collecting and processing geomagnetic sensor data, training AI models to identify parking space occupation status, combining video and parking business data verification, the problem of low accuracy of geomagnetic parking space detection in the existing technology is solved, and high accuracy and low cost parking space detection is achieved system.
Patent Information
- Application Number
- CN202411016172.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-27
- Publication Date
- 2024-11-29
AI Technical Summary
The existing parking space detection method based on geomagnetic sensors is not very accurate, resulting in high radar power consumption, increasing product costs and reducing competitiveness.
By collecting the geomagnetic field reference values and change values of the parking spaces, forming a disturbance record table, performing data cleaning and normalization processing, training of AI models to identify the parking space occupation status, combining video inspection and parking service data verification and identification results, updating training library to improve detection accuracy.
Without changing the existing system architecture, the detection accuracy is significantly improved, the cost is reduced, the product is more competitive, and the system is automatically run and maintenance is simple.
Smart Images

Figure CN119049299A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of geomagnetic parking space detection, and in particular relates to a model training method based on geomagnetic sensors and a parking space detection method and system. Background Art
[0002] Geomagnetic sensors are widely used in the field of vehicle parking detection. They use changes in the geomagnetic field to detect whether a vehicle is parked in a specific location. When a vehicle enters or leaves a parking space, the metal structure of the vehicle will cause slight changes in the geomagnetic field. The geomagnetic sensor can sense these changes and judge the occupancy status of the parking space accordingly. However, the detection results based on geomagnetic signals are not very accurate. A multi-mode detection method that combines geomagnetic signals with radar monitoring is usually used to improve the accuracy. However, the radar has high power consumption, which requires the use of a larger capacity battery for the geomagnetic vehicle detector, increasing product costs and reducing product competitiveness. Summary of the invention
[0003] In order to solve the above problems, the present invention provides a model training method and a parking space detection method and system based on geomagnetic sensors. The present application does not change the existing system architecture while ensuring the detection accuracy, has low cost and strong product competitiveness.
[0004] The technical solution adopted by the present invention is:
[0005] In a first aspect, the present application discloses a model training method based on a geomagnetic sensor, comprising the following steps:
[0006] Collect the reference value of the geomagnetic field at the parking spot m b , the reference value is the geomagnetic field value when the parking space is not occupied;
[0007] According to a preset time interval △t, the change value of the geomagnetic field at the parking spot is collected to form a first disturbance record table S1;
[0008] Performing data cleaning on the disturbance record table to determine whether it is valid, and storing the valid first disturbance record table in a training library;
[0009] Normalizing the disturbance record table in the training library;
[0010] The normalized disturbance record table is used to train the AI model.
[0011] As an optional technical solution, the first disturbance record table S1 is:
[0012] S1={(x0,y0,z0),(x1,y1,z1)....(x n-1 ,y n-1 ,z n-1 ),(xn ,y n ,z n )};
[0013] Among them, from time t0, the geomagnetic field at the parking spot begins to change to t n At this moment, the geomagnetic field at the parking spot becomes stable and no longer changes. The time from t0 to t n The first disturbance record table S1 is formed by the geomagnetic field value at the parking spot in the time period from time t0 to time t0, (x0, y0, z0) represents the geomagnetic field value at the parking spot in each direction of the X, Y, and Z axes at time t0, (x1, y1, z1) represents the geomagnetic field value at the parking spot in each direction of the X, Y, and Z axes at time t1, and (x1, y1, z1) represents the geomagnetic field value at the parking spot in each direction of the X, Y, and Z axes at time t1. n ,y n ,z n ) indicates t n The geomagnetic field values of the parking lot in the three directions of X, Y, and Z at the moment, and t n -t n-1 =△t.
[0014] As an optional technical solution, the data cleaning includes:
[0015] Calculate the characteristic value of the first disturbance record table. When the characteristic value matches the vacant parking entry event, if the last parking order and the video inspection record before time t0 are normal, and the entry status after time t0 is consistent with the video inspection record, then determine that the first disturbance record table is valid, and store the valid first disturbance record table in the training library; otherwise, determine that the first disturbance record table is invalid, and output an invalid disturbance event;
[0016] When the feature value matches the placeholder outbound event, if the inbound event status before time t0 is normal, and the outbound status after time t0 is consistent with the video inspection record, the first disturbance record table is determined to be valid, and the valid first disturbance record table is stored in the training library; otherwise, the first disturbance record table is determined to be invalid, and an invalid disturbance event is output.
[0017] As an optional technical solution, the calculation of the characteristic value includes: comparing the data in the first disturbance record table S1 with the reference value m in sequence. b Do the Euclidean distance calculation:
[0018]
[0019] Get the Euclidean distance sequence △S:
[0020] △S={G0,G1,G2,……,G n-1 ,G n};
[0021] Among them, m b =(x b ,y b ,z b ), represents the geomagnetic field values of the parking space in each direction of the X, Y, and Z axes when the parking space is not occupied; and the sequence △S represents the characteristic value of the first disturbance record table S1.
[0022] As an optional technical solution, if G in the sequence △S i The trend of the change is from small to large, which indicates a vacancy storage event; if G i If the changing trend of is from large to small, it indicates a placeholder outbound event; where i = 0, 1, 2, ..., n-1, n.
[0023] As an optional technical solution, the normalization process includes:
[0024] If the disturbance time span of the effective first disturbance record table is less than the preset value T, that is, t n When -t0<T, the effective first disturbance record table is interpolated so that the record length of the effective first disturbance record table is T / △t.
[0025] If the disturbance time span of the effective first disturbance record table is greater than the preset value T, that is, t n When -t0>T, the valid first disturbance record table is subjected to segment aggregation processing so that the final record length is T / △t pieces.
[0026] In a second aspect, the present application discloses a parking space detection method based on a geomagnetic sensor, comprising:
[0027] Collect the reference value of the geomagnetic field at the parking spot m b , the reference value is the geomagnetic field value when the parking space is not occupied;
[0028] Collecting the geomagnetic field change value at the parking spot at a preset time interval Δt to form a second disturbance record table S2;
[0029] Using the AI model trained in the model training method described in the first aspect, identify the second disturbance record table S2 and output the identification result, wherein the identification result includes a vacant storage event, an occupied storage event, or an invalid disturbance event;
[0030] Calling video inspection data and parking business data to determine whether the recognition result is correct, and if so, storing the second disturbance record table S2 in the training library;
[0031] The AI model is trained again using the updated training library.
[0032] In a third aspect, the present application discloses a parking space detection system based on a geomagnetic sensor, comprising:
[0033] The geomagnetic vehicle detector is used to scan the geomagnetic field value at the parking spot and record the geomagnetic field reference value m b and the change value of the geomagnetic field, and the reference value of the geomagnetic field m b and the disturbance record table formed by the geomagnetic field change value is uploaded to the cloud; wherein the geomagnetic field reference value m b is the geomagnetic field value when the parking space is not occupied;
[0034] Video inspection vehicle platform, used to store video inspection data;
[0035] Parking business platform, used to store parking business data;
[0036] The AI model stored in the cloud is used to identify the disturbance record table and output the recognition result, and is also used to call the video inspection data and parking business data to determine whether the recognition result is correct. If so, the disturbance record table is valid and sent to the training library; the AI model is the AI model in the first aspect or the second aspect above;
[0037] The training library stored in the cloud is used to store the effective first disturbance record table.
[0038] In a fourth aspect, the present application discloses an electronic device comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs comprising instructions, which, when executed by the one or more processors, enable the electronic device to perform the method described in the first or second aspect above.
[0039] In a fifth aspect, the present application discloses a computer-readable medium, comprising a computer program, which, when executed on a computer, enables the computer to execute the method described in the first aspect or the second aspect above.
[0040] The beneficial effects of the present invention are:
[0041] 1. Easy to use, no manual intervention required, the system runs automatically, updates automatically, and recognizes automatically.
[0042] 2. Simple maintenance, no frequent maintenance required, only initial deployment requires resources.
[0043] 3. High accuracy. Without changing the existing system architecture, the detection accuracy is significantly improved.
[0044] 4. Low cost. Compared with composite geomagnetism, the geomagnetic detector of this system has lower cost and more reliable function. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a flowchart of a model training method based on geomagnetic sensors in an exemplary embodiment.
[0046] Figure 2 It is a flowchart of a parking space detection method based on a geomagnetic sensor in an exemplary embodiment.
[0047] Figure 3 It is a schematic diagram of a parking space detection system based on a geomagnetic sensor in an exemplary embodiment. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0049] Example 1
[0050] like Figure 1 As shown, this embodiment discloses a model training method based on a geomagnetic sensor, comprising the following steps:
[0051] Collect the reference value of the geomagnetic field at the parking spot m b , the reference value is the geomagnetic field value when the parking space is not occupied; specifically, the geomagnetic field data can be collected by pre-burying a geomagnetic sensor at the parking space, and the geomagnetic sensor can be installed at the center of the parking space with the top flush with the ground;
[0052] According to a preset time interval △t, the geomagnetic field change value at the parking space is collected to form a first disturbance record table S1; as a preferred embodiment, △t≤1s, that is, the geomagnetic sensor scans the geomagnetic field value at the parking space at a time interval less than or equal to 1s, and when the geomagnetic field value obtained by scanning begins to change, the change value is recorded, and when the geomagnetic field value obtained by scanning tends to be stable and no longer changes, the recording is stopped, and the geomagnetic field change value recorded in this period of time forms the first disturbance record table S1;
[0053] Performing data cleaning on the disturbance record table S1 to determine whether it is valid, and storing the valid first disturbance record table in a training library;
[0054] Normalizing the disturbance record table in the training library;
[0055] The normalized disturbance record table is used to train the AI model.
[0056] Among them, the AI model can adopt one of the existing recurrent neural network RNN model, long short-term memory network LSTM model or gated recurrent unit GRU model.
[0057] As an optional implementation manner, the first disturbance record table S1 is:
[0058] S1={(x0,y0,z0),(x1,y1,z1)....(x n-1 ,y n-1 ,z n-1 ),(x n ,y n ,z n )};
[0059] From time t0, the geomagnetic field at the parking spot begins to change until t n At this moment, the geomagnetic field at the parking spot becomes stable and no longer changes. The time from t0 to t n The first disturbance record table S1 is formed by the geomagnetic field value at the parking spot in the time period from time t0 to time t0, (x0, y0, z0) represents the geomagnetic field value at the parking spot in each direction of the X, Y, and Z axes at time t0, (x1, y1, z1) represents the geomagnetic field value at the parking spot in each direction of the X, Y, and Z axes at time t1, and (x1, y1, z1) represents the geomagnetic field value at the parking spot in each direction of the X, Y, and Z axes at time t1. n ,y n ,z n ) indicates t n The geomagnetic field values of the parking lot in the three directions of X, Y, and Z at the moment, and t n -t n-1 =△t.
[0060] As an optional implementation, the data cleaning includes:
[0061] Calculate the characteristic value of the first disturbance record table. When the characteristic value matches the vacant parking entry event, if the last parking order and the video inspection record before time t0 are normal, and the entry status after time t0 is consistent with the video inspection record, then determine that the first disturbance record table is valid, and store the valid first disturbance record table in the training library; otherwise, determine that the first disturbance record table is invalid, and output an invalid disturbance event;
[0062] When the feature value matches the placeholder outbound event, if the inbound event status before time t0 is normal, and the outbound status after time t0 is consistent with the video inspection record, the first disturbance record table is determined to be valid, and the valid first disturbance record table is stored in the training library; otherwise, the first disturbance record table is determined to be invalid, and an invalid disturbance event is output.
[0063] There may be misjudgment when using the characteristic values of the disturbance record table to judge whether the car is driving into the parking space (i.e., an empty space entry event) or leaving the parking space (i.e., an occupied space exit event). For example, the roadside parking space is occupied by some metal ornaments. In the process of the metal ornaments gradually approaching and entering the parking space, a disturbance record table will also be formed. Using the disturbance record table to train the model will obviously reduce the recognition accuracy of the model. In order to exclude the invalid disturbance record table, the parking order record and the video inspection record can be combined. The parking order record comes from the existing parking business system, and the video inspection record comes from the existing video inspection vehicle.
[0064] Specifically, when the characteristic value of the first disturbance record table S1 matches the vacant space entry event, that is, when it is judged through the first disturbance record table S1 that a car has entered the parking space, the following process can be used to determine whether the judgment is correct, that is, to determine whether the first disturbance record table S1 is valid: when the parking order record shows that the previous parking order before time t0 has been paid, and the image captured by the video inspection record shows that the parking space was indeed unoccupied before time t0, it means that the entry conditions are met, and the image captured by the video inspection record shows that a car has entered the parking space after time t0, then the first disturbance record table S1 that matches the vacant space entry event is valid.
[0065] Specifically, when the characteristic value of the first disturbance record table S1 matches the occupied out-of-parking event, that is, when it is judged through the first disturbance record table S1 that a car has left the parking space, the following process can be used to determine whether the judgment is correct, that is, to determine whether the first disturbance record table S1 is valid: if the entry event status before time t0 is normal, that is, the previous disturbance record table before time t0 matches the vacant entry event, and the out-of-parking status after time t0 is consistent with the video inspection record, that is, the video inspection record shows that a car has left the parking space after time t0, then it can be determined that the first disturbance record table S1 matching the occupied out-of-parking event is valid.
[0066] It should be noted that automatically identifying whether there is a car in a parking space, or whether a car is entering or leaving the parking space through captured videos or images is a prior art and is not the subject of this application, so it will not be elaborated here.
[0067] As an optional implementation, the calculation of the characteristic value includes: comparing the data in the first disturbance record table S1 with the reference value m in sequence.b Do the Euclidean distance calculation:
[0068]
[0069] Get the Euclidean distance sequence △S:
[0070] △S={G0,G1,G2,……,G n-1 ,G n};
[0071] Among them, m b =(x b ,y b ,z b ), represents the geomagnetic field values of the parking space in each direction of the X, Y, and Z axes when the parking space is not occupied; and the sequence △S represents the characteristic value of the first disturbance record table S1.
[0072] As an optional implementation, if G in the sequence ΔS i The trend of the change is from small to large, which indicates a vacancy storage event; if G i If the changing trend of is from large to small, it indicates a placeholder outbound event; where i = 0, 1, 2, ..., n-1, n.
[0073] It should be noted that, in addition to using Euclidean distance to represent the characteristic value of the disturbance record table, its characteristic value may also be represented by one or more of mean, maximum, minimum, peak, valley, change rate or frequency domain.
[0074] As an optional implementation, the normalization process includes:
[0075] If the disturbance time span of the effective first disturbance record table is less than the preset value T, that is, t n When -t0<T, the effective first disturbance record table is interpolated so that the record length of the effective first disturbance record table is T / △t.
[0076] If the disturbance time span of the effective first disturbance record table is greater than the preset value T, that is, t n When -t0>T, the valid first disturbance record table is subjected to segment aggregation processing so that the final record length is T / △t pieces.
[0077] Specifically, the preset value T can be 60s, and the scanning time interval △t can be 1s. Then, the record length of the first disturbance record table after interpolation processing or segmented aggregation processing must be 60. The first disturbance record table S1 after normalization processing is S1 * If it means:
[0078] S1* ={(x0,y0,z0),(x1,y1,z1)....(x 59 ,y 59 ,z 59 ),(x 60 ,y 60 ,z 60 )}.
[0079] It should be noted that when a car enters a parking space, it will not only cause changes in the geomagnetic field of the parking space it is entering, but also cause changes in the geomagnetic field of the parking space it is passing through. Therefore, the AI model can also be trained with the geomagnetic data of the road section. The geomagnetic data of the road section contains richer information than the geomagnetic data of a single parking space, and the AI model trained with it has higher recognition accuracy.
[0080] Example 2
[0081] Based on the model training method in Example 1, this embodiment discloses a parking space detection method based on a geomagnetic sensor, such as Figure 2 As shown, including:
[0082] Collect the reference value of the geomagnetic field at the parking spot m b , the reference value is the geomagnetic field value when the parking space is not occupied;
[0083] The geomagnetic field change value at the parking lot is collected at a preset time interval Δt to form a second disturbance record table S2; wherein the data collection method is completely consistent with that in Example 1, and is not repeated here for the convenience and brevity of description;
[0084] The AI model trained in the first embodiment is used to identify the second disturbance record table S2 and output the identification result, wherein the identification result includes a vacant storage event, an occupied storage event or an invalid disturbance event; specifically, the characteristic value of the second disturbance record table S2 is identified, and then the event category is determined by the characteristic value. The calculation method and judgment method of the characteristic value are consistent with those in the first embodiment, and are not repeated here for the convenience and brevity of description;
[0085] The video inspection data and the parking service data are called to determine whether the recognition result is correct. If so, the second disturbance record table S2 is stored in the training library. The process of using the video inspection data and the parking service data to determine the recognition result is consistent with the process of using the video inspection data and the parking service data for data cleaning in Example 1. For the convenience and brevity of description, it will not be repeated here.
[0086] The AI model is trained again using the updated training library. Of course, the data in the training library needs to be normalized before training.
[0087] Example 3
[0088] Based on Example 2, this example discloses a parking space detection system based on a geomagnetic sensor, such as Figure 3 As shown, the system includes:
[0089] The geomagnetic vehicle detector is used to scan the geomagnetic field value at the parking spot and record the geomagnetic field reference value m b and the change value of the geomagnetic field, and the reference value of the geomagnetic field m b and the disturbance record table formed by the geomagnetic field change value is uploaded to the cloud; wherein the geomagnetic field reference value m b is the geomagnetic field value when the parking space is not occupied; specifically, the geomagnetic vehicle detector includes a main control MCU, a network communication module, a geomagnetic sensor and a battery assembly. The main control MCU controls the network communication module to establish a communication connection with the cloud server. The geomagnetic sensor scans the geomagnetic field at the parking space. After the main control MCU receives the scan value and determines that the scan value begins to change, it records the change value, and stops recording after it stops changing. The recorded change value forms a disturbance record table and is uploaded to the cloud server together with the geomagnetic field reference value. A car entering the parking space will form a disturbance record table, and leaving the parking space will form another disturbance record table; the geomagnetic sensor scans continuously at a time interval △t, and when the next car enters the parking space, another disturbance record table will be formed... In this way, disturbance record tables will be continuously formed and uploaded to the cloud server; the network communication module can adopt wide area network communication methods such as NB-IOT, 4G, CAT.1 or Lora;
[0090] The video inspection vehicle platform is used to store video inspection data. The video inspection data collected by the video inspection vehicle is uploaded to the video inspection vehicle platform in the cloud.
[0091] The parking business platform is used to store parking business data; the parking business data of the parking business system is uploaded to the parking business platform in the cloud;
[0092] The AI model stored in the cloud is used to identify the disturbance record table and output the recognition result. It is also used to call the video inspection data and parking business data to determine whether the recognition result is correct. If so, the disturbance record table is valid and sent to the training library; the AI model is the AI model in Example 1 or Example 2, which will not be repeated here
[0093] The training library stored in the cloud is used to store the effective first disturbance record table.
[0094] Example 4
[0095] This embodiment discloses an electronic device, including: one or more processors; one or more memories; the one or more memories store one or more computer programs, and the one or more computer programs include instructions. When the instructions are executed by the one or more processors, the electronic device executes the method described in the above-mentioned embodiment 1 or embodiment 2.
[0096] This embodiment also discloses a computer-readable medium, including a computer program. When the computer program is executed on a computer, the computer executes the method described in the above-mentioned embodiment 1 or embodiment 2.
[0097] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described system, electronic device, and computer-readable medium can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0098] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the embodiment of the present application can be embodied in the form of a software product, which can be stored in a readable medium or on a network, and includes several instructions to enable an electronic device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiment of the present application.
[0099] The above-mentioned readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable 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 of the above.
[0100] The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. All technical solutions that fall within the scope defined by the claims of the present invention fall within the protection scope of the present invention.
Claims
1. Model training method based on geomagnetic sensor, It is characterized in that The following steps are involved: Collect the reference value of the geomagnetic field at the parking spot m b , the reference value is the geomagnetic field value when the parking space is not occupied; According to a preset time interval △t, the change value of the geomagnetic field at the parking spot is collected to form a first disturbance record table S1; Performing data cleaning on the disturbance record table to determine whether it is valid, and storing the valid first disturbance record table in a training library; Normalizing the disturbance record table in the training library; The normalized disturbance record table is used to train the AI model.
2. The model training method based on geomagnetic sensor according to claim 1, Features: The first disturbance record table S1 is: S1={(x 0 ,y 0 ,z 0 ),(x 1 ,y 1 ,z 1 ).....(x n-1 ,y n-1 ,z n-1 ),(x n ,y n ,z n )}; Among them, from t 0 Starting from time t, the geomagnetic field at the parking spot begins to change until t n At the moment, the geomagnetic field at the parking spot becomes stable and no longer changes. Record t 0 to n The geomagnetic field value at the parking spot during the time period of time is used to form the first disturbance record table S1, (x 0 ,y 0 ,z 0 ) indicates t 0 The geomagnetic field values of the parking spot in the three directions of X, Y, and Z at the moment, (x 1 ,y 1 ,z 1 ) indicates t 1 The geomagnetic field values of the parking lot in the three directions of X, Y, and Z at the moment...(x n ,y n ,z n ) indicates t n The geomagnetic field values of the parking lot in the three directions of X, Y, and Z at the moment, and t n -t n-1 =△t.
3. The model training method based on geomagnetic sensor according to claim 2, It is characterized in that The data cleaning includes: Calculate the characteristic value of the first disturbance record table. When the characteristic value matches the vacant storage event, if t 0 The last parking order and video inspection record before time are normal, and t 0 If the storage status after the time is consistent with the video inspection record, the first disturbance record table is determined to be valid, and the valid first disturbance record table is stored in the training library; otherwise, the first disturbance record table is determined to be invalid, and an invalid disturbance event is output; When the feature value matches the placeholder outbound event, if t 0 The status of the storage event before time is normal, and t 0 If the outbound status after the time is consistent with the video inspection record, the first disturbance record table is determined to be valid, and the valid first disturbance record table is stored in the training library; otherwise, the first disturbance record table is determined to be invalid, and an invalid disturbance event is output.
4. The model training method based on geomagnetic sensor according to claim 3, Features: The calculation of the characteristic value includes: comparing the data in the first disturbance record table S1 with the reference value m in sequence. b Do the Euclidean distance calculation: Get the Euclidean distance sequence △S: △S={G 0 ,G 1 ,G 2 ,……,G n-1 ,G n }; Among them, m b =(x b ,y b ,z b ), represents the geomagnetic field values of the parking space in each direction of the X, Y, and Z axes when the parking space is not occupied; and the sequence △S represents the characteristic value of the first disturbance record table S1.
5. The model training method based on geomagnetic sensor according to claim 4, Features: If the sequence △S has G i If the changing trend of is from small to large, it indicates a vacant storage event; If the sequence △S has G i If the changing trend of is from large to small, it indicates a placeholder outbound event; where i = 0, 1, 2, ..., n-1, n.
6. The model training method based on geomagnetic sensor according to any one of claims 2 to 5, It is characterized in that The normalization process includes: If the disturbance time span of the effective first disturbance record table is less than the preset value T, that is, t n -t 0 <T, the effective first disturbance record table is interpolated so that the record length of the effective first disturbance record table is T / △t. If the disturbance time span of the effective first disturbance record table is greater than the preset value T, that is, t n -t 0 >T, the valid first disturbance record table is subjected to segment aggregation processing so that the final record length is T / △t items.
7. Parking space detection method based on geomagnetic sensor, It is characterized in that include: Collect the reference value of the geomagnetic field at the parking spot m b , the reference value is the geomagnetic field value when the parking space is not occupied; Collecting the geomagnetic field change value at the parking spot at a preset time interval Δt to form a second disturbance record table S2; Using the AI model trained in the model training method based on the geomagnetic sensor as described in any one of claims 1 to 6, identify the second disturbance record table S2 and output the recognition result, wherein the recognition result includes a vacant storage event, an occupied storage event, or an invalid disturbance event; Calling the video inspection data and parking business data to determine whether the recognition result is correct, and if so, storing the second disturbance record table S2 in the training library; The AI model is trained again using the updated training library.
8. Parking space detection system based on geomagnetic sensor, It is characterized in that include: The geomagnetic vehicle detector is used to scan the geomagnetic field value at the parking spot and record the geomagnetic field reference value m b and the change value of the geomagnetic field, and the reference value of the geomagnetic field m b and the disturbance record table formed by the geomagnetic field change value is uploaded to the cloud; wherein the geomagnetic field reference value m b is the geomagnetic field value when the parking space is not occupied; Video inspection vehicle platform, used to store video inspection data; Parking business platform, used to store parking business data; The AI model stored in the cloud is used to identify the disturbance record table and output the recognition result. It is also used to call the video inspection data and parking business data to determine whether the recognition result is correct. If so, the disturbance record table is valid and sent to the training library; The training library stored in the cloud is used to store the effective first disturbance record table.
9. An electronic device, It is characterized in that include: one or more processors; One or more memories; the one or more memories store one or more computer programs, the one or more computer programs include instructions, when the instructions are executed by the one or more processors, the electronic device executes the method as described in any one of claims 1-7.
10. A computer readable medium, It is characterized in that The method comprises a computer program, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 7.
