A cargo status detection method based on acceleration sensor

The acceleration sensor is used to detect the status of the cargo, which solves the problem of the risk of damage to the cargo in an environment without video surveillance, enables real-time monitoring and accurate judgment of the status of the cargo, and ensures the safety of the cargo.

CN112781584BActive Publication Date: 2024-08-30QINGDAO PENGHAI SOFT CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011560130.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2024-08-30
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

In an environment without video surveillance, goods may be at risk of being damaged during transportation or in the warehouse, making it difficult for the owner or administrator of the goods to understand the status of the goods in real time and track the cause of the damage.

Method used

The cargo status detection method based on the acceleration sensor is used to process and analyze the acceleration data in different states to realize the moving stationary detection and dumping detection of the cargo, and to determine the slight shaking, normal movement, stationary state and over-limit impact of the cargo. The method includes collecting acceleration data, performing median filtering and summing acceleration calculations, using the state machine method to determine the final state, and storing and updating data in a buffer to avoid misjudgments.

Benefits of technology

It realizes real-time monitoring and accurate judgment of the status of goods, and provides the basis for monitoring personnel to take corresponding measures to ensure the safety of goods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112781584B
    Figure CN112781584B
Patent Text Reader

Abstract

The present invention discloses a cargo state detection method based on an acceleration sensor, which includes a cargo movement and stillness detection method and a cargo dumping detection method. The cargo movement and stillness detection method is to judge the cargo "slight shaking", "normal movement" and "stationary state" by processing and analyzing acceleration data in different states, and the cargo dumping detection method is a method for over-limit collision of cargo. This cargo state detection method based on an acceleration sensor has state characteristics and state quantities for each situation, and the sensor can detect this state quantity. The state of the cargo can be collaboratively determined for different state quantities, so that the monitoring personnel can make corresponding measures and conclusions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cargo state detection methods, and in particular to a cargo state detection method based on an acceleration sensor. Background Art

[0002] Nowadays, goods may be at risk of being damaged whether they are in transit or in the warehouse. In an environment without video surveillance, the owner or manager of the goods cannot know the current status of the goods, nor can they track the cause of the damage to the goods. Now that the acceleration sensor is bound to the goods, the sensor can sense the measured information and convert the detected information into electrical signals or other required forms of information output according to certain rules to meet the requirements of information transmission, processing, storage, display, recording and control. Through this information processing, the status of the goods can be tracked.

[0003] In order to solve the technical drawbacks, a cargo status detection method based on acceleration sensor is proposed. Summary of the invention

[0004] In view of the shortcomings of the background technology, the present invention provides a cargo status detection method based on an acceleration sensor, which solves the problems raised by the above background technology.

[0005] The present invention provides the following technical solution: a cargo state detection method based on an acceleration sensor, the detection method comprising a cargo movement and stillness detection method and a cargo tipping over detection method, the cargo movement and stillness detection method is to judge the "slight shaking", "normal movement" and "stationary state" of the cargo by processing and analyzing acceleration data under different states, and the cargo tipping over detection method is a method for detecting over-limit impact of the cargo.

[0006] Preferably, the cargo movement and stationary detection method comprises the following steps:

[0007] Step 1: collect a set of xyz raw data every tsample, and input it into the buffer buffer1 of size L1 for median filtering;

[0008] Step 2: Use the filtered data to calculate the total acceleration, and input the total acceleration and the acceleration components of the x, y, and z axes into another buffer 2 of size L2*4, where the first column is the total acceleration value, the second column is the acceleration component value of the x axis, the third column is the acceleration component value of the y axis, and the fourth column is the acceleration component value of the z axis; the total acceleration calculation method is: add the squares of the filtered data and take the square root, multiply by 3.9 and round up; when the buffer 2 is not full, return to step 1. When the buffer 2 is full, calculate the variance values ​​V, Vx, V of the total acceleration value and the acceleration components of the x, y, and z axes in buffer 2 respectively. y 、Vz , and clear the cache buffer2;

[0009] Step 3: If Vx < V1, then increment C(1,1) by 1;

[0010] If Vx >= V1, then increment C(1,2) by 1;

[0011] If V < V2, then increment C(2,1) by 1;

[0012] If V2 <= V < V3, then increment C(2,2) by 1;

[0013] If V3 <= V < V4, then increment C(2,3) by 1;

[0014] If V >= V4, then increment C(2,4) by 1;

[0015] Step 4: Calculate the value Csum of the second column C(2,1:4) of the counting cache C; when Csum is greater than or equal to T / (L2*tsample), if both the condition C(2,1) >= T / (L2*tsample) and the condition C(2,2) + C(2,3) - C(2,4) = 0 hold, then determine the current state as "changing from moving to static"; otherwise, determine the current state as "slight vibration or normal movement"; if the current state is "slight vibration or normal movement", if the condition C(1,1) >= T / (L2*tsample) holds, then the current state is "slight vibration"; otherwise, the current state is "normal movement"; after all judgments are completed, set the counter C to 0 and return to Step 1.

[0016] Preferably, a method for detecting goods dumping, the detection method comprising the following steps:

[0017] Step 1: Collect new data. From the perspective of whether to update the benchmark, if so, then store the data in the background buffer; if not, store the data in the buffer;

[0018] Step 2: When the data is stored in the background buffer, if the time length of storing data in the buffer reaches the threshold, calculate and update the background according to the buffer data, and delete the oldest historical data in the buffer;

[0019] Step 3: When the data is stored in the buffer, if the time length of storing data in the buffer does not reach the threshold, take the average value of the data in the buffer as the filtered data, and determine the final state by the state machine method according to the filtered data, and output the dumping state. If the time length of storing data in the buffer reaches the threshold, perform median mean filtering on the buffer data, and delete the oldest historical data in the buffer, then determine the final state by the state machine method according to the filtered data, and output the dumping state.

[0020] Preferably, assuming buffer data The condition for determining that the data is stable is max(data_bak_save)-min(data_bak_save)<=THRESH_BAK. When the data is stable, the method for calculating the background data_background is:

[0021] Data_bacground=[sum(data_bak_save)-max(data-bak_save)-min(data_b ak_save)] / (N-2).

[0022] The present invention has the following beneficial effects: the cargo status detection method based on acceleration sensor has its status characteristics and status quantity for each situation. The sensor can detect this status quantity, and the status of the cargo can be collaboratively determined for different status quantities, so that monitoring personnel can make corresponding measures and conclusions. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a flow chart of the cargo movement and stationary detection method of the present invention;

[0024] Figure 2 It is a flow chart of the cargo dumping detection method of the present invention;

[0025] Figure 3 This is a flow chart of the over-limit collision detection method of the present invention;

[0026] Figure 4 It is a schematic diagram of the state machine structure of the present invention. DETAILED DESCRIPTION

[0027] 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.

[0028] The accompanying drawings in the embodiments of the present invention: different types of section lines in the drawings are not marked according to national standards, nor do they impose requirements on the materials of the components. Instead, they are used to distinguish the cross-sectional views of the components in the drawings.

[0029] See also Figure 1-4, A method for detecting the state of goods based on an acceleration sensor. The detection method includes a method for detecting the movement and stillness of goods and a method for detecting the tipping of goods. The method for detecting the movement and stillness of goods is to judge the "slight jitter", "normal movement", and "stationary state" of goods by processing and analyzing the acceleration data in different states. The method for detecting the tipping of goods is a method for detecting excessive impact on goods.

[0030] Preferably, the method for detecting the movement and stillness of goods includes the following steps:

[0031] Step 1: Collect a set of xyz raw data every tsample and input it into a buffer buffer1 with a size of L1 for median filtering;

[0032] Step 2: Calculate the resultant acceleration using the filtered data. Input the resultant acceleration and the acceleration components of the x, y, and z axes into another buffer buffer2 with a size of L2*4 respectively. The first column is the resultant acceleration value, the second column is the x-axis acceleration component value, the third column is the y-axis acceleration component value, and the fourth column is the z-axis acceleration component value. The method for calculating the resultant acceleration: Take the square root after squaring and adding the filtered data, and then round it after multiplying by 3.9. When buffer2 is not full, return to Step 1. When buffer2 is full, calculate the variance values V, Vx, V y 、V z , and clear buffer2;

[0033] Step 3: If Vx < V1, then increment C(1,1) by 1;

[0034] If Vx >= V1, then increment C(1,2) by 1;

