Weight measuring method and device of liquid electronic scale and electronic scale
Through the weight measurement method of liquid electronic scales, sensor arrays and linear regression algorithms are used to solve the problems of existing electronic scales in measured value fluctuations, physical coupling and complex working conditions adaptability, and achieve fast and high-precision object weighing and maintain high accuracy in harsh environments.
Patent Information
- Application Number
- CN202510465066.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-15
- Publication Date
- 2025-05-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing electronic scales have problems with repeated fluctuations in measured values, multi-physics coupling interference and poor adaptability in complex working conditions, resulting in low measurement accuracy, especially in high vibration and extreme temperature environments.
The weight measurement method of liquid electronic scale is used to collect weight information through the sensor array, identify the contact data between the liquid surface and the mask, and use a linear regression algorithm to correct the temperature information of the liquid and object to generate correction signals, thereby improving the accuracy and stability of weight measurement.
Fast and high-precision object weighing is achieved, weighing operations can be completed within speeds below 1s/time, and high measurement accuracy is maintained under high vibration and extreme temperature environments.
Smart Images

Figure CN120063444A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic scales, and particularly to a method and device for measuring the weight of a liquid electronic scale and an electronic scale. Background Art
[0002] As a basic tool for mass measurement, electronic scales are widely used in industrial, commercial, and scientific research fields. Traditional electronic scales are mostly based on strain gauge sensors or electromagnetic force compensation principles, and achieve weight measurement by detecting the pressure or deformation exerted by an object. The market has a surging demand for weighing devices with fast speed, high precision, and anti-interference environments. However, the following core problems exist in the prior art and need to be solved urgently: The problem of repeated fluctuations in measurement values; Lack of a comprehensive compensation mechanism for the coupling interference of multiple physical fields (temperature, buoyancy, viscosity); Poor adaptability to complex working conditions, such as a sharp drop in accuracy in high-vibration environments and extreme temperature gradient scenarios. Summary of the Invention
[0003] The main purpose of the present invention is to provide a method and device for measuring the weight of a liquid electronic scale and an electronic scale, To achieve the above purpose, the method for measuring the weight of a liquid electronic scale provided by the present invention includes the following steps: Obtain a plurality of first weight information collected by a sensor array at preset time intervals; Identify the contact data between the liquid level in the electronic scale and the mask, and select a plurality of the first weight information through the contact data to obtain second weight information; Compare and mark the liquid temperature information and object temperature information at the moment of the second weight information, and use a linear regression algorithm to perform regression correction on the liquid temperature information and object temperature information, and generate a correction signal; Correct the second weight information through the correction signal to obtain the third weight information, and the third weight information is displayed through an electronic scale.
[0004] Further, the step of identifying the contact data between the liquid level in the electronic scale and the mask includes: Obtain the electrical signals of each contact point when the mask contacts the liquid; Identify the distribution data of a plurality of mask contact points corresponding to the generated electrical signals, and obtain the contact data of the liquid level distribution in the electronic scale.
[0005] Further, the step of selecting a plurality of the first weight information through the contact data to obtain second weight information includes: Judge the moment when the liquid level distribution of the liquid in the electronic scale on the mask is the most uniform and the liquid thickness is the most average in the data information of the contact data; Determine the corresponding second weight information from several pieces of the first weight information by using the mapping relationship at this moment.
[0006] Further, the step of determining the moment when the liquid level distribution of the liquid in the electronic scale on the mask is the most uniform and the liquid thickness is the most average in the data information of the contact data includes: Retrieve the time-axis data of the object placed on the electronic scale, and the time-axis data is preset with an interval of 24 frames to 60 frames. Lock the moment when the liquid level distribution of the liquid in the electronic scale on the mask is the most uniform and the liquid thickness is the most average in the contact data in the time-axis data.
[0007] Further, the step of marking the liquid temperature information and the object temperature information at the moment of the second weight information, and performing regression correction on the liquid temperature information and the object temperature information by using the linear regression algorithm and generating a correction signal includes: Obtain the record corresponding to the second weight information, extract the liquid temperature data and the object temperature data from the record to obtain the first temperature data set. Process the liquid temperature data and the object temperature data by using the linear regression algorithm through the first temperature data set to obtain the regression coefficient and the corresponding correction signal; wherein, the linear regression algorithm includes:
[0008] Wherein, T liqui represents the liquid temperature data, t represents the moment corresponding to the second weight information, W represents the object weight at the moment, T object represents the object temperature, α represents the weight output judgment coefficient, β represents the object temperature data, and γ represents the correction value. In the formula, when having the time axis, the liquid temperature data and the object temperature data, the rest of the data will be generated correspondingly in the formula, and the determination of the specific output correction value is determined by the weight output judgment coefficient α. When the weight output judgment coefficient α = 1, the corresponding correction value γ is output correspondingly to form a correction signal.
[0009] Further, the step of correcting the second weight information by using the correction signal to obtain the third weight information and displaying the third weight information through an electronic scale includes: Identify the weight correction value corresponding to the correction signal, and add the weight correction value to the second weight information to obtain the third weight information. The third weight information is displayed through an electronic scale.
[0010] Further, the step of obtaining several pieces of first weight information collected by the sensor array at a preset time interval includes: Acquire multiple sets of first weight information collected by the sensor array within a preset time interval, determine the collection frequency through array configuration, and obtain an initial data set; Extract weight information from the initial data set, divide multiple groups of data into time intervals, and for the content of the segmented data, if the collection frequency is higher than a preset threshold, process each first weight information through a mean filter algorithm to obtain smooth data; According to the smoothed data, the relationship between each piece of first weight information and the time interval is analyzed, the variation coefficient value is identified, and a weight data sequence carrying a number of the first weight information is obtained.
[0011] Furthermore, the mean filtering algorithm includes:
[0012] Wherein, R(t) represents the weight change rate, dW / dt represents the derivative of weight with respect to time, β represents the sensitivity coefficient of the electronic scale, and the sensitivity coefficient β of the electronic scale is adjusted accordingly according to the weight change rate R(t).
[0013] The present invention also provides a liquid electronic scale weighing device, comprising: A collection unit, used to obtain a plurality of first weight information collected by the sensor array at a preset time interval; A selection unit, used for identifying contact data between the liquid surface in the electronic scale and the mask, and selecting a plurality of the first weight information according to the contact data to obtain second weight information; a calculation unit, configured to perform regression correction on the liquid temperature information and the object temperature information at the moment when the second weight information is marked by using a linear regression algorithm, and generate a correction signal; The correction unit is used to correct the second weight information through the correction signal to obtain the third weight information, and the third weight information is displayed through the electronic scale.
[0014] The present invention also proposes a liquid electronic scale, which has a specified liquid built in and is divided into a weighing layer, a liquid layer, a mask layer and a component layer from top to bottom. The liquid electronic scale executes the above-mentioned liquid electronic scale weighing method, and various units of the liquid electronic scale weighing device are deployed in the component layer.
[0015] The liquid electronic scale weight measurement method, device and electronic scale provided by the present invention have the following beneficial effects: By embedding liquid into the electronic scale, the proposed electronic scale weighing method can achieve accurate and rapid weighing of objects, with a performance of weighing speed of less than 1s / time. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic flowchart of the weighing method of a liquid electronic scale in an embodiment of the present invention; Figure 2 It is a structural block diagram of a liquid electronic scale weighing device in an embodiment of the present invention; Figure 3 It is a schematic structural diagram of a liquid electronic scale in an embodiment of the present invention.
[0017] The realization of the purpose of the present invention, functional characteristics and advantages will be further described with reference to the embodiments and the accompanying drawings. Specific embodiments
[0018] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0019] Referring to Figure 1 , it is a schematic flowchart of a weighing method for a liquid electronic scale proposed by the present invention, including the following steps: S1. Obtain a plurality of first weight information collected by the sensor array at a preset time interval; S2. Identify the contact data between the liquid level in the electronic scale and the mask, and select a plurality of the first weight information through the contact data to obtain second weight information; S3. Mark the liquid temperature information and object temperature information at the moment of the second weight information, and use the linear regression algorithm to perform regression correction on the liquid temperature information and object temperature information, and generate a correction signal; S4. Correct the second weight information through the correction signal to obtain the third weight information, and the third weight information is displayed through the electronic scale.
[0020] In one embodiment, for step S1, Obtain multiple groups of first weight information collected by the sensor array within a preset time interval, determine the acquisition frequency through array configuration to obtain an initial data set; Extract weight information from the initial data set, divide multiple groups of data by time interval, and for the segmented data content, if the acquisition frequency is higher than a preset threshold, process each first weight information through the mean filtering algorithm to obtain smooth data at the same time; According to the smooth data, analyze the relationship between each first weight information and the time interval, identify the change coefficient value, and obtain a weight data sequence carrying a plurality of the first weight information.
[0021] Among them, the mean filtering algorithm includes:
[0022] Among them, R(t) represents the weight change rate, dW / dt represents the derivative of weight with respect to time, and β represents the electronic scale sensitivity coefficient. The electronic scale sensitivity coefficient β is adjusted correspondingly according to the weight change rate R(t).
[0023] In the process of specific implementation, Obtain multiple groups of first weight information collected by the sensor array within a preset time interval, determine the acquisition frequency through array configuration, and obtain an initial data set.
[0024] For example, assume a liquid electronic scale uses a sensor array to collect the weight information of an object once every 1 second for 60 consecutive seconds, obtaining 60 groups of data to form an initial data set (i.e., each first weight information).
[0025] The sensor array may consist of multiple weighing units, and the acquisition frequency can be set to 1 time per second or higher, such as 5 times per second, in the configuration to meet the requirements of different scenarios.
[0026] If the acquisition frequency is higher than the preset threshold, for example, the threshold is set to 3 times per second and the actual frequency is 5 times per second, the data may appear to fluctuate greatly due to noise interference.
[0027] At this time, process each first weight information through the mean filtering algorithm, for example, take the average of every 10 data segments to obtain smoothed data.
[0028] Exemplarily, a certain data segment is 10.2, 10.5, 10.3, 10.6, 10.4 kg, and after mean filtering, it is 10.4 kg.
[0029] This method can effectively reduce the influence of short-term fluctuations and improve the stability of the data.
[0030] According to the smoothed data, analyze the relationship between each first weight information and the time interval, identify the change coefficient value, and obtain the weight data sequence.
[0031] In a possible implementation manner, assume that the smoothed data is 10.4, 10.5, 10.6, 10.7, 10.8, 10.9 kg in 6 segments, with each segment interval of 10 seconds. Then the weight increases by 0.1 kg every 10 seconds, and the change coefficient is 0.01 kg / s.
[0032] Preferably, the trend can be further confirmed through linear fitting to generate a sequence containing time and weight information, such as (0, 10.4), (10, 10.5), (20, 10.6).
[0033] In one embodiment, for step S2, The step of identifying the contact data between the liquid level in the electronic scale and the mask includes: Obtain the electrical signals of each contact when the mask contacts the liquid; Identify the distribution data of several mask contacts corresponding to the generated electrical signals, and obtain the contact data of the liquid level distribution in the electronic scale.
[0034] Specifically, the mask belongs to an electronic film, and several electrical signal contacts are evenly laid. When the contacts touch water, electrical signals will be excited. Specifically, the contacts on the mask are connected to electricity. When the contacts touch water, the resistance value increases and fluctuates, and corresponding electrical signals will be generated.
[0035] In one embodiment, the step of selecting several of the first weight information through the contact data to obtain the second weight information includes: Judge the moment when the liquid level distribution of the liquid in the electronic scale on the mask is the most uniform and the liquid thickness is the most average in the data information of the contact data; Use the mapping relationship at this moment to determine the corresponding second weight information from several of the first weight information.
[0036] Specifically, The mask layer is a 10 cm × 10 cm area, with 100 circular contacts (diameter 2 mm, spacing 8 mm) evenly distributed. Each contact is connected to an independent resistance circuit. When the contact is covered by liquid, the resistance value drops to ≤ 50 Ω (10 kΩ when not covered). The contact resistance state is collected at 30 frames per second (i.e., time interval ≈ 33 ms) to generate a contact data matrix. At t = 1.2 s, the contact coverage rate is 82%; at t = 1.5 s, the coverage rate increases to 95%.
[0037] Conclusion: By quantifying the liquid level uniformity index, the weight data at t = 1.5 s is accurately screened, avoiding an error of ±0.1 kg caused by liquid level fluctuations.
[0038] Specifically, the step of judging the moment when the liquid level distribution of the liquid in the electronic scale on the mask is the most uniform and the liquid thickness is the most average in the data information of the contact data includes: Retrieve the time-axis data of the object placed on the electronic scale. The time-axis data is preset to use 24 frames to 60 frames as an interval; Lock the moment when the liquid level distribution of the liquid in the electronic scale on the mask is the most uniform and the liquid thickness is the most average in the contact data in the time-axis data.
[0039] Regarding the thickness, use the liquid layer pressure sensor to calculate the variance of the liquid level thickness , determination condition σthickness <0.3 mm², which is the optimal thickness.
[0040] The main control chip of the liquid electronic scale has a built-in clock module (error ±1 ppm). When starting up, it generates a unified time axis with a precision of millisecond level.
[0041] Align and store the first weight information (W 1 , W 2 , ..., W n ) of the sensor array with the contact data (C 1 , C 2 ,..., C n ) of the mask contacts along the time axis in the following format: Timestamp | Weight Data | Contact Matrix | Liquid Thickness ---------------------------------------------------------- 0.000s | 0.00kg | 0x00...00 | 0.0mm 0.033s | 0.15kg | 0x3F...A1 | 1.2mm ... Frame rate setting: According to the user's selection or automatically adapting to the liquid viscosity, the preset acquisition frame rates are three gears: 24 / 30 / 60 fps (in this embodiment, 30 fps is taken as an example, that is, the time interval ≈ 33.3 ms).
[0042] Locking of the best moment and selection of the second weight information data For the 30-frame data within each time window, calculate the CV and R values frame by frame. Among the candidate frames that satisfy CV < 5% and R < 0.8 mm, select the frame with the smallest comprehensive value of CV + R as the best moment.
[0043] Comprehensive value = 0.7 × CV + 0.3 × R (weight). For example, the comprehensive value of frame 16 = 0.7 × 3.8 + 0.3 × 0.5 = 2.81, which is better than 3.09 of frame 15. Therefore, lock the moment corresponding to frame 16, t = 2.533 s, and at the same time lock the weight value at this moment as the second weight information.
[0044] In one embodiment, the steps of marking the liquid temperature information and the object temperature information at the moment of the second weight information and using the linear regression algorithm to perform regression correction on the liquid temperature information and the object temperature information and generating a correction signal include: Obtain the record corresponding to the moment of the second weight information, extract the liquid temperature data and the object temperature data from the record, and obtain the first temperature dataset; Through the first temperature dataset, use the linear regression algorithm to process the liquid temperature data and the object temperature data to obtain the regression coefficient and the corresponding correction signal; wherein, the linear regression algorithm includes:
[0045] wherein, T liqui represents the liquid temperature data, t represents the moment corresponding to the second weight information, W represents the object weight at the moment, T object represents the object temperature, α represents the weight output judgment coefficient, β represents the object temperature data, and γ represents the correction value; In the formula, through the time axis available, when there is liquid temperature data and object temperature data, the rest of the data will be generated correspondingly in the formula, and the determination of the specific output correction value is determined by the weight output judgment coefficient α. Set the weight output judgment coefficient α = 1, and the corresponding correction value γ is output correspondingly to form a correction signal.
[0046] In a specific implementation process, using the liquid temperature sensor and the object temperature sensor included in the sensor array, for the upper part, use the object temperature sensor to measure the object temperature, and for the lower part, use the liquid temperature sensor to measure the temperature of the liquid in the electronic scale.
[0047] Liquid temperature sensor: 4 PT100 platinum resistors (accuracy ±0.1 °C) are embedded in the liquid layer, and the average value is taken as T_liquid.
[0048] Object temperature sensor: An infrared temperature measurement module is installed on the surface of the weighing layer to measure Tobject.
[0049] Data synchronization mechanism: The main control chip (STM32H743) triggers temperature acquisition at the selected moment t of the second weight information in the form of a hardware interrupt, ensuring that the time deviation < 1 ms. 0 Trigger temperature acquisition to ensure that the time deviation < 1 ms.
[0050] Verification of correction effect In one embodiment, the step of correcting the second weight information through the correction signal to obtain the third weight information and displaying the third weight information through an electronic scale includes: Identify the weight correction value corresponding to the correction signal, and add the weight correction value to the second weight information to obtain the third weight information; The third weight information is displayed through an electronic scale.
[0051] Reference appendix Figure 2The structural block diagram of a liquid electronic scale weighing device proposed by the present invention includes: An acquisition unit for obtaining a plurality of first weight information collected by a sensor array at a preset time interval; A selection unit for identifying the contact data between the liquid level in the electronic scale and the mask, and selecting a plurality of the first weight information through the contact data to obtain second weight information; A calculation unit for marking the liquid temperature information and the object temperature information at the moment of the second weight information, and performing regression correction on the liquid temperature information and the object temperature information by using a linear regression algorithm, and generating a correction signal; A correction unit for correcting the second weight information through the correction signal to obtain the third weight information, and the third weight information is displayed by the electronic scale Reference appendix Figure 3 The structural schematic diagram of a liquid electronic scale proposed by the present invention. The liquid electronic scale is internally provided with a specified liquid, and is divided into a weighing layer, a liquid layer, a mask layer and a component layer from top to bottom, and executes the above-mentioned liquid electronic scale weighing method, and each unit of the liquid electronic scale weighing device is deployed in the component layer.
[0052] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention. Any equivalent structural or equivalent process transformation made by using the specification and drawings of the present invention, or directly or indirectly applied to other related technical fields, shall be equally included in the patent protection scope of the present invention.
Claims
1. A liquid electronic scale weighing method, characterized in that: The following steps are involved: Acquire a plurality of first weight information collected by the sensor array at preset time intervals; Identifying contact data between the liquid surface in the electronic scale and the mask, and selecting a plurality of the first weight information according to the contact data to obtain second weight information; Using a linear regression algorithm to perform regression correction on the liquid temperature information and the object temperature information at the moment when the second weight information is marked, and generating a correction signal; The second weight information is corrected by the correction signal to obtain the third weight information, and the third weight information is displayed by an electronic scale.
2. The liquid electronic balance weight measurement method according to claim 1, characterized in that: The step of identifying contact data between the liquid surface in the electronic scale and the mask comprises: Acquiring electrical signals of each contact point when the mask contacts the liquid; The distribution data of a plurality of mask contacts corresponding to the generated electrical signals are identified, and the contact data of the distribution of the liquid level in the electronic scale is obtained.
3. The liquid electronic balance weight measurement method according to claim 1, characterized in that: The step of selecting a plurality of the first weight information through the contact data to obtain the second weight information comprises: Determine the moment when the liquid surface of the liquid in the electronic scale on the mask is most evenly distributed and the liquid thickness is most average in the data information of the contact data; The corresponding second weight information is determined from a plurality of the first weight information using the mapping relationship at the moment.
4. The liquid electronic balance weight measurement method according to claim 3, characterized in that: The step of determining the time when the liquid surface of the liquid in the electronic scale on the mask is most evenly distributed and the liquid thickness is most average in the data information of the contact data comprises: Retrieving the time axis data of the object placed on the electronic scale, wherein the time axis data is preset to use 24 frames to 60 frames as an interval; The time when the liquid surface distribution of the liquid in the electronic scale on the mask in the contact data is most uniform and the liquid thickness is most average is locked in the time axis data.
5. The liquid electronic balance weight measurement method according to claim 1, characterized in that: The step of performing regression correction on the liquid temperature information and the object temperature information at the moment when the second weight information is marked by using a linear regression algorithm and generating a correction signal comprises: Obtaining a record of a time corresponding to the second weight information, extracting liquid temperature data and object temperature data from the record, and obtaining a first temperature data set; Using the first temperature data set, a linear regression algorithm is used to process the liquid temperature data and the object temperature data to obtain a regression coefficient and a corresponding correction signal; wherein the linear regression algorithm includes: Among them, T liqui represents the liquid temperature data, t represents the time corresponding to the second weight information, W represents the weight of the object at that time, T object represents the object temperature, α represents the weight output judgment coefficient, β represents the object temperature data, and γ represents the correction value; In the formula, when the time axis, liquid temperature data and object temperature data are provided, the remaining data will be generated in the formula accordingly, and the judgment of the specific output correction value is determined by the weight output judgment coefficient α, so that the weight output judgment coefficient α=1, and the corresponding correction value γ is output accordingly to form a correction signal.
6. The liquid electronic balance weight measurement method according to claim 5, characterized in that: The step of correcting the second weight information by using the correction signal to obtain the third weight information, and displaying the third weight information by using an electronic scale, comprises: identifying a weight correction value corresponding to the correction signal, and adding the weight correction value to the second weight information to obtain the third weight information; The third weight information is displayed by an electronic scale.
7. The liquid electronic balance weight measurement method according to claim 1, characterized in that: The step of acquiring a plurality of first weight information collected by the sensor array at a preset time interval includes: Acquire multiple sets of first weight information collected by the sensor array within a preset time interval, determine the collection frequency through array configuration, and obtain an initial data set; Extract weight information from the initial data set, divide multiple groups of data into time intervals, and for the content of the segmented data, if the collection frequency is higher than a preset threshold, process each first weight information through a mean filtering algorithm to obtain smooth data; According to the smoothed data, the relationship between each piece of first weight information and the time interval is analyzed, the variation coefficient value is identified, and a weight data sequence carrying a number of the first weight information is obtained.
8. The liquid electronic balance weight measurement method according to claim 7, characterized in that: The mean filtering algorithm comprises: Wherein, R(t) represents the weight change rate, dW / dt represents the derivative of weight with respect to time, β represents the sensitivity coefficient of the electronic scale, and the sensitivity coefficient β of the electronic scale is adjusted accordingly according to the weight change rate R(t).
9. A liquid electronic weighing device, characterized in that: include: A collection unit, used to obtain a plurality of first weight information collected by the sensor array at a preset time interval; A selection unit, used for identifying contact data between the liquid surface in the electronic scale and the mask, and selecting a plurality of the first weight information according to the contact data to obtain second weight information; a calculation unit, configured to perform regression correction on the liquid temperature information and the object temperature information at the moment when the second weight information is marked by using a linear regression algorithm, and generate a correction signal; The correction unit is used to correct the second weight information through the correction signal to obtain the third weight information, and the third weight information is displayed through the electronic scale.
10. A liquid electronic scale, characterized in that: The liquid electronic scale has a specified liquid built in, and is divided into a weighing layer, a liquid layer, a mask layer and a component layer from top to bottom. The liquid electronic scale executes the liquid electronic scale weighing method described in any one of claims 1-8, and each unit of the liquid electronic scale weighing device is deployed in the component layer.