A multi-sensor fusion slope weight compensation method and smart shopping cart
Through the slope weight compensation method of multi-sensor fusion, the stable weight and angle curve compensation algorithm is used to perform weight compensation under different motion states of the smart shopping cart, which solves the problem of unreliable weight in the slope environment and achieves accurate product identification. Weight gain and user experience improvement.
Patent Information
- Application Number
- CN202411054264.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-02
AI Technical Summary
Existing smart shopping carts cannot accurately and reliably obtain product weights in ramp environments, causing users to abnormally add or subtract purchases, increasing labor costs and affecting the shopping experience.
The slope weight compensation method using multi-sensor fusion is used to identify the motion state of the shopping cart through real-time sensing data and attitude angle algorithms, and the stable weight algorithm and angle curve compensation algorithm are used to compensate and correct the weight under different motion states to ensure acquisition The weight data is reliable.
It achieves accurate acquisition of the weight of items purchased by users in a ramp environment, saves labor costs, improves the user's shopping experience, and successfully matches the add-and-subtract purchase operation with the back-end database.
Smart Images

Figure CN118568126B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart shopping carts, and in particular to a ramp weight compensation method based on multi-sensor fusion and a smart shopping cart. Background Art
[0002] With the development of intelligent technology, smart shopping carts have become an important development direction of the retail industry. Traditional shopping carts are usually only used to place goods, while smart shopping carts help consumers complete the shopping process more efficiently through intelligent and automated methods, improve shopping efficiency, and optimize shopping experience.
[0003] There are three types of smart shopping carts on the market. One is a smart shopping cart based on weighing, one is a smart shopping cart based on imaging method, and the other is a smart shopping cart that combines the two methods. The smart shopping cart that includes weighing is the same as the existing basic scales. The reliability of the obtained weight requires the scale to be horizontal and still. The image sensor recognizes the items put in or taken out through images, which has errors and cannot sense the weight of the goods.
[0004] In order for the weight sensor to obtain data with higher reliability, the sensor must be horizontal and still, otherwise the data obtained is unreliable. However, in multi-storey supermarkets, there is a certain slope at escalators or other locations. At the same time, there will be easy-to-sell items recommended by the supermarket on the slope, which is convenient for consumers to add to their purchases. In this case, the current weight sensor cannot give a more reliable scale value, resulting in abnormal additions and subtractions by consumers. Manual verification is required, which increases labor costs and affects the user shopping experience. Summary of the invention
[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a multi-sensor fusion ramp weight compensation method and a smart shopping cart. By compensating the ramp shopping weight, a reliable user's added or subtracted purchase weight is obtained, which facilitates the matching of the upper-level application and the back-end database to make the addition and subtraction successful, saves labor costs, and improves the user's shopping experience.
[0006] In order to solve the above technical problems, the present invention is implemented by adopting the following technical solutions:
[0007] The present invention provides a ramp weight compensation method based on multi-sensor fusion, comprising:
[0008] According to the real-time sensor data of the smart shopping cart, the current attitude angle of the smart shopping cart is obtained through the attitude angle algorithm;
[0009] According to the real-time sensor data and the current posture angle of the smart shopping cart, the current motion state of the smart shopping cart is obtained through a motion state recognition algorithm, and the following operations are performed:
[0010] When the smart shopping cart is in a horizontal state, a stable weight is obtained by using the scale value weight in the real-time sensor data and a stable weight algorithm, and the stable weight is uploaded to an upper layer application as a trusted weight, allowing the purchase of items to be added or subtracted;
[0011] When the smart shopping cart is stationary on an uphill slope or a downhill slope: the scale value weight in the real-time sensor data and the stable weight algorithm are used to obtain the stable weight; the stable weight is compensated by the angle curve weight compensation algorithm to obtain the compensated weight; the compensated weight is uploaded to the upper layer application to allow the addition and subtraction of shopping items;
[0012] When the smart shopping cart is stationary on an uphill escalator or a downhill escalator: the scale value weight in the real-time sensor data and the stable weight algorithm are used to obtain the stable weight; the stable weight is compensated by the angle curve weight compensation algorithm to obtain the compensated weight; the compensated weight is weight-corrected according to the uphill and downhill conditions to obtain the corrected weight; the corrected weight is uploaded to the upper layer application to allow the addition and subtraction of shopping items;
[0013] When the smart shopping cart is moving uphill, downhill or horizontally: the vehicle movement status is uploaded to the upper layer application, and adding or subtracting items is not allowed.
[0014] Optionally, the real-time sensing data is acquired through a nine-axis motion sensor or a six-axis motion sensor, including accelerations in three axes and a rotation angle and rotation angular velocity of the smart shopping cart.
[0015] Optionally, obtaining the current posture angle of the smart shopping cart through a posture angle algorithm includes:
[0016] Using a three-axis gyroscope to obtain a rotation angle and a rotation angular velocity of the smart shopping cart, and converting the rotation angle and the rotation angular velocity into a quaternion;
[0017] Calibrate the quaternion using three-axis acceleration to obtain an acceleration-calibrated quaternion;
[0018] Calibrate the quaternion using a three-axis magnetometer to obtain a magnetometer-calibrated quaternion;
[0019] Using a complementary filtering algorithm or a Kalman filtering algorithm, the quaternion after the acceleration calibration and the quaternion after the magnetometer calibration are merged to obtain the current attitude angle of the smart shopping cart;
[0020] or,
[0021] Using a three-axis gyroscope to obtain a rotation angle and a rotation angular velocity of the smart shopping cart, and converting the rotation angle and the rotation angular velocity into a quaternion;
[0022] The quaternion is calibrated using three-axis acceleration to obtain the current posture angle of the smart shopping cart.
[0023] Optionally, obtaining the current motion state of the smart shopping cart through a motion state recognition algorithm includes:
[0024] Perform the following steps within a fixed time period to obtain a motion state set including at least one motion state at a time:
[0025] According to the accelerations in the three axes in the real-time sensing data, the square root of the sum of the squares of the three axes is calculated to obtain the total acceleration;
[0026] Calculate the acceleration in the vehicle body coordinate system according to the accelerations of the three axes in the real-time sensing data and the current posture angle of the smart shopping cart;
[0027] Perform slope judgment: calculate the difference between the attitude angle in the current attitude angle of the smart shopping cart and the preset attitude angle, if the difference is greater than the downhill threshold, the smart shopping cart is determined to be in a downhill state; if the difference is less than the uphill threshold, the smart shopping cart is determined to be in an uphill state; if the difference is not greater than the downhill threshold and not less than the uphill threshold, the smart shopping cart is determined to be in a horizontal state;
[0028] Performing a stationary judgment: if the combined acceleration fluctuation value within the time window is less than a preset stationary threshold, the smart shopping cart is determined to be in a stationary state on the slope; otherwise, a moving judgment is performed;
[0029] The movement judgment includes: if the maximum fluctuation value of the acceleration in the vehicle body coordinate system within the time window is greater than a preset movement threshold, then the smart shopping cart is determined to be in a moving state; otherwise, then the smart shopping cart is determined to be in an escalator stationary state;
[0030] According to the ramp judgment, stationary judgment and moving judgment results, the motion state of the smart shopping cart is obtained as stationary on an uphill ramp, stationary on an uphill escalator, stationary on a downhill ramp, stationary on a downhill escalator, stationary horizontally, moving uphill, moving downhill or moving horizontally;
[0031] According to the set of motion states, a comprehensive evaluation and scoring is performed to obtain a final result state as the current motion state of the smart shopping cart.
[0032] Optionally, the comprehensive evaluation score includes:
[0033] Calculating the maximum acceleration jitter error and the maximum gyroscope jitter error of each motion state according to the real-time sensing data;
[0034] According to the maximum acceleration jitter error and the maximum gyroscope jitter error, the state scores are calculated respectively by the following formulas, and the maximum state score is selected as the state score of this time:
[0035] Score=1-e / c
[0036] Among them, Score represents the status score, e represents the maximum jitter error, and c represents the preset constant;
[0037] The state scores of each motion state in the motion state set are counted, the state scores of the same motion states are summed, and the motion state with the highest score is the state for final evaluation.
[0038] Optionally, obtaining the stable weight by using the scale value weight in the real-time sensor data and a stable weight algorithm includes:
[0039] The scale weight is periodically obtained within the time window to obtain a set of weight data;
[0040] The weight data is subjected to jitter analysis, and if the jitter is less than a preset stability threshold, the mean of the group of weight data is calculated as the stable weight.
[0041] Optionally, compensating the stable weight by using an angle curve weight compensation algorithm includes:
[0042] Calculate the absolute value of the change in the posture angle of the smart shopping cart x=abs(currPitch-hPitch), where abs() represents an absolute value function, currPitch represents the current posture angle, and hPitch represents the posture angle in a horizontal static state;
[0043] The stable weight is converted into a unit y = weight0 / 1000, wherein weight0 represents the stable weight in grams, and y represents the stable weight after the unit conversion in kilograms;
[0044] According to the absolute value x of the attitude angle change and the stable weight y after unit conversion, the compensation weight is calculated by the weight compensation fitting curve.
[0045] Optionally, the weight correction of the compensation weight according to uphill and downhill conditions to obtain the corrected weight includes:
[0046] When the smart shopping cart is stationary on an uphill escalator or a downhill escalator, the corrected weight is calculated by a weight correction fitting curve.
[0047] Optionally, the method for acquiring the horizontal static state posture angle hPitch includes: detecting the current motion state of the shopping cart in real time, and if the shopping cart is in a horizontal static state within a preset time, acquiring the current posture angle of the smart shopping cart as the horizontal static state posture angle hPitch of the device.
[0048] In a second aspect, the present invention provides a smart shopping cart for implementing any of the steps of the multi-sensor fusion slope weight compensation method described in the first aspect.
[0049] Compared with the prior art, the present invention has the following beneficial effects:
[0050] 1. The multi-sensor fusion ramp weight compensation method provided by the present invention can obtain the reliable weight of the user's purchase by compensating the ramp shopping weight, so as to facilitate the matching of the upper-layer application and the back-end database to make the purchase successful, save labor costs, and improve the user shopping experience;
[0051] 2. The smart shopping cart provided by the present invention can execute the steps of the multi-sensor fusion slope weight compensation method provided by the present invention, and has practical significance and good application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A flow chart of a ramp weight compensation method using multi-sensor fusion according to an embodiment of the present invention;
[0053] Figure 2 A flow chart of a slope weight compensation method using multi-sensor fusion of a nine-axis motion sensor according to an embodiment of the present invention;
[0054] Figure 3 The figure is a flow chart of weight fitting parameter calibration according to an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The technical solution of the present invention is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical solution of the present application, rather than limitations on the technical solution of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.
[0056] It should be noted that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0057] Embodiment 1 provided by the present invention:
[0058] The embodiment of the present invention discloses a ramp weight compensation method based on multi-sensor fusion, referring to Figure 1 As shown, the specific steps include:
[0059] S1, according to the real-time sensor data of the smart shopping cart, the current attitude angle of the smart shopping cart is obtained through the attitude angle algorithm;
[0060] S2, according to the real-time sensor data and the current posture angle of the smart shopping cart, obtain the current motion state of the smart shopping cart through a motion state recognition algorithm, and perform the following operations:
[0061] When the smart shopping cart is stationary on an uphill slope or a downhill slope: the scale value weight in the real-time sensor data and the stable weight algorithm are used to obtain the stable weight; the stable weight is compensated by the angle curve weight compensation algorithm to obtain the compensated weight; the compensated weight is uploaded to the upper layer application to allow the addition and subtraction of shopping items;
[0062] When the smart shopping cart is stationary on an uphill escalator or a downhill escalator: the scale value weight in the real-time sensor data and the stable weight algorithm are used to obtain the stable weight; the stable weight is compensated by the angle curve weight compensation algorithm to obtain the compensated weight; the compensated weight is weight-corrected according to the uphill and downhill conditions to obtain the corrected weight; the corrected weight is uploaded to the upper layer application to allow the addition and subtraction of shopping items;
[0063] When the smart shopping cart is moving uphill, downhill or horizontally: the vehicle movement status is uploaded to the upper layer application, and adding or subtracting items is not allowed.
[0064] Specifically,
[0065] In step S1, the real-time sensing data is acquired through a nine-axis motion sensor or a six-axis motion sensor, including accelerations in three axes and a rotation angle and rotation angular velocity of the smart shopping cart.
[0066] refer to Figure 2 As shown, in this embodiment, a nine-axis motion sensor is used, including a three-axis acceleration, a three-axis gyroscope and a three-axis magnetometer; in other embodiments, a six-axis motion sensor can also be used according to actual conditions, including a three-axis acceleration and a three-axis gyroscope; the motion sensor detects the current vehicle body state in real time, and if the vehicle body is stationary within a certain period of time, such as 2s, the horizontal static state attitude angle hPitch of the device is updated (it can also be updated when the shopping cart is idle).
[0067] When using a nine-axis motion sensor, the current attitude angle of the smart shopping cart obtained by the attitude angle algorithm includes:
[0068] Using a three-axis gyroscope to obtain a rotation angle and a rotation angular velocity of the smart shopping cart, and converting the rotation angle and the rotation angular velocity into a quaternion;
[0069] Calibrate the quaternion using three-axis acceleration to obtain an acceleration-calibrated quaternion;
[0070] Calibrate the quaternion using a three-axis magnetometer to obtain a magnetometer-calibrated quaternion;
[0071] The quaternion after the acceleration calibration and the quaternion after the magnetometer calibration are fused by using a complementary filtering algorithm or a Kalman filtering algorithm to obtain the current attitude angle of the smart shopping cart.
[0072] When a six-axis motion sensor is used, the current attitude angle of the smart shopping cart obtained by the attitude angle algorithm includes:
[0073] Using a three-axis gyroscope to obtain a rotation angle and a rotation angular velocity of the smart shopping cart, and converting the rotation angle and the rotation angular velocity into a quaternion;
[0074] The quaternion is calibrated using three-axis acceleration to obtain the current posture angle of the smart shopping cart.
[0075] In other embodiments, the Android interfaces SensorManager.getRotationMatrix and SensorManager.getOrientation may also be directly called to obtain orientation, that is, the current attitude angle of the device, including the yaw angle, the pitch angle, and the roll angle.
[0076] In step S2, obtaining the current motion state of the smart shopping cart through the motion state recognition algorithm includes:
[0077] The following steps are performed within a fixed time period (e.g., 100 milliseconds in total) to obtain a motion state set including at least one motion state at a moment:
[0078] According to the accelerations in the three axes in the real-time sensing data, the square root of the sum of the squares of the three axes is calculated to obtain the total acceleration;
[0079] Calculate the acceleration in the vehicle body coordinate system according to the accelerations of the three axes in the real-time sensing data and the current posture angle of the smart shopping cart;
[0080] Perform slope judgment: calculate the difference between the attitude angle in the current attitude angle of the smart shopping cart and the preset attitude angle, if the difference is greater than the downhill threshold (for example, 3 degrees), the smart shopping cart is determined to be in a downhill state; if the difference is less than the uphill threshold (for example, -3 degrees), the smart shopping cart is determined to be in an uphill state; if the difference is not greater than the downhill threshold and not less than the uphill threshold, the smart shopping cart is determined to be in a horizontal state;
[0081] Performing a stationary judgment: if the combined acceleration fluctuation value within the time window is less than a preset stationary threshold (for example, the stationary threshold is 0.1), the smart shopping cart is determined to be in a stationary state on the slope; otherwise, performing a moving judgment;
[0082] The movement judgment includes: if the maximum fluctuation value of the acceleration under the body coordinate system within the time window is greater than a preset movement threshold (for example, when the maximum fluctuation of the acceleration is greater than 0.25, it is moving), then the smart shopping cart is judged to be in a moving state; the mean and variance of the body acceleration, as well as the number of positive and negative values of the body acceleration can also be calculated, and it is moving if certain conditions are met, such as the variance of the body acceleration is less than 0.5 or the difference in the proportion of the number of positive and negative values is too large (the number of positive values accounts for more than 90% or the number of negative values accounts for more than 90%); otherwise, the smart shopping cart is judged to be in a stationary state of the escalator;
[0083] According to the ramp judgment, stationary judgment and moving judgment results, the motion state of the smart shopping cart is obtained as stationary on an uphill ramp, stationary on an uphill escalator, stationary on a downhill ramp, stationary on a downhill escalator, stationary horizontally, moving uphill, moving downhill or moving horizontally;
[0084] According to the set of motion states, a comprehensive evaluation and scoring is performed to obtain a final result state as the current motion state of the smart shopping cart.
[0085] The comprehensive evaluation score includes:
[0086] According to the sensing data, respectively calculating the maximum jitter error of the acceleration and the maximum jitter error of the gyroscope in each motion state;
[0087] According to the maximum acceleration jitter error and the maximum gyroscope jitter error, the state scores are calculated respectively by the following formulas, and the maximum state score is selected as the state score of this time:
[0088] Score=1-e / c
[0089] Among them, Score represents the status score, e represents the maximum jitter error, and c represents the preset constant;
[0090] The state scores of each motion state in the motion state set are counted, the state scores of the same motion states are summed, and the motion state with the highest score is the state for final evaluation.
[0091] The method of obtaining the stable weight by using the scale value weight in the real-time sensor data and the stable weight algorithm comprises:
[0092] The scale weight is periodically obtained within the time window to obtain a set of weight data;
[0093] The weight data is subjected to jitter analysis, and if the jitter is less than a preset stability threshold, the mean of the group of weight data is calculated as the stable weight.
[0094] The compensating the stable weight by using the angle curve weight compensation algorithm comprises:
[0095] Calculate the absolute value of the change in the posture angle of the smart shopping cart x=abs(currPitch-hPitch), where abs() represents an absolute value function, currPitch represents the current posture angle, and hPitch represents the posture angle in a horizontal static state;
[0096] The stable weight is converted into a unit y = weight0 / 1000, wherein weight0 represents the stable weight in grams, and y represents the stable weight after the unit conversion in kilograms;
[0097] According to the absolute value x of the attitude angle change and the stable weight y after unit conversion, the compensation weight is calculated by the weight compensation fitting curve.
[0098] In this embodiment, the fitting parameters of the weight compensation fitting curve are obtained by a polynomial fitting method. In other embodiments, the weight compensation fitting curve can also be obtained by using a trigonometric function or other fitting methods.
[0099] The weight compensation fitting curve obtained by the polynomial fitting method is as follows:
[0100] weight1=0.005633+0.1897*x+1000*y+1.303*x*x-0.04157*x*y+0.004237*x*x*x+0.158*x*x*y
[0101] Among them, weight1 represents the compensation weight.
[0102] The weight correction of the compensation weight according to the uphill and downhill conditions to obtain the corrected weight includes:
[0103] When the smart shopping cart is stationary on an uphill escalator or a downhill escalator, the corrected weight is calculated by a weight correction fitting curve.
[0104] In this embodiment, the weight-corrected fitting curve is obtained by a linear fitting method. In other embodiments, it can also be obtained by other fitting methods.
[0105] The weight correction fitting curve obtained by the linear fitting method is as follows:
[0106] When the smart shopping cart is stationary on the uphill escalator, the correction weight is calculated by the weight correction fitting curve: weight = weight1+w0*acc_mean*weight0, where w0 represents the fitting parameter on the uphill escalator, and acc_mean represents the mean value of the combined acceleration in the time window;
[0107] When the smart shopping cart is stationary on the downhill escalator, the corrected weight is calculated by the weight correction fitting curve: weight = weight1+w1*acc_mean*weight0, where w1 represents the fitting parameter on the downhill escalator, and acc_mean represents the mean value of the combined acceleration in the time window.
[0108] During the shopping process, the acceleration needs to be filtered and smoothed in real time. The purchase and subtraction business compares the weight change value with the background data to determine whether the purchase and subtraction event is successful or not.
[0109] In summary, the multi-sensor fusion ramp weight compensation method provided by the present invention compensates the weight sensor data in real time through the angle curve weight compensation algorithm to obtain a more accurate and reliable scale weight, that is, by obtaining the real-time data of the motion sensor (nine-axis motion sensor or six-axis motion sensor), the attitude angle of the device in three-dimensional space is calculated in real time (for example, based on the Kalman filtering method or Android interface), and the motion state of the device is obtained through the fluctuation of the acceleration and gyroscope. Then, according to the motion state and attitude angle of the device and the real-time scale weight of the weight sensor, weight compensation and weight correction are performed through the pre-fitting parameters to obtain a reliable scale weight.
[0110] Embodiment 2 provided by the present invention:
[0111] Based on the same inventive concept as embodiment 1, the embodiment of the present invention discloses a smart shopping cart, referring to Figure 3 As shown, the steps for implementing the ramp weight compensation method of multi-sensor fusion described in any one of the first embodiments.
[0112] In this embodiment, the smart shopping cart needs to be calibrated by the following method before the device leaves the factory:
[0113] (1) Open the calibration app;
[0114] (2) Add a certain weight of goods to the horizontal stationary shopping cart, and the calibration algorithm records the current attitude angle and the weight of the goods (nine-axis attitude angle algorithm AHRS);
[0115] (3) Place the shopping cart statically on different slopes (1 to 13 degrees, the national regulation states that the slope of shopping cart escalators in supermarkets should not exceed 13 degrees), and the calibration algorithm records the current posture angle and the weight given by the weight sensor;
[0116] (4) Change the weight of the items in the shopping cart and repeat (2));
[0117] (5) After collecting different slope data of different weights, the weight range can be 0g, 500g, 1000g, 5000g, 10000g, 15000g, 20000g;
[0118] (6) Read the built-in fitting curve parameters (for example, the weight compensation fitting curve z = 0.005633+0.1897*x+1000*y+1.303*x*x-0.04157*x*y+0.004237*x*x*x+0.158*x*x*y, where x is the absolute value of the slope and y is the scale value of the weight sensor, in kg), and calculate the compensated weight;
[0119] (7) Calculate the mean and variance of the difference between the compensation weight and the horizontal static weight. If a certain threshold is met, the parameters are not updated; otherwise, they are updated.
[0120] (8) If the compensation weight is smaller than the static weight as a whole, then increase the positive dependent variable parameters by a certain percentage item by item; otherwise, reduce the positive dependent variable parameters and increase the negative dependent variable parameters by a certain percentage; calculate the compensation weight and the static weight, and stop if the threshold is met, otherwise continue (8));
[0121] (9) The updated parameters are saved to the device.
[0122] In summary, the slope weight compensation method and smart shopping cart provided by the present invention based on multi-sensor fusion have the following beneficial effects:
[0123] 1. The real-time motion state and attitude angle of the smart shopping cart body are identified through the nine-axis motion sensor, and the scale weight data of the trustworthy weight sensor is obtained within the horizontal moving acceleration range and when the cart is horizontally stationary. The pitch angle difference between the ramp stationary or escalator stationary and the horizontal stationary is calculated based on the state identification. The pitch angle and weight are used as dependent variables to calculate the compensated scale weight data through the pre-fitted curve (such as polynomial), so as to obtain the weight of the goods purchased by the user, which is convenient for the upper-layer application to match with the back-end database to make the purchase successful;
[0124] 2. The factory optimizes the fitting parameters by setting different angles and weights to make the fitting parameters more consistent with the weight sensor of the vehicle.
[0125] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0126] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0127] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0129] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.
Claims
1. A ramp weight compensation method based on multi-sensor fusion, characterized in that: include: According to the real-time sensor data of the smart shopping cart, the current attitude angle of the smart shopping cart is obtained through the attitude angle algorithm; According to the real-time sensor data and the current posture angle of the smart shopping cart, the current motion state of the smart shopping cart is obtained through a motion state recognition algorithm, and the following operations are performed: When the smart shopping cart is in a horizontal state, a stable weight is obtained by using the scale value weight in the real-time sensor data and a stable weight algorithm, and the stable weight is uploaded to an upper layer application as a trusted weight, allowing the purchase of items to be added or subtracted; When the smart shopping cart is stationary on an uphill slope or a downhill slope: the scale value weight in the real-time sensor data and the stable weight algorithm are used to obtain the stable weight; the stable weight is compensated by the angle curve weight compensation algorithm to obtain the compensated weight; the compensated weight is uploaded to the upper layer application to allow the addition and subtraction of shopping items; When the smart shopping cart is stationary on an uphill escalator or a downhill escalator: the scale value weight in the real-time sensor data and the stable weight algorithm are used to obtain the stable weight; the stable weight is compensated by the angle curve weight compensation algorithm to obtain the compensated weight; the compensated weight is weight-corrected according to the uphill and downhill conditions to obtain the corrected weight; the corrected weight is uploaded to the upper layer application to allow the addition and subtraction of shopping items; When the smart shopping cart is moving uphill, downhill or horizontally: the vehicle movement status is uploaded to the upper layer application, and adding or subtracting items is not allowed; The obtaining of the current motion state of the smart shopping cart by using the motion state recognition algorithm includes: Perform the following steps within a fixed time period to obtain a motion state set including at least one motion state at a time: According to the accelerations in the three axes in the real-time sensing data, the square root of the sum of the squares of the three axes is calculated to obtain the total acceleration; Calculate the acceleration in the vehicle body coordinate system according to the accelerations of the three axes in the real-time sensing data and the current posture angle of the smart shopping cart; Perform slope judgment: calculate the difference between the attitude angle in the current attitude angle of the smart shopping cart and the preset attitude angle, if the difference is greater than the downhill threshold, the smart shopping cart is determined to be in a downhill state; if the difference is less than the uphill threshold, the smart shopping cart is determined to be in an uphill state; if the difference is not greater than the downhill threshold and not less than the uphill threshold, the smart shopping cart is determined to be in a horizontal state; Performing a stationary judgment: if the combined acceleration fluctuation value within the time window is less than a preset stationary threshold, the smart shopping cart is determined to be in a stationary state on the slope; otherwise, a moving judgment is performed; The movement judgment includes: if the maximum fluctuation value of the acceleration in the vehicle body coordinate system within the time window is greater than a preset movement threshold, then the smart shopping cart is determined to be in a moving state; otherwise, then the smart shopping cart is determined to be in an escalator stationary state; According to the ramp judgment, stationary judgment and moving judgment results, the motion state of the smart shopping cart is obtained as stationary on an uphill ramp, stationary on an uphill escalator, stationary on a downhill ramp, stationary on a downhill escalator, stationary horizontally, moving uphill, moving downhill or moving horizontally; Comprehensively evaluate and score the motion state at each moment in the motion state set, and obtain the final result state as the current motion state of the smart shopping cart; The comprehensive evaluation score includes: Calculating respectively the maximum jitter error of acceleration and the maximum jitter error of gyroscope of the motion state at each moment in the motion state set according to the real-time sensing data; According to the maximum jitter error of the acceleration and the maximum jitter error of the gyroscope, the state scores are calculated respectively by the following formulas, and the maximum state score is selected as the state score at the moment: Score=1-e / c Among them, Score represents the status score, e represents the maximum jitter error of the acceleration or the maximum jitter error of the gyroscope, and c represents the preset constant; The state scores of each motion state in the motion state set are counted, the state scores of the same motion states are summed, and the motion state with the highest score is the state for final evaluation.
2. The ramp weight compensation method based on multi-sensor fusion according to claim 1, characterized in that: The real-time sensing data is obtained through a nine-axis motion sensor or a six-axis motion sensor, including accelerations in three axes and a rotation angle and rotation angular velocity of the smart shopping cart.
3. The ramp weight compensation method based on multi-sensor fusion according to claim 2 is characterized in that: The current posture angle of the smart shopping cart obtained by the posture angle algorithm includes: Using a three-axis gyroscope to obtain a rotation angle and a rotation angular velocity of the smart shopping cart, and converting the rotation angle and the rotation angular velocity into a quaternion; Calibrate the quaternion using three-axis acceleration to obtain an acceleration-calibrated quaternion; Calibrate the quaternion using a three-axis magnetometer to obtain a magnetometer-calibrated quaternion; Using a complementary filtering algorithm or a Kalman filtering algorithm, the quaternion after the acceleration calibration and the quaternion after the magnetometer calibration are merged to obtain the current attitude angle of the smart shopping cart; or, Using a three-axis gyroscope to obtain a rotation angle and a rotation angular velocity of the smart shopping cart, and converting the rotation angle and the rotation angular velocity into a quaternion; The quaternion is calibrated using three-axis acceleration to obtain the current posture angle of the smart shopping cart.
4. The ramp weight compensation method based on multi-sensor fusion according to claim 1, characterized in that: The method of obtaining the stable weight by using the scale value weight in the real-time sensor data and the stable weight algorithm comprises: The scale weight is periodically obtained within the time window to obtain a set of weight data; The weight data is subjected to jitter analysis, and if the jitter is less than a preset stability threshold, the mean of the group of weight data is calculated as the stable weight.
5. The ramp weight compensation method based on multi-sensor fusion according to claim 4 is characterized in that: The compensating the stable weight by using the angle curve weight compensation algorithm comprises: Calculate the absolute value of the change in the posture angle of the smart shopping cart x=abs(currPitch-hPitch), where abs() represents an absolute value function, currPitch represents the current posture angle, and hPitch represents the horizontal static state posture; The stable weight is converted into a unit y = weight0 / 1000, wherein weight0 represents the stable weight in grams, and y represents the stable weight after the unit conversion in kilograms; According to the absolute value x of the attitude angle change and the stable weight y after unit conversion, the compensation weight is calculated by the weight compensation fitting curve.
6. The multi-sensor fusion ramp weight compensation method according to claim 5, characterized in that: The weight correction of the compensation weight according to the uphill and downhill conditions to obtain the corrected weight includes: When the smart shopping cart is stationary on an uphill escalator or a downhill escalator, the corrected weight is calculated by a weight correction fitting curve.
7. The ramp weight compensation method based on multi-sensor fusion according to claim 5, characterized in that: The method for obtaining the horizontal static state attitude angle hPitch includes: detecting the current motion state of the shopping cart in real time, and if the shopping cart is in a horizontal static state within a preset time, obtaining the current attitude angle of the smart shopping cart as the horizontal static state attitude angle hPitch of the device.
8. A smart shopping cart, characterized in that: Steps for implementing the slope weight compensation method of multi-sensor fusion described in any one of claims 1-7.
Citation Information
Patent Citations
Supermarket shopping guide robot based on ROS and artificial intelligence algorithm
CN111660313A
Supermarket intelligent shopping cart and shopping method
CN115374982A
Intelligent shopping cart and weighing system and weighing method thereof
CN117109713A