[0035] If V < V2, then increment C(2,1) by 1;

[0036] If V2 <= V < V3, then increment C(2,2) by 1;

[0037] If V3 <= V < V4, then increment C(2,3) by 1;

[0038] If V >= V4, then increment C(2,4) by 1;

[0039] Step 4, calculate the value Csum of the second column C(2,1:4) of the counting buffer C; when Csum is greater than or equal to T / (L2*tsample), if the conditions C(2,1)>=T / (L2*tsample) and C(2,2)+C(2,3)C(2,4)=0 are both true, then the current state is judged to be "from moving to static"; otherwise, the current state is judged to be "slight vibration or normal movement"; if the current state is "slight vibration or normal movement", if the condition C(1,1)>=T / (L2*tsample) is true, then the current state is "slight vibration"; otherwise, the current state is "normal movement"; after completing all the judgments, set all counters C to 0 and return to step 1.

[0040] Preferably, the cargo dumping detection method comprises the following steps:

[0041] Step 1: Collect new data, from the perspective of whether to update the baseline, if yes, then store the data in the background buffer, if not, store the data in the buffer;

[0042] Step 2: When data is stored in the background buffer, if the length of time the buffer has stored data reaches a threshold, the background is updated based on the buffer data and the oldest historical data in the buffer is deleted;

[0043] Step 3: When data is stored in the buffer, if the length of time the buffer stores data does not reach the threshold, take the mean of the data in the buffer as the filtered data, and determine the final state based on the filtered data using the state machine method, and dump the state output; if the length of time the buffer stores data reaches the threshold, perform median mean filtering on the buffer data, delete the oldest historical data in the buffer, and then determine the final state based on the filtered data using the state machine method, and dump the state output.

[0044] Preferably, assuming that the buffer data The condition for determining that the data is stable is max(data_bak_save)-min(data_bak_save)<=THRESH_BAK. When the data is stable, the method for calculating the background data_background is:

[0045] Data_bacground=[sum(data_bak_save)-max(data-bak_save)-min(data_b ak_save)] / (N-2).

[0046] Example 1

[0047] Cargo moving and stationary detection algorithm

[0048] The idea of ​​the cargo movement and stationary detection algorithm is to judge the cargo's "slight shaking", "normal movement" and "stationary state" by processing and analyzing the acceleration data under different states.

[0049] The algorithm parameters are set as follows:

[0050] Acceleration sensor sampling interval ----------------------- tsample, default is 10ms

[0051] Median filter cache ------------------------------------ buffer1, the default size is 3*3

[0052] Median filter buffer length-----------------------------L1, default is 3

[0053] Acceleration cache--------------------------------------buffer2, the default size is 10*4

[0054] Combined acceleration cache length-----------------------------L2, default is 10

[0055] Variance threshold 1 --------------------------------------- V0, default is 20

[0056] Variance threshold 2----------------------------------------V1, default is 50

[0057] Variance threshold 3----------------------------------------V2, default is 500

[0058] Variance threshold 4----------------------------------------V3, default is 5000 Calculation cache------------------------------------------C, size is 4*2

[0059] Time threshold for timing output results---------------------T, default 10s

[0060] The steps of the cargo moving and stationary detection optimization algorithm are as follows:

[0061] Collect a set of xyz raw data every tsample, input it into a buffer buffer1 with a size of L1 for median filtering; go to step (2).

[0062] Calculate the resultant acceleration using the filtered data, and input the resultant acceleration and the acceleration components along the x, y, and z axes into another buffer buffer2 with a size of L2 * 4 respectively. The first column is the resultant acceleration value, the second column is the x-axis acceleration component value, the third column is the y-axis acceleration component value, and the fourth column is the z-axis acceleration component value;

[0063] Resultant acceleration calculation method: Take the square root after squaring and adding the filtered data, multiply by 3.9 and then round down; When buffer2 is not full, go back to step (1).

[0064] When buffer2 is full, calculate the variance values V, Vx, Vy, and Vz of the resultant acceleration value and the acceleration components along the x, y, and z axes in buffer2 respectively, and clear buffer2; go to step (3).

[0065] If Vx < V1, then increment C(1,1) by 1;

[0066] If Vx >= V1, then increment C(1,2) by 1;

[0067] If V < V2, then increment C(2,1) by 1;

[0068] If V2 <= V < V3, then increment C(2,2) by 1;

[0069] If V3 <= V < V4, then increment C(2,3) by 1;

[0070] If V >= V4, then increment C(2,4) by 1;

[0071] Go to step (4).

[0072] Calculate the sum Csum of the values C(2,1:4) in the counting buffer C; When Csum is greater than or equal to T / (L2 * tsample), if both the condition C(2,1) >= T / (L2 * tsample) and the condition C(2,2) + C(2,3) + C(2,4) = 0 hold, then judge the current state as "changing from moving to static"; otherwise, judge the current state as "slight vibration or normal movement".

[0073] If the current state is "slight vibration or normal movement", if the condition C(1,1) >= T / (L2 * tsample) holds, then the current state is "slight vibration"; otherwise, the current state is "normal movement".

[0074] After all judgments are completed, set all values in the counter C to 0, and go back to step (1).

[0075] Example 2

[0076] Cargo dump detection algorithm

[0077] The over-limit detection algorithm is implemented on the basis of the above-mentioned moving and stationary detection optimization algorithm. The specific method is as follows: in step (4), after judging that the vehicle motion state has ended, an additional judgment content is added: at any time, if C(2,4)>=1, it is judged that an "over-limit collision" has occurred; C is set to 0 and returns to step (1).

[0078] Example 3

[0079] Cargo dump detection algorithm

[0080] 1) This algorithm is used to determine whether the installed cargo has tipped over by more than 90° based on the data collected by the acceleration sensor. Once the cargo has tipped over, the acceleration on each axis will change to a certain extent. By comparing the real-time three-axis acceleration data and the reference acceleration data, the tipping detection can be achieved. Note that when the installed cargo accelerates or decelerates in a certain direction, it will also bring about changes in the acceleration data of the relevant axis, and in most cases it will also bring about changes in the acceleration module. The algorithm filters this situation to avoid misjudgment of tipping detection that may occur when the object is moving at an accelerated angle. In addition, the algorithm also provides an optional reference angle update algorithm that can automatically record the angle position of the node when it is stable in real time.

[0081] 2) The algorithm can be configured to determine whether to use a dynamic background. If a dynamic background is used, the background update window length, background update threshold, etc. can be configured. In addition, the dumping acceleration modulus threshold, dumping acceleration difference threshold, data filtering time window length, dumping detection delay and other parameters can also be configured to adapt to different specific application environments.

[0082] 3) Algorithm Process

[0083] The overall flow chart of the algorithm is as follows. The shaded parts of the median mean filter, background update and state machine methods are described in detail below.

[0084]

[0085] 4) Filtering

[0086] The calculation method of median mean filtering here is as follows:

[0087] Assume that the buffer data With filtered data

[0088] tmp_filp_filter=[sum(data_flip_save)-max(data_flip_save)-min(dat a_flip_save)] / (N-2)

[0089] Among them, sum(.) is for summing, max() is for maximum value, and min() is for minimum value.

[0090] 4) Background Update

[0091] Assume that the buffer data The condition for determining that the data is stable is

[0092] max(data_bak_save)-min(data_bak_save)<=THRESH_BAK

[0093] When the data is stable, the method for calculating the background data_background is

[0094] Data_bacground=[sum(data_bak_save)-max(data-bak_save)-min(data_b ak_save)] / (N-2)

[0095] Among them, sum(.) is for summing, max() is for maximum value, and min() is for minimum value.

[0096] 5) State Machine

[0097] Set 5 states, initialization state T0, normal state T1, flip state T3, flip-to-normal state T4, acceleration state T5. The output of T0 and T1 states is normal, the output of T3-T4 states is flip, and the output of T5 state is consistent with its previous historical state.

[0098] The state transition conditions C0-C1 are defined as follows:

[0099] C0:

[0100] C1:

[0101] When entering the T4 state from the T3 state, the counter needs to be cleared to flip_num=0; in each cycle of the T4 state, the count needs to be accumulated flip_num=flip_num+1; in the T4 state, in addition to the previous state transition condition C1, there is also D0-D1.

[0102] D0:flip_num <NUM_DELAY_FLIP

[0103] D1: flip_num>=NUM_DELAY_FLIP

[0104] Where NUM_DELAY_FLIP is calculated based on the algorithm parameter TIME_DELAY_FLIP and the sensor sampling interval TIME_SAMPLE. NUM_DELAY_FLIP = TIME_DELAY_FLIP / TIME_SAMPLE

[0105] In addition, there are state transition conditions F0-F1 in states T1, T3, T4, and T5.

[0106] F0:

[0107] F1:

[0108] If the condition F1 is detected in the T1, T3, and T4 states, the state will be transferred to the T5 state, and the historical state will be recorded at the same time, and the output will remain unchanged. If the condition F0 is detected in the T5 state, the state will be transferred back to the recorded historical state.

[0109] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0110] 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 cargo state detection method based on an acceleration sensor, the detection method comprising a cargo movement and stationary detection method and a cargo dumping detection method, characterized in that: The method for detecting the movement and stillness of the goods realizes the judgment of "slight jitter", "normal movement", and "stationary state" of the goods by processing and analyzing the acceleration data in different states. The method for detecting the tipping of the goods is the method for detecting the over-limit impact of the goods; The method for detecting the movement and stillness of the goods includes the following steps: Step 1: Collect a set of xyz original data every tsample, and input it into the buffer buffer1 with a size of L1 for median filtering; Step 2: Use the filtered data to calculate the total acceleration, and input the total acceleration and the acceleration components of the x, y, and z axes into another buffer 2 of size L2*4, where the first column is the total acceleration value, the second column is the acceleration component value of the x axis, the third column is the acceleration component value of the y axis, and the fourth column is the acceleration component value of the z axis; the total acceleration calculation method is: add the squares of the filtered data and take the square root, multiply by 3.9 and round up; when the buffer 2 is not full, return to step 1. When the buffer 2 is full, calculate the variance values ​​V, Vx, V of the total acceleration value and the acceleration components of the x, y, and z axes in buffer 2 respectively. y 、V z , and clear the cache buffer2; Step 3: If Vx < V1, then increment C(1,1) by 1; If Vx >= V1, then increment C(1,2) by 1; If V < V2, then increment C(2,1) by 1; If V2 <= V < V3, then increment C(2,2) by 1; If V3 <= V < V4, then increment C(2,3) by 1; If V >= V4, then increment C(2,4) by 1; Step 4: Calculate the value Csum of the second column C(2,1:4) of the counting buffer C; when Csum is greater than or equal to T / (L2*tsample), if both the condition C(2,1) >= T / (L2*tsample) and the condition C(2,2)+C(2,3)C(2,4) = 0 hold, then judge the current state as "changing from moving to stationary"; otherwise, judge the current state as "slight vibration or normal movement"; if the current state is "slight vibration or normal movement", if the condition C(1,1) >= T / (L2*tsample) holds, then the current state is "slight vibration"; otherwise, the current state is "normal movement"; after all judgments are completed, set the counter C to 0 and return to Step 1; The method for detecting the tipping of the goods includes the following steps: Step 1: Collect new data. From the perspective of whether to update the reference, if so, then store the data in the background buffer; if not, store the data in the buffer; Step 2: When the data is stored in the background buffer, if the storage time length of the data in the buffer reaches the threshold, calculate and update the background according to the data in the buffer, and delete the oldest historical data in the buffer; Step 3: When the data is stored in the buffer, if the storage time length of the data in the buffer does not reach the threshold, take the average value of the data in the buffer as the filtered data, and determine the final state by the state machine method according to the filtered data, and output the tipping state. If the storage time length of the data in the buffer reaches the threshold, perform median average filtering on the data in the buffer, and delete the oldest historical data in the buffer, and then determine the final state by the state machine method according to the filtered data, and output the tipping state.

2. The method for detecting the state of goods based on an acceleration sensor according to claim 1, wherein: Assume that the buffer data The condition for determining that the data is stable is max(data_bak_save)-min(data_bak_save)<=THRESH_BAK. When the data is stable, the method for calculating the background data_background is: Data_bacground = [sum(data_bak_save)-max(data-bak_save)-min(data_bak_save)] / (N-2).

Citation Information

Patent Citations

  • Cargo state monitoring method based on three-dimensional acceleration wireless sensor network

    CN101949953A