Electronic weighing result intelligent correction method and system based on ai

By establishing a hardware synchronization link through AI correction methods, dynamically adjusting the touch interference mask range, and combining the weight change trend and touch equivalence calculation, the problem of weighing deviation caused by touch screen pressing is solved, and efficient and accurate weighing result output is achieved.

CN123155007APending Publication Date: 2026-11-24BUSINESS SCHOOL OF ANHUI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611339305.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-01
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

When users select functions or set parameters on the touchscreen of existing electronic scales, the pressure of their fingers can cause instantaneous fluctuations and residual vibrations in the weighing sample value. The existing processing methods result in weighing deviations or reduced efficiency, and increase hardware costs.

Method used

An AI-based intelligent correction method for electronic weighing results is adopted. By establishing a hardware synchronization link between touch events and weighing sampling, the touch interference mask range is dynamically adjusted. Combined with the weight change trend and touch equivalence calculation, the conducted interference caused by touch and the actual weight change are accurately separated. Multi-feature recognition and compensation algorithms are used to output the final corrected weighing result.

Benefits of technology

Without increasing hardware costs, it accurately separates touch interference from actual weight changes, improves weighing accuracy and efficiency, shortens response time, avoids residual vibration from being included in the results, and supports normal weighing processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123155007A_ABST
    Figure CN123155007A_ABST
Patent Text Reader

Abstract

This invention relates to the field of electronic weighing technology. Specifically, it relates to an AI-based intelligent correction method and system for electronic weighing results. A hardware synchronization link is established by directly connecting the effective touch trigger terminal of the touch IC to the external interrupt terminal of the weighing AI correction unit, achieving high-precision time synchronization of touch events. After detecting an effective touch, a touch interference mask interval covering the entire touch process is dynamically marked. General filtering is paused on the sampled values ​​within the interval. The weight change trend is obtained through iterative fitting based on the converged sampled values ​​before the interval. An interference-free weight reference value is obtained by extrapolating using zero-point drift compensation and creep compensation. The equivalent value of touch conduction is calculated by combining position correction, time-shift alignment, and waveform matching. The true weight step and structural residual vibration are distinguished through multi-feature weighted residual identification. After completing the sampled value correction, the stability judgment timer counts and directly continues the stability judgment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic weighing technology, and more specifically, to an AI-based intelligent correction method and system for electronic weighing results. Background Technology

[0002] With the increasing integration of functions in smart electronic scales, more and more scales are equipped with touch screens for human-computer interaction. When users select functions or set parameters via the touch screen during weighing, the pressure from their fingers is transmitted through the scale's metal structure to the load cell, causing instantaneous fluctuations and residual vibrations in the weighing sample value. Existing methods for handling this type of touch interference mostly employ general sliding filtering or fixed-time shielding. General filtering smooths out the pulse interference generated by the touch, but it remains in the final weight result, causing weighing deviation. Fixed-time shielding interrupts normal sampling during user operation and makes it difficult to distinguish the actual weight changes of the object being weighed when the user adds or removes it. Some solutions add an extra pressure sensor to detect touch force, which incurs additional hardware costs. At the same time, existing solutions reset the weight stabilization judgment timer after detecting a touch, requiring a wait for weight stabilization after each touch operation, increasing weighing waiting time and affecting weighing efficiency. To solve this technical problem, we provide an AI-based intelligent correction method and system for electronic weighing results. Summary of the Invention

[0003] The purpose of this invention is to provide an AI-based intelligent correction method and system for electronic weighing results, in order to solve the problems mentioned in the background art.

[0004] To achieve the above objectives, one objective of this invention is to provide an AI-based intelligent correction method for electronic weighing results. The electronic weighing device has a built-in weighing AI correction unit and an AI weighing correction model running within the weighing AI correction unit. The method includes the following steps: Establish a hardware synchronization link between touch events and weighing sampling, and electrically connect the effective touch trigger terminal of the touch IC of the touch screen to the external interrupt terminal of the weighing AI correction unit; When the touch IC detects a valid touch event, it sends a synchronization time stamp signal to the weighing AI correction unit to mark the start and release times of the touch press. At the same time, it obtains the coordinate information and pressure information of this touch through the native driver interface of the touch screen. During the operation of the AI ​​weighing correction model, after receiving the synchronization time stamp signal, the corresponding time interval covering the entire touch process is marked as the touch interference mask interval, and the weighing sensor sampling values ​​within the touch interference mask interval are paused to perform general interference filtering processing. The weight change trend is calculated based on the converged weight sample values ​​before the start time of the touch interference mask interval, and the weight reference value of the touch interference mask interval under no interference state is extrapolated. Call the factory-pre-calibrated touch coordinate and force transmission coefficient mapping table, and combine the coordinate information and pressure information of this touch to calculate the touch equivalent force value transmitted to the weighing sensor. The residual signal is obtained by subtracting the weight reference value and the equivalent value of touch from the actual sampled value in the touch interference masking interval. The residual signal is then subjected to feature recognition. The residuals that conform to the continuous weight step characteristics are included in the real weight, and the residuals that conform to the damped oscillation characteristics are determined to be structural residual vibrations and are removed. The corrected sampled value of the touch interference masking interval is obtained. The weight stability determination timer maintains its count state within the touch interference mask interval. After the touch interference mask interval ends, the weight stability determination continues based on the corrected sampled values, and the final corrected weighing result is output. The second objective of this invention is to provide a system for implementing an AI-based intelligent correction method for electronic weighing results, including a touch and weighing synchronization module, a mask interval marking module, a weight trend calculation module, a weight benchmark extrapolation module, a touch equivalence calculation module, a residual processing module, and a stability determination and adaptation module.

[0005] Compared with the prior art, the beneficial effects of the present invention are as follows: This invention utilizes a hardware synchronization link scheme that directly connects the original trigger pin of the touch IC to the external interrupt terminal of the weighing AI correction unit. This achieves high-precision time synchronization between touch events and weighing sampling without increasing hardware costs. A dynamically adjusted touch interference mask interval precisely separates interference signals, avoiding residual interference issues caused by general filtering. Combined with zero-point drift compensation and creep compensation for weight benchmark extrapolation, and touch equivalence calculation considering structural conduction distance attenuation and waveform characteristics, it accurately separates conducted interference from actual weight changes caused by touch. A multi-feature weighted residual recognition scheme accurately distinguishes between the actual weight jump of material added or removed during touch and the residual vibration of structural free vibration. It neither misses recording the actual weight changes during user operation nor includes structural residual vibration in the weighing result. Simultaneously, a stable judgment timer is maintained within the mask interval, eliminating the need to wait for weight stabilization after each touch, significantly shortening the weighing response time. The overall solution eliminates weighing errors caused by touch operations without increasing hardware costs, while supporting normal weighing processes during user touch operations, balancing weighing accuracy and efficiency. Attached Figure Description Figure 1 This is a flowchart illustrating the overall workflow of the present invention; Figure 2 This is a schematic diagram of the overall structure of the present invention. Detailed Implementation

[0006] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0007] Please see Figure 1 As shown, one of the objectives of this embodiment is to provide an AI-based intelligent correction method for electronic weighing results. The electronic weighing device has a built-in weighing AI correction unit and an AI weighing correction model running within the weighing AI correction unit. The method includes the following steps: Establish a hardware synchronization link between touch events and weighing sampling, and electrically connect the effective touch trigger terminal of the touch IC of the touch screen to the external interrupt terminal of the weighing AI correction unit; When the touch IC detects a valid touch event, it sends a synchronization time stamp signal to the weighing AI correction unit to mark the start and release times of the touch press. At the same time, it obtains the coordinate information and pressure information of this touch through the native driver interface of the touch screen. During the operation of the AI ​​weighing correction model, after receiving the synchronization time stamp signal, the corresponding time interval covering the entire touch process is marked as the touch interference mask interval, and the weighing sensor sampling values ​​within the touch interference mask interval are paused to perform general interference filtering processing. The weight change trend is calculated based on the converged weight sample values ​​before the start time of the touch interference mask interval, and the weight reference value of the touch interference mask interval under no interference state is extrapolated. Call the factory-pre-calibrated touch coordinate and force transmission coefficient mapping table, and combine the coordinate information and pressure information of this touch to calculate the touch equivalent force value transmitted to the weighing sensor. The residual signal is obtained by subtracting the weight reference value and the equivalent value of touch from the actual sampled value in the touch interference masking interval. The residual signal is then subjected to feature recognition. The residuals that conform to the continuous weight step characteristics are included in the real weight, and the residuals that conform to the damped oscillation characteristics are determined to be structural residual vibrations and are removed. The corrected sampled value of the touch interference masking interval is obtained. The weight stability determination timer is kept in the count state within the touch interference masking interval. After the touch interference masking interval ends, the weight stability determination is continued based on the corrected sampled value, and the final corrected weighing result is output.

[0008] In the printed circuit board wiring stage of electronic weighing equipment production and assembly, workers will lay independent signal transmission lines for the effective touch trigger terminal of the touch screen touch IC and the external interrupt terminal of the weighing AI correction unit. During the wiring process, the signal transmission lines and the analog sampling lines of the weighing sensor will be arranged on different circuit layers. Complete grounding isolation copper foil is set between different circuit layers to prevent the weak millivolt-level weighing signals transmitted on the analog sampling lines from being crosstalked to the synchronization signal transmission lines through the parasitic capacitance between the lines, and to ensure that the synchronization time stamp signal will not be falsely triggered due to crosstalk.

[0009] After the wiring is completed, the production staff will connect signal shaping circuits to the end of the signal transmission line near the touch IC and the end near the weighing AI correction unit. The signal shaping circuit is composed of Schmitt triggers, which will smooth the waveform of the trigger signal output by the touch IC from the effective touch trigger end, eliminate the glitches and waveform distortion caused by line impedance mismatch during signal transmission, and keep the trigger signal transmitted to the weighing AI correction unit in a standard square wave shape with steep edges.

[0010] After completing the circuit hardware connection, the equipment debugging personnel will configure the working mode of the external interrupt terminal of the AI ​​correction unit. The external interrupt terminal is set to the dual edge capture mode of rising edge and falling edge. The external interrupt terminal can directly respond to the trigger level change of the touch IC output. The signal transmission path does not pass through the general input and output ports of the main controller of the device for signal forwarding, avoiding the task scheduling delay caused by the main controller running the product recognition task or printing task.

[0011] To quantify and verify the time alignment accuracy of the synchronization link, during the debugging phase, the sampling trigger time of the weighing sensor is acquired simultaneously with the output of a standard step signal at the touch IC trigger terminal. The synchronization error between the two moments is calculated. The synchronization error is calculated using a successive cumulative calibration method. The calculation process involves first acquiring the time difference between the transmission time of multiple consecutive trigger signals and the sampling trigger time, and then calculating the average synchronization delay compensation value according to the following formula. , in the formula This represents the average synchronization delay compensation value, measured in milliseconds. This represents the total number of sample groups collected during the calibration process. Representing the The sampling trigger time of the weighing sensor in the sample group, in milliseconds. Representing the The time of transmission of the touch IC trigger signal in the sample group is measured in milliseconds.

[0012] After calculating the average synchronization delay compensation value, the device will write the average synchronization delay compensation value into the fixed storage area of ​​the weighing AI correction unit. During the subsequent normal weighing process, after the weighing AI correction unit receives the synchronization time stamp signal sent by the touch IC, it will automatically add the average synchronization delay compensation value to the time stamp to correct the fixed delay in the signal transmission process, so that the time stamp of the synchronization time stamp signal is strictly aligned with the sampling time of the weighing sensor.

[0013] This method of establishing a synchronous link using independent wiring, edge capture, and delay calibration eliminates the need for a dedicated synchronization chip, keeping synchronization errors within a very small range. It avoids millisecond-level latency caused by general interrupt routing and prevents false triggering caused by signal crosstalk. Ultimately, it establishes a hardware synchronization link between touch events and weighing sampling, providing a precise time reference for subsequent touch interference masking. After the link is established, the device enters a normal standby state. During standby, the synchronization error is periodically checked using a simulated trigger signal under no-load conditions. When the synchronization error exceeds the allowable range, the delay calibration process is automatically re-executed to ensure that the synchronization accuracy does not drift due to component aging during long-term use.

[0014] After the hardware synchronization link is established, the touch IC enters the normal touch detection state. The touch IC continuously collects capacitance change data of all sensing channels of the touch screen at a fixed sampling frequency. The sensing channel is a capacitance sensing unit arranged in rows and columns on the surface of the touch screen. Each sensing unit independently detects the capacitance value change at the corresponding position.

[0015] During the data acquisition process, the touch IC compares the capacitance changes of each channel with the preset touch trigger thresholds channel by channel. The comparison process updates the capacitance change baseline of each channel simultaneously. The capacitance change baseline is the average capacitance value calculated iteratively for each channel in the no-touch state. The capacitance change is the difference between the current capacitance value and the capacitance change baseline. After the comparison is completed, the sensing signals whose capacitance changes do not reach the trigger threshold are filtered out, eliminating minor capacitance fluctuations caused by environmental electromagnetic interference or screen static electricity.

[0016] After initial threshold filtering, the touch IC performs touch point coordinate positioning on sensing signals where the remaining capacitance change exceeds the trigger threshold. The coordinate positioning is obtained by weighted calculation of capacitance changes in row and column channels. After positioning, the IC continuously tracks the coordinate change trajectory and pressure change process of the corresponding touch point throughout the entire time the touch point exists. During the tracking process, it first determines whether the duration of the touch point's continuous stay on the screen meets the preset minimum contact time requirement, eliminating instantaneous false trigger signals caused by small objects quickly wiping across the screen surface. Then, it determines whether the coordinate fluctuation range of the touch point during the stay is within the preset allowable fluctuation range. The coordinate fluctuation range is obtained by calculating the standard deviation of the touch point coordinates at continuous sampling times, eliminating continuous sliding false trigger signals caused by wiping the screen or foreign objects sliding. Finally, it determines whether the pressure change rate corresponding to the touch point conforms to the pressure change law of human finger pressing. The pressure change law of human finger pressing is that the pressure gradually increases to a stable value when pressing and gradually decreases to zero when releasing, without step-like pressure jumps, thus eliminating false capacitance change trigger signals caused by liquid splashes or local dust accumulation.

[0017] To improve the accuracy of valid touch detection and avoid false positives or false negatives caused by relying on a single threshold, the touch IC weights and fuses the results from three dimensions to calculate the valid confidence score of the current touch event. The valid confidence score is calculated using a normalized weighted average, and the formula is as follows: , in the formula Represents the valid confidence level of the current touch event, with a dimension of 1 and a value range of 0 to 1. This represents the weight value of the contact duration judgment dimension, with a dimension of 1. This represents the normalized score for the contact duration dimension, with a dimension of 1. A score of 1 is given when the contact duration meets the requirement, and a score of 0 is given when the contact duration is insufficient. The weight value representing the dimension used to determine coordinate fluctuation is 1. The normalized score represents the dimension of coordinate fluctuation, with a dimension of 1. A score of 1 is given when the coordinate fluctuation is within the allowable range, and a score of 0 is given when the coordinate exceeds the fluctuation range. The weight value representing the dimension for judging changes in intensity, with a dimension of 1. The normalized score represents the dimension of force change, with a dimension of 1. A score of 1 is given when the force change conforms to the finger pressing pattern, and a score of 0 is given when the force change has abrupt changes.

[0018] After calculating the effective confidence score, the touch IC compares the effective confidence score with the preset confidence score threshold. Only when the effective confidence score reaches the confidence score threshold will the touch IC determine that the currently detected touch is a valid touch event. If the judgment of a single dimension does not meet the requirements, it will not be directly judged as an invalid touch. Instead, it will combine the scores of other dimensions for a comprehensive judgment to reduce missed judgments in special scenarios such as operation with gloves or operation with wet fingers.

[0019] After a valid touch event is determined, the touch IC records the start time of the touch press at the determination time. During the subsequent detection process, it continuously monitors the capacitance change of the touch point. When the capacitance value at the touch point position recovers to near the capacitance change baseline, it records the release time of the touch press. At the same time, during the duration of the valid touch event, it continuously collects the touch coordinate information and pressure information corresponding to each sampling time. The collected coordinate information and pressure information are packaged with the time stamp signal into a unified data frame, and then the corresponding synchronization time stamp signal and touch data are sent to the weighing AI correction unit through the established hardware synchronization link.

[0020] This multi-dimensional weighted confidence judgment method can significantly reduce the probability of false triggering compared to traditional single threshold touch judgment. It can filter out false signals from various non-human touches and avoid missing valid touches in special operating scenarios. It ensures that all synchronization time stamp signals sent to the weighing AI correction unit correspond to real user touch operations, providing accurate event triggering basis for subsequent interference mask marking.

[0021] After sending the synchronization time stamp signal, the touch IC will continue to maintain the touch detection state and continuously monitor subsequent touch events. When multiple consecutive touches are detected, it will be automatically determined as an invalid operation and will not send a synchronization signal to the weighing AI correction unit, thus avoiding interference from multiple forces when the user operates the screen with both hands at the same time.

[0022] During continuous operation, the weighing AI correction unit receives the synchronization time stamp signal and corresponding touch data sent by the touch IC through the hardware synchronization link in real time. After receiving the synchronization time stamp signal, the weighing AI correction unit first parses the time stamp carried in the synchronization time stamp signal and reads the start time of the touch press and the release time of the touch press.

[0023] After reading, the mask interval will not be divided directly according to a fixed duration. Instead, the weight change rate of the current weighing process will be read first. The forward tracing time and the backward extension time will be dynamically adjusted according to the current weight change rate. The fixed duration division method is difficult to adapt to the signal change process under different weighing speeds. Dynamically adjusting the duration can ensure that the mask interval just covers all touch-related interference signals without consuming too many processing resources.

[0024] The calculation of the forward tracing duration is based on the current weight's convergence status. When the weight is in a fully stable state, a shorter forward tracing duration is sufficient to cover stable sampling data. When the weight is in the process of convergence, a longer forward tracing duration is required to obtain enough stable samples. The formula for calculating the forward tracing duration is as follows: , in the formula This represents the duration of the pre-collection phase before touch, measured in milliseconds. This represents the basic pre-acquisition duration, measured in milliseconds, and is a fixed value calibrated at the factory. The weighting coefficient represents the rate of change of weight, with the dimension of milliseconds² / gram. It represents the absolute rate of change of weight at the current moment, with the dimension of grams per millisecond.

[0025] After calculating the pre-touch sampling period, the weighing AI correction unit traces back the corresponding time from the start of the touch press as the time node, and uses this time as the pre-touch sampling period. The pre-touch sampling period will cover the last segment of weighing sampling data before the finger touches the screen, providing an interference-free basic sample for subsequent weight trend calculation, and avoiding the signal change at the moment of touch press from affecting the accuracy of subsequent weight benchmark value calculation.

[0026] After completing the pre-sampling segment division before touch, the weighing AI correction unit calculates the duration of the post-touch residual vibration sampling segment. The residual vibration duration is dynamically adjusted based on the total weight of the object being weighed. The greater the weight of the object, the longer the residual vibration duration of the structure, and the longer the required residual vibration sampling segment. Conversely, the smaller the weight of the object, the faster the structural vibration decays, and the shorter the required residual vibration sampling segment. The formula for calculating the post-touch residual vibration sampling segment duration is as follows: , in the formula This represents the duration of the aftershock sampling period following the touch, measured in milliseconds. This represents the duration of the residual vibration data acquisition, measured in milliseconds, and is a fixed value calibrated at the factory. This represents a weighting factor, measured in milliseconds per gram. The current weight value at the moment the touch occurred is expressed in grams.

[0027] After calculating the duration of the post-touch vibration acquisition segment, the weighing AI correction unit extends the corresponding time forward from the touch press and release moment as the time node, and uses this time as the post-touch vibration acquisition segment. The post-touch vibration acquisition segment covers the entire process of free vibration attenuation generated by the scale structure after the finger leaves the screen, avoiding the structural vibration signal being misjudged as the actual weight change. After the two edge intervals are divided, the weighing AI correction unit splices the pre-touch acquisition segment, the touch action segment from the touch press start moment to the touch press release moment, and the post-touch vibration acquisition segment in chronological order. During the splicing process, the boundary points of adjacent intervals are deduplicated to avoid the same sampling point being counted repeatedly in two intervals. After splicing, a continuous time interval covering the complete signal process of the touch event is obtained, and this continuous time interval is determined as the touch interference mask interval.

[0028] After determining the precise time range of the touch interference mask interval, the weighing AI correction unit will traverse the real-time received weighing sensor sampling stream according to the sampling time sequence. During the traversal, it will compare the timestamp of each sampling point with the start and end time of the touch interference mask interval. For all weighing sensor sampling values ​​that fall within the time range of the touch interference mask interval, a unique mask identifier will be added. The mask identifier is a special flag bit reserved in the sampling data frame. When the flag bit is 1, it means that the sampling point is within the touch interference mask interval. When the flag bit is 0, it means that the sampling point is a normal sampling point.

[0029] After the mask identifier is added, the weighing AI correction unit will perform diversion processing on the sampled values ​​according to the mask identifier. The sampled values ​​after adding the mask identifier will be sent to the touch interference-specific processing flow and paused before being sent to the general interference filtering processing queue. The general interference filtering processing flow includes conventional filtering algorithms such as moving average filtering and Kalman filtering. Conventional filtering algorithms will treat sudden pulse interference as normal signals and smooth them. After smoothing, the interference signal will remain in the final weight value, causing the result to be too high. Diversion processing can prevent the general filtering algorithm from misidentifying the structural conduction interference generated by touch operation as normal weight change and smoothing it, thus preventing the interference signal from remaining in the final weighing result.

[0030] After the sampling and splitting is completed, the weighing AI correction unit will verify the integrity of the touch interference mask interval. The verification process will check whether there are any missing sampling points in the interval. When a sampling point is missing, it will fill in the missing sampling point by linear interpolation of adjacent sampling points to ensure the continuity of sampling data in the interval and avoid deviations in subsequent interference calculations due to missing sampling points.

[0031] This masking method, which combines dynamic duration calculation, splitting processing, and integrity verification, can adapt to interference coverage requirements under different weighing states and different load weights compared to the traditional fixed-time-window marking method. It will not cause interference signals to leak into the normal processing flow due to an excessively short window, nor will it cause normal sampling data to be incorrectly intercepted due to an excessively long window. It minimizes the impact on the normal weighing process while ensuring complete coverage of interference signals.

[0032] After the mask marking is completed, the relevant time parameters and sampling point data of the touch interference mask interval will be sent to the subsequent weight trend calculation module to provide an accurate interval range basis for subsequent weight benchmark extrapolation and interference deduction.

[0033] Once the mask interval for a single touch event is marked, the weighing AI correction unit will continue to wait for the next synchronization time stamp signal. When multiple synchronization time stamp signals are received in a short period of time, adjacent touch interference mask intervals will be automatically merged to avoid the problem of interval fragmentation when the user clicks the screen continuously. During the merging process, the start and end times of the merged interval will be recalculated to cover the complete interference process of multiple consecutive clicks. After the merging is completed, mask markers will be added to the sampling points in the interval to ensure that the continuous structural vibrations caused by multiple clicks can be completely included in the processing range.

[0034] When the weighing equipment is in an empty state, the weighing AI correction unit will automatically adjust the basic pre-acquisition time and the basic residual vibration acquisition time, and use the touch test in the empty state to update the basic time parameters to ensure that the length of the mask interval can still adapt to changes in structural characteristics after long-term use of the equipment.

[0035] After marking the touch interference mask interval, the weighing AI correction unit first locates the start time of the touch interference mask interval. During the location process, it indexes the corresponding position through the timestamp of the sampling point and extracts the weight sampling values ​​of multiple consecutive frames that have passed the weight stability determination before the start time. During the extraction process, it checks the status mark of the sampling value frame by frame and filters out invalid sampling points marked as other interference states. Other interference states include airflow interference marks, vibration interference marks, and electromagnetic interference marks. Only valid sampling values ​​with values ​​in the weight convergence state are retained. The subsequent fitting process will only begin when the number of extracted valid sampling values ​​meets the minimum sample number requirement. When the number of valid sampling values ​​is insufficient, it will automatically trace back a segment of sampling data until the number of samples meets the calculation requirements.

[0036] After extracting the valid sample values, the weighing AI correction unit will organize the valid sample values ​​in chronological order of sampling time. With the sampling time as the x-axis and the corresponding sample weight as the y-axis, the unit will perform a first linear fit on all the extracted valid sample values. The first linear fit uses the least squares method to calculate the parameters of the fitted line and obtain the initial linear slope of the weight change over time. During the least squares fitting process, an initial weight will be assigned to each sampling point, and the initial weights are all the same by default.

[0037] After obtaining the initial linear slope, the weighing AI correction unit calculates the numerical difference between each valid sampling point and the initial fitted line. The numerical difference is the absolute value of the difference between the actual weight value at the sampling point and the corresponding weight value on the fitted line. During the calculation, the weight of each sampling point is dynamically adjusted based on the magnitude of the numerical difference. Iterative weighted least squares is used for subsequent fitting, and the formula for weight adjustment is as follows: in the formula Representing the The fitting weights for each valid sampling point are dimensionless (1). Representing the The numerical difference between each effective sampling point and the fitted line, in grams. This represents the residual threshold, measured in grams, and is the upper limit of the allowable residual specified at the time of equipment shipment. After calculating the weight of each sampling point, the weighing AI correction unit marks sampling points whose numerical differences exceed the preset residual threshold as abnormal fluctuation points. Abnormal fluctuation points are sampling points that deviate from the overall weight change trend due to instantaneous environmental vibrations or electrical signal glitches remaining during the weight convergence phase. After marking, abnormal fluctuation points are removed from the set of valid sampling values ​​to avoid outliers skewing the fitting results.

[0038] After a single outlier removal, the weighing AI correction unit uses the remaining valid sampled values ​​combined with the updated weights to re-fit the linear curve. It then recalculates the numerical difference between each sampled point and the new fitted line, recalculates the weight of each sampled point, and removes outliers exceeding the residual threshold again. This iterative process of linear fitting, numerical difference calculation, and outlier removal is repeated. During the iteration, the change in the fitted slope after each iteration is recorded. When the difference between the linear slopes obtained from two consecutive iterations is less than the preset convergence threshold, the iteration process ends early, without waiting for all residuals to be within the allowable range, thus reducing unnecessary computation. This continues until the numerical differences between all remaining valid sampled points and the corresponding fitted lines are within the preset allowable range. Finally, the linear slope obtained from the fitting is determined as the weight change trend.

[0039] To verify the accuracy of the weight change trend, the weighing AI correction unit compares the final fitted linear slope with the historical weight change slope range. The historical weight change slope range is the upper and lower limits of the weight change rate continuously statistically obtained by the device during normal weighing. When the fitted slope exceeds the historical slope range, the sampling value extraction range will be automatically expanded to add more historical stable sampling values ​​for refitting and calculation, so as to avoid deviations in slope calculation due to an excessively narrow sampling range.

[0040] When the object being weighed is a liquid or powder or other flowable material, the weighing AI correction unit will automatically lower the residual threshold, allowing for a smaller residual range. This is because the weight change of flowable materials is more gradual during the convergence phase, and the criteria for judging abnormal fluctuation points will be more stringent, avoiding misjudging normal weight changes caused by slow material flow as abnormal fluctuation points and removing them.

[0041] When the object being weighed is a solid, hard object, the weighing AI correction unit will appropriately increase the residual threshold to allow for a larger residual range. This is because the residual vibration after the hard object is placed is greater, thus avoiding misjudging normal residual vibration signals as outliers and removing them.

[0042] This iterative weighted least squares fitting method, which combines dynamic residual thresholding with slope verification, can effectively eliminate abnormal fluctuations during the convergence phase compared to the traditional fixed-weight single-step fitting method. It avoids deviations in the fitting slope due to individual abnormal sampling points. Furthermore, it can dynamically adjust the judgment criteria according to the material type, adapting to the weighing characteristics of different materials. The resulting weight change trend can accurately reflect the natural weight change pattern under undisturbed conditions.

[0043] After calculating the weight change trend, the weighing AI correction unit will send the weight change trend parameters and the corresponding set of valid sampled values ​​to the subsequent weight benchmark extrapolation module as the core calculation basis for weight benchmark extrapolation.

[0044] Once the weight change trend is determined, the weighing AI correction unit will record the number and distribution of abnormal fluctuation points removed during the fitting process in the abnormal statistics log. When the number of abnormal fluctuation points exceeds the preset ratio, the device status self-check will be automatically triggered to check whether the weighing sensor is loose or whether there is interference in the circuit, thus discovering potential equipment failures in advance.

[0045] After obtaining the weight change trend that meets the accuracy requirements, the weighing AI correction unit first sorts out all weighing sensor sampling points covered by the touch interference mask interval. During the sorting process, it traverses all sampling frames within the touch interference mask interval according to the sampling time order to determine the precise sampling time corresponding to each sampling point. After the sorting is completed, the start time of the touch interference mask interval is used as the starting point for extrapolation calculation. The last effective converged weight sampling value before the start time is extracted as the extrapolation initial value. The extrapolation initial value is the real weight value that has been stable before the touch interference occurred, which serves as the numerical basis for the extrapolation calculation. During the extraction process, the state mark of the extrapolation initial value is verified to confirm that the extrapolation initial value has not been marked as other interference states. When the extrapolation initial value has an interference mark, it will look forward to find the nearest interference-free stable sampling value as the extrapolation initial value to ensure the accuracy of the extrapolation starting point value.

[0046] After determining the initial extrapolation values, using the linear slope corresponding to the weight change trend as a fixed rate of change, and following the sampling time sequence from early to late, the preliminary reference weight value corresponding to each sampling time within the touch interference mask interval is calculated point by point. The slope is not changed during the point-by-point calculation process, completely simulating the natural change of weight according to the previous convergence trend when no touch interference occurs. The formula for calculating the preliminary reference weight value is as follows: , in the formula Represents the sampling time The corresponding preliminary reference weight value, in grams. This represents the initial value for extrapolation, with the dimension in grams. The linear slope representing the trend of weight change, with dimensions in grams per millisecond. Represents the first [number] in the touch interference mask range The sampling time for each sampling point is measured in milliseconds. This represents the starting moment of the extrapolation, measured in milliseconds.

[0047] After point-by-point calculation, a preliminary reference weight value sequence for the entire range is obtained. Then, the weighing AI correction unit retrieves the zero-point drift rate of the weighing sensor, which has been continuously recorded since the device was powered on. The zero-point drift rate is the average change in zero point per unit time continuously recorded by the device from power-on to the current moment when the weighing platform is unloaded. The zero-point drift rate is automatically updated each time the weighing platform returns to an unloaded state to ensure that the drift rate can reflect the recent drift characteristics of the sensor. Based on the time interval between each sampling moment and the extrapolation starting point, the zero-point drift compensation amount corresponding to each sampling moment is calculated. The zero-point drift compensation amount is the product of the zero-point drift rate and the time interval. The preliminary reference weight value at the corresponding sampling moment is superimposed with the zero-point drift compensation amount to correct the extrapolation error caused by the slow zero-point drift of the sensor itself.

[0048] After zero-point drift compensation is completed, the weighing AI correction unit calculates the creep compensation amount corresponding to each sampling moment based on the weight of the object being weighed and the creep compensation parameters of the weighing sensor calibrated at the factory. The creep of the weighing sensor is the slow change in weight value caused by the slow deformation of the elastic body under constant load. The creep compensation parameters are the creep change rates corresponding to different weights obtained through creep tests under different weight loads at the factory. When calculating the creep compensation amount, the creep change rate under the corresponding weight is obtained by linear interpolation based on the weight corresponding to the current extrapolated initial value. Then, the creep compensation amount is calculated by combining the time interval between the sampling moment and the extrapolation starting point, and the creep compensation is applied to the reference weight value to correct the slow weight change error caused by the creep of the sensor elastic body under constant load.

[0049] Considering that the creep characteristics and zero-point drift rate of the sensor will change under different ambient temperatures, the weighing AI correction unit will combine the current temperature value collected by the device's built-in temperature sensor to perform temperature compensation on the zero-point drift rate and creep rate of change. Temperature compensation uses a factory-calibrated temperature correction coefficient, with different correction coefficients corresponding to different temperature ranges. By adjusting the drift rate and creep rate of change through these correction coefficients, the compensation error caused by temperature changes is corrected. The calculation formulas for the zero-point drift compensation and creep compensation after temperature compensation are as follows: in the formula represent The zero-point drift compensation amount at time t, in grams. This represents the zero-point drift rate at room temperature, with dimensions in grams per millisecond. This represents the zero-point temperature correction factor at the current temperature, with dimensions of 1. represent The creep compensation amount at time t, in grams. This represents the rate of creep at room temperature corresponding to the extrapolated initial value, with dimensions in grams per millisecond. This represents the creep temperature correction factor at the current temperature, with a dimension of 1.

[0050] After calculating the two compensation values, the initial reference weight value is superimposed with the zero-point drift compensation value and the creep compensation value to obtain the compensated reference weight value. After completing all compensation corrections, the final weight reference value corresponding to each sampling point in the touch interference mask interval is obtained, and a complete weight reference value sequence is formed according to the sampling order.

[0051] To verify the accuracy of the weight baseline value sequence, the weighing AI correction unit compares the baseline weight value at the end of the extrapolated touch interference mask interval with the first interference-free stable sample value after the mask interval ends. When the difference between the two values ​​exceeds the preset error threshold, the slope of the weight change trend is automatically adjusted, and extrapolation calculation and compensation are performed again until the difference between the extrapolation endpoint value and the actual stable value is within the allowable range, ensuring that the extrapolation result is consistent with the actual weight change.

[0052] When the object being weighed is in a dynamic process of continuous feeding or defecation, the weighing AI correction unit will combine the positive or negative slope of the weight change trend to determine the direction of weight change. A positive slope indicates continuous feeding, and a negative slope indicates continuous defecation. The slope will remain fixed during the extrapolation process and will not change the judgment of the direction of weight change due to touch interference.

[0053] This multi-compensation plus endpoint verification weight benchmark extrapolation method, compared with the traditional uncompensated linear extrapolation method, can simultaneously correct zero-point drift error, creep error, and parameter change error caused by temperature. The extrapolated benchmark value can accurately reflect the weight change process under no-touch interference.

[0054] After obtaining the weight reference value sequence, the weighing AI correction unit will send the weight reference value sequence to the subsequent touch equivalence calculation module as a comparison benchmark for deducting touch interference. The slope adjustment record and compensation amount data generated during the extrapolation process will be recorded in the compensation log. When the zero drift rate exceeds the preset threshold, the user will be prompted to perform zero calibration. When the creep compensation amount continues to increase, the sensor may be aging, reminding the user to perform equipment maintenance in advance.

[0055] After obtaining the weight reference value sequence, the weighing AI correction unit will retrieve the touch coordinate and force transmission coefficient mapping table pre-stored in the storage unit when the device leaves the factory. The touch coordinate and force transmission coefficient mapping table is used to apply standard pressing pressure point by point on all effective touch areas of the touch screen during the device's factory calibration, record the standard force applied at each coordinate point and the force change detected by the weighing sensor, and calculate the set of force transmission ratio values ​​corresponding to each coordinate point. The mapping table will be calibrated multiple times and averaged during the device's factory calibration to reduce coefficient deviation caused by calibration errors.

[0056] After retrieving the touch coordinate and force transmission coefficient mapping table, the weighing AI correction unit extracts the touch coordinate information corresponding to each sampling moment during the effective touch event. During the extraction process, the touch coordinates are smoothed to eliminate the coefficient calculation error caused by the jump of the touch point coordinates. Based on the touch coordinates at each sampling moment, the basic transmission coefficient of the corresponding coordinate position is found in the touch coordinate and force transmission coefficient mapping table. When the touch coordinate is not on the calibration point of the mapping table, bilinear interpolation is performed through the basic transmission coefficients of the four surrounding adjacent calibration points to obtain the basic transmission coefficient of the corresponding coordinate, ensuring that an accurate transmission coefficient value can be obtained at any position on the screen.

[0057] After locating the basic conduction coefficient, the weighing AI correction unit will perform position correction on the basic conduction coefficient based on the relative position of the current touch coordinates and the force center of the weighing sensor. This position correction takes into account the force attenuation over distance in the metal structure; the farther away from the force center, the greater the loss during force transmission, and the smaller the corresponding actual conduction coefficient. The formula for calculating the actual conduction coefficient after position correction is as follows: , in the formula Representing coordinates The actual conduction coefficient at location, dimensionless (1). Representing coordinates The fundamental conductivity coefficient, obtained from a location lookup table, has a dimension of 1. This represents the force transmission distance attenuation coefficient, with dimensions of 1 / mm, and is a fixed value calibrated at the factory. The distance between the touch coordinate point and the center of force of the weighing sensor is represented by millimeters.

[0058] After calculating the actual conduction coefficient at each sampling moment, the weighing AI correction unit will extract the pressure information collected by the touch IC at the corresponding sampling moment, multiply the pressure value by the actual conduction coefficient at the corresponding moment, and obtain the preliminary touch equivalent value at the corresponding sampling moment. The pressure information is the finger pressure calculated by the touch IC based on the capacitance change, and the unit of measurement is the same as the weight unit, which is in grams.

[0059] After obtaining the preliminary equivalent force value sequence, the weighing AI correction unit aligns the time series of the touch equivalent force value with the sampling time series of the weighing sensor in the time domain. Based on the fixed delay time for force transmission in the metal structure of the scale body, calibrated at the factory, the entire touch equivalent force value sequence is shifted by the corresponding time, ensuring that the touch equivalent force value at each sampling moment corresponds perfectly in time to the transmitted force detected by the weighing sensor. The fixed delay time is obtained at the factory by measuring the average time for force transmission to the sensor when tapping different positions on the screen. The transmission delay at different screen positions is corrected by distance; the greater the distance, the longer the transmission delay. The delay time correction formula is as follows: , in the formula Representing coordinates The force transmission delay at a location, measured in milliseconds. The foundation conduction delay time, measured in milliseconds, represents the location of the force center. This represents the distance delay factor, measured in milliseconds per millimeter, and is a fixed value calibrated at the factory.

[0060] After time-domain alignment, the weighing AI correction unit performs attenuation matching on the waveform of the equivalent force value based on the factory-calibrated force transmission attenuation characteristics of the scale body structure. This simulates the natural attenuation process of force transmission through the structure. Force transmission in a metal structure results in amplitude attenuation due to structural damping; different frequency force components attenuate to varying degrees. The attenuation matching process uses a pre-calibrated structural transfer function to convolve the equivalent force value waveform, ensuring that the waveform characteristics of the equivalent force value match the actual force waveform transmitted to the sensor. The final formula for calculating the touch equivalent force value after attenuation matching is as follows: , in the formula represent The final touch equivalence value at any given moment, measured in grams. This represents the initial touch equivalence value after time shift, with the dimension of grams. The unit impulse response of force transmission representing the structure of the scale body, with dimensions of 1.

[0061] After completing the convolution calculation, the final touch equivalent force value at each sampling moment is obtained. The touch equivalent force value sequence is formed according to the sampling order. In order to verify the accuracy of the touch equivalent force value sequence, the weighing AI correction unit will automatically perform a touch test in the empty scale state. The calculated touch equivalent force value is compared with the actual force change detected by the weighing sensor. When the difference between the two exceeds the allowable range, the conduction coefficient and delay parameter will be automatically updated to ensure the accuracy of the equivalent force calculation after long-term use.

[0062] When the user's pressure exceeds the maximum detection range of the touch IC, the weighing AI correction unit extrapolates the actual pressure value based on the trend of pressure change, avoiding deviations in equivalent force calculation when the range is exceeded. When the touch point slides during the touch process, the touch coordinates at each sampling moment are updated in real time, and the transmission coefficient and delay time at the corresponding position are recalculated to ensure the accuracy of equivalent force calculation during sliding. This touch equivalent force calculation method, which combines position correction, time-varying delay, and waveform convolution, can accurately simulate the force transmission process in the structure compared to the traditional fixed coefficient force calculation method. The calculated touch equivalent force value is highly consistent with the magnitude and waveform of the interference force actually transmitted to the sensor. After obtaining the touch equivalent force value sequence, the weighing AI correction unit sends the touch equivalent force value sequence to the subsequent residual processing module to provide a basis for subsequent residual calculation and interference separation. The parameter deviation data generated during the equivalent force calculation process is recorded in the calibration log. When the parameter deviation continues to increase, the user is prompted to re-perform the touch transmission calibration to ensure that the accuracy of the equivalent force calculation does not decrease due to structural loosening or component aging.

[0063] After obtaining the touch equivalent force value sequence aligned with the sampling sequence, the weighing AI correction unit extracts the actual weighing sampling value of each sampling point within the touch interference mask interval. It then subtracts the weight reference value and the touch equivalent force value of the corresponding sampling position from the actual sampling value of each sampling point in sequence. This process deducts the transmission force interference caused by normal weight changes and touch operations, resulting in the residual signal value corresponding to each sampling point. The residual signal is then arranged in chronological order of sampling time to obtain a complete residual signal sequence. During the residual calculation process, the values ​​are amplitude-limited. When the absolute value of the residual exceeds the maximum possible weight change range, it is directly marked as an outlier to avoid calculation overflow affecting subsequent judgments.

[0064] After obtaining the residual signal sequence, the weighing AI correction unit will traverse the residual signal values ​​point by point to identify the locations where step changes occur in the residual signal. During the identification process, the residual difference between two adjacent sampling points will be calculated point by point. The residual difference is the result of subtracting the residual value of the previous sampling point from the residual value of the next sampling point. When the residual difference between adjacent sampling points exceeds the preset step threshold, the corresponding position will be marked as a suspected step point. The step threshold will be dynamically adjusted according to the current weighing scale value. In the case of small-range high-precision weighing, the step threshold is set to a smaller value, and in the case of large-range low-precision weighing, the step threshold is set to a larger value to avoid misjudgment under different ranges.

[0065] After marking suspected step points, starting from the sampling time corresponding to the suspected step point, the residual signal change process of a preset length is continuously tracked backward, and three feature judgments are performed sequentially. During the judgment process, a conformity score is calculated for each feature. The weighted scores are then used to comprehensively determine whether it is a true step. The formula for feature weighting judgment is as follows: , in the formula This represents the comprehensive score of the step characteristic, with a dimension of 1 and a value range from 0 to 1. The weights represent stability features and have a dimension of 1. This represents the residual stability characteristic score, with a dimension of 1. This represents the weight of the no-fallback feature, with a dimension of 1. The score represents the feature score of the residual without regression, with a dimension of 1. The weight representing the waveform difference feature is 1. The score represents the waveform difference characteristics and has a dimension of 1.

[0066] The first step is to determine whether the residual signal after a step remains within a stable value range. During the determination process, the standard deviation of all residual values ​​after the step is calculated. The smaller the standard deviation, the higher the stability score. When the fluctuation range of the residual value does not exceed the preset stability threshold, the stability score is 1. When the fluctuation range exceeds the threshold, the score is reduced proportionally according to the magnitude of the fluctuation to avoid misjudging a continuously vibrating signal as a step.

[0067] The second step is to determine whether the residual signal after the step jump has a tendency to fall back to the value before the step jump. In the process of judgment, the linear slope of the residual value after the step jump is calculated. If the slope is negative and the absolute value exceeds the fall back threshold, it is determined that there is a fall back trend. If there is no fall back trend, the score is 1. If there is a fall back trend, the score is reduced proportionally according to the slope to avoid misjudging the pulse interference as the real weight change.

[0068] The third criterion is whether the waveform characteristics of the step change are significantly different from the force change characteristics of the touch operation. During the judgment process, the correlation coefficient between the residual signal and the waveform of the equivalent force value of the touch is calculated. The lower the correlation coefficient, the higher the waveform difference score. When the residual change does not have the same decaying oscillation characteristics as the equivalent force value of the touch, the score is 1. When the waveform similarity is high, the score is reduced proportionally according to the magnitude of the correlation coefficient to avoid misjudging the touch interference that has not been completely removed as the real weight change.

[0069] After calculating the comprehensive score of the step feature, the comprehensive score is compared with the preset step confidence threshold. When the comprehensive score meets the threshold requirement, the residual signal corresponding to the suspected step point is determined to meet the continuous weight step feature. The step is the actual weight change caused by the user adding an object to be weighed during the touch screen operation. The residual change caused by the step is added to the weight reference value of the corresponding sampling point and included in the actual weight. The residual change is the difference between the stable residual value after the step and the residual value before the step.

[0070] If any feature score is too low, causing the overall score to fail to meet the threshold requirement, the step is determined to be a false change caused by touch interference or signal noise and is not included in the actual weight. When there are multiple suspected step points in the residual signal, each suspected step point will be judged in chronological order. When the interval between multiple step points is less than the minimum interval threshold, they will be merged into one step event for judgment, so as to avoid misjudging multiple fluctuations of a step as multiple steps.

[0071] When a negative step occurs in the residual value, the same judgment logic is used for identification. It is determined that the user has removed part of the weighed object during the touch process, resulting in a decrease in the actual weight. The change in residual is also included in the actual weight. This multi-feature weighted step recognition method can effectively distinguish between actual weight changes and interference pulses compared to the traditional single-threshold step judgment. It will not misjudge touch residual vibration or signal noise as actual weight changes, and the recognition accuracy is higher. After completing the step recognition and actual weight inclusion, the weighing AI correction unit will send the weight value after including the actual weight and the remaining residual signal to the subsequent residual vibration recognition module to provide a data basis for subsequent structural residual vibration elimination. The number of steps and the size of steps counted during the step recognition process will be recorded in the operation log. When a large number of positive and negative steps occur in a short period of time, it is determined that the user is repeatedly adding or subtracting materials. The waiting time for stabilization judgment is automatically adjusted to adapt to the weighing needs in the material addition scenario.

[0072] After identifying the continuous weight step feature and recording the actual weight of the corresponding residual, the weighing AI correction unit extracts the remaining residual signal that was not identified as a continuous weight step. It analyzes the waveform characteristics of the remaining residual point by point according to the sampling time sequence, identifies all extreme points in the residual signal. Extreme points are the positions in the residual sequence where the value is greater than or less than the adjacent sampling points on both sides. The maximum value point with a value greater than the adjacent sampling point is marked as the vibration peak point. The occurrence time and peak value of each vibration peak point are recorded. During the peak point identification process, tiny peak values ​​with values ​​less than the noise threshold are filtered out to avoid electrical signal noise being misjudged as vibration peaks.

[0073] After peak point identification is completed, the absolute values ​​of adjacent vibration peak points are compared sequentially according to time to determine whether the peak value gradually decreases over time. That is, the absolute value of the later vibration peak is always smaller than the absolute value of the previous adjacent vibration peak, which conforms to the amplitude decay law of damped vibration. During the judgment process, the decay ratio of adjacent peaks is calculated, which is the ratio of the absolute value of the later peak to the absolute value of the previous peak. The decay ratio of damped vibration is a fixed value and is related to the structural damping coefficient.

[0074] Next, calculate the time interval between adjacent vibration peaks and determine whether the time interval between all adjacent peaks is consistent with the natural vibration period of the scale structure. The natural vibration period is the free vibration period of the scale obtained by the knocking test when the equipment leaves the factory. It is a fixed physical property of the scale structure. The natural vibration period will have slight changes under different load weights. When judging, the natural vibration period will be corrected according to the weight of the object being weighed. The greater the weight, the longer the natural vibration period.

[0075] Finally, it is determined whether the value of the residual signal at the end of the touch interference mask interval converges to near zero. That is, the residual fluctuation range at the end of the touch interference mask interval is within the preset zero error range, and there is no continuous numerical offset.

[0076] The three judgment conditions will be used to calculate the comprehensive matching score using the damping matching degree formula. The formula for calculating the comprehensive matching score is as follows: , in the formula This represents the overall matching score for damped vibration, with a dimension of 1 and a value range from 0 to 1. The weight representing the amplitude decay characteristic has a dimension of 1. The score represents the amplitude decay characteristic, with a dimension of 1. This represents the weight of the periodic matching feature, with a dimension of 1. This represents the score for periodic matching features, with a dimension of 1. This represents the weight of the zero-valued convergent feature, with a dimension of 1. This represents the zero-value convergence feature score, with a dimension of 1.

[0077] The amplitude attenuation characteristic score is calculated based on the difference between the attenuation ratio of adjacent peaks and the theoretical damping attenuation ratio. The smaller the difference, the higher the score. When the peaks attenuate strictly according to the damping law, the score is 1. The period matching characteristic score is calculated based on the difference between the interval between adjacent peaks and the corrected natural vibration period. The smaller the difference, the higher the score. When the peak interval is consistent with the natural period, the score is 1. The zero-value convergence characteristic score is calculated based on the difference between the residual at the end of the interval and the zero value. The smaller the difference, the higher the score. When the residual converges to near the zero value, the score is 1. After calculating the comprehensive matching score, when the comprehensive matching score meets the preset residual vibration confidence threshold, it is determined that the corresponding part of the residual signal conforms to the attenuated oscillation characteristic and belongs to the free vibration residual vibration generated by the metal structure of the scale body after the finger leaves the screen. The corresponding part of the residual signal is completely removed from the calculated value of the corresponding sampling point and does not participate in the final weight calculation.

[0078] If any feature score is too low, causing the overall matching score to fail to meet the threshold requirement, the corresponding residual is determined to be other types of random interference and is transferred to the general interference filtering process for processing. The general interference filtering process will filter out random interference by combining moving average and median filtering to avoid random interference affecting the final weight result.

[0079] When there are multiple segments of decaying vibration in the residual signal, feature matching and score calculation will be performed segment by segment to determine whether each segment of residual is a structural residual vibration, thus avoiding missed judgments caused by residual vibration segmentation.

[0080] After completing the identification and processing of all residual signals, the weighing AI correction unit will superimpose and combine the weight reference value of each sampling point in the touch interference mask interval with the step residual value that includes the actual weight. During the superposition process, the residual parts that are determined to be structural residual vibration and random interference will be eliminated simultaneously to obtain the corrected sampled value corresponding to each sampling point. The corrected sampled value sequence of the touch interference mask interval will be obtained by arranging them in the sampling order.

[0081] To verify the accuracy of the corrected sampled values, the weighing AI correction unit compares the value at the end of the corrected sampled value sequence with the first stable sampled value after the end of the touch interference mask interval. When the difference between the two values ​​exceeds the allowable error, the residual vibration judgment threshold is readjusted, and residual vibration identification and correction are performed again until the corrected value is consistent with the actual stable value.

[0082] When an object is referred to as a flowing material, the error range for zero-value convergence will be appropriately relaxed to avoid the slight weight changes caused by material flow being misjudged as residual vibration.

[0083] When the object is referred to as a hard solid, the error range of the period matching will be appropriately tightened to improve the accuracy of residual vibration identification. Compared with the traditional vibration judgment based on a fixed threshold, this multi-feature damping matching residual vibration identification method can accurately identify the structural residual vibration signal, and will not misjudge the actual weight change or random interference as residual vibration and reject it, nor will it cause the problem of overestimation of the result due to residual residual vibration.

[0084] After obtaining the corrected sampled value sequence, the weighing AI correction unit will send the corrected sampled value sequence back to the normal weighing process, replacing the original sampled values ​​in the touch interference mask range, for use in the subsequent weight stability determination process. The structural damping coefficient and natural vibration period data obtained during the residual vibration identification process will be recorded in the structural status log. When the natural vibration period changes significantly, it indicates that the scale structure may be loose or deformed, reminding the user to check and maintain the equipment.

[0085] Please see Figure 2 As shown, the second objective of this invention is to provide a system for implementing an AI-based intelligent correction method for electronic weighing results, including a touch and weighing synchronization module, a mask interval marking module, a weight trend calculation module, a weight benchmark extrapolation module, a touch equivalence calculation module, a residual processing module, and a stability determination and adaptation module.

[0086] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely preferred examples and are not intended to limit the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of the present invention is defined by the appended claims and their equivalents.

Claims

1. An AI-based electronic weighing result intelligent correction method applied to an electronic weighing device integrating a touch screen and a weighing unit, characterized in that, The electronic weighing device has a built-in weighing AI correction unit and an AI weighing correction model running within the weighing AI correction unit. The method includes the following steps: Establish a hardware synchronization link between touch events and weighing sampling, and electrically connect the effective touch trigger terminal of the touch IC of the touch screen to the external interrupt terminal of the weighing AI correction unit; When the touch IC detects a valid touch event, it sends a synchronization time stamp signal to the weighing AI correction unit to mark the start and release times of the touch press. At the same time, it obtains the coordinate information and pressure information of this touch through the native driver interface of the touch screen. During the operation of the AI ​​weighing correction model, after receiving the synchronization time stamp signal, the corresponding time interval covering the entire touch process is marked as the touch interference mask interval, and the weighing sensor sampling values ​​within the touch interference mask interval are paused to perform general interference filtering processing. The weight change trend is calculated based on the converged weight sample values ​​before the start time of the touch interference mask interval, and the weight reference value of the touch interference mask interval under the interference-free state is extrapolated. Call the factory-pre-calibrated touch coordinate and force transmission coefficient mapping table, and combine the coordinate information and pressure information of this touch to calculate the touch equivalent force value transmitted to the weighing sensor. The residual signal is obtained by subtracting the weight reference value and the equivalent value of the touch from the actual sampled value within the touch interference mask interval. The residual signal is then subjected to feature recognition. The residuals that conform to the continuous weight step characteristics are included in the real weight, and the residuals that conform to the damped oscillation characteristics are determined to be structural residual vibrations and are removed, thus obtaining the corrected sampled value of the touch interference mask interval. The weight stability determination timer is maintained in the touch interference mask interval. After the touch interference mask interval ends, the weight stability determination is continued based on the corrected sampled value, and the final corrected weighing result is output. 2.The AI-based electronic weighing result intelligent correction method according to claim 1, characterized in that: The specific process of establishing the hardware synchronization link between the touch event and the weighing sampling is as follows: During the printed circuit board routing stage of electronic weighing equipment, signal transmission lines are laid out for the effective touch trigger terminal of the touch screen IC and the external interrupt terminal of the weighing AI correction unit. During the routing process, the signal transmission line and the analog sampling line of the weighing sensor are arranged on different circuit layers to avoid the weighing signal on the analog sampling line from interfering with the synchronization signal transmission line and affecting the accuracy of the synchronization time mark signal. After the line is laid out, a signal shaping circuit is connected to the end of the signal transmission line near the touch IC and the end near the weighing AI correction unit, respectively, to perform waveform normalization on the trigger signal output from the effective touch trigger end of the touch IC, and eliminate the glitches and waveform distortion generated by the signal during line transmission. After completing the circuit hardware connection, the working mode of the external interrupt terminal of the weighing AI correction unit is configured. The external interrupt terminal is set to edge capture mode, so that the external interrupt terminal responds to the trigger level change of the touch IC output. This avoids the scheduling delay caused by the main controller running other business tasks. Finally, when a touch event occurs, the time stamp of the synchronization time stamp signal is aligned with the sampling time of the weighing sensor, and the hardware synchronization link between the touch event and the weighing sampling is established. 3.The AI-based electronic weighing result intelligent correction method according to claim 2, characterized in that: After the hardware synchronization link is established, the touch IC enters the normal touch detection state, continuously collects the capacitance change data of all sensing channels of the touch screen, compares the collected capacitance change of each channel with the preset touch trigger threshold, filters out sensing signals whose capacitance change does not reach the trigger threshold, and eliminates capacitance fluctuations. After completing the initial threshold filtering, the touch point coordinates of the sensing signals whose remaining capacitance changes exceed the trigger threshold are located. The coordinate change trajectory and pressure change process of the corresponding touch point are continuously tracked throughout the entire period of the touch point's existence. It is determined whether the continuous dwell time of the touch point on the screen meets the preset minimum contact time requirement to eliminate instantaneous false trigger signals. Then, it is determined whether the coordinate fluctuation range of the touch point during the dwell process is within the preset allowable fluctuation range to eliminate continuous sliding false trigger signals. Finally, it is determined whether the pressure change rate corresponding to the touch point conforms to the force change law of human finger pressing to eliminate false capacitance change trigger signals. Only when all the above judgment conditions are met, the touch IC determines that the currently detected touch is a valid touch event. At the moment when it is determined to be a valid touch event, the start time of the touch press is recorded. At the moment when the touch point leaves the touch screen and the capacitance value returns to the initial state, the release time of the touch press is recorded. At the same time, during the duration of the valid touch event, the touch coordinate information and pressing force information corresponding to each sampling moment are continuously collected, and then the corresponding synchronization time stamp signal is sent to the weighing AI correction unit through the hardware synchronization link. 4.The AI-based electronic weighing result intelligent correction method according to claim 3, characterized in that: The specific process of marking the corresponding time interval covering the entire touch process as the touch interference mask interval is as follows: After receiving the synchronization time stamp signal sent by the touch IC through the hardware synchronization link, the weighing AI correction unit reads the touch press start time and touch press release time carried in the synchronization time stamp signal. It traces back a preset time with the touch press start time as the time node and uses this time as the pre-collection segment before the touch. This covers the last segment of stable weighing sampling data before the finger touches the screen, avoiding the signal change at the moment of touch press from affecting the subsequent weight benchmark value calculation. The time interval is extended forward from the moment of touch release to be used as the residual vibration acquisition segment after touch, covering the attenuation process of free vibration generated by the scale structure after the finger leaves the screen, so as to avoid the residual vibration signal of the structure being misjudged as the actual weight change. The pre-touch acquisition segment, the touch action segment from the start of touch pressing to the release of touch pressing, and the post-touch residual vibration acquisition segment are spliced ​​together in chronological order to obtain a continuous time interval covering the complete signal process of the touch event. This continuous time interval is determined as the touch interference mask interval. After determining the time range of the touch interference mask interval, the weighing AI correction unit traverses the real-time received weighing sensor sampling stream according to the sampling time sequence. It adds a unique mask identifier to each weighing sensor sampling value that falls within the time range of the touch interference mask interval. The sampling values ​​after adding the mask identifier are sent to the dedicated touch interference processing flow and are paused from being sent to the general interference filtering processing queue. This prevents the general filtering algorithm from misidentifying the structural conduction interference generated by the touch operation as a normal weight change and smoothing it out, which would cause the interference signal to remain in the final weighing result. 5.The AI-based electronic weighing result intelligent correction method according to claim 4, characterized in that: The specific process for calculating the weight change trend based on the converged weight sample values ​​before the start time of the touch interference mask interval is as follows: After marking the touch interference mask interval, locate the start time of the touch interference mask interval, extract the weight sample values ​​of multiple consecutive frames that have passed the weight stability determination before the start time, filter out invalid sample points marked as other interference states in the sample values ​​during the extraction process, and only retain the valid sample values ​​whose values ​​are in the weight convergence state. After extracting the valid sample values, the first linear fitting is performed on all the extracted valid sample values ​​according to the order of sampling time, with the sampling time as the x-axis and the corresponding sample weight value as the y-axis, to obtain the preliminary linear slope of the weight change over time. After obtaining the initial linear slope, the numerical difference between each effective sample value and the initial fitted line is calculated point by point. Sample points whose numerical difference exceeds the preset residual threshold are marked as abnormal fluctuation points and removed from the set of effective sample values. The abnormal fluctuation points are sample points that deviate from the overall weight change trend caused by instantaneous environmental vibration and electrical signal glitches remaining in the weight convergence stage. After completing the single outlier removal, the remaining valid sample values ​​are used to re-fit the linear data. The numerical difference between each sample point and the line under the new fitted line is calculated again. Outliers exceeding the residual threshold are removed. The iterative process of linear fitting, numerical difference calculation and outlier removal is repeated until the numerical difference between all remaining valid sample values ​​and the corresponding fitted line is within the preset allowable range. The final fitted linear slope is then determined as the weight change trend. 6.The AI-based electronic weighing result intelligent correction method according to claim 5, characterized in that: The specific process of extrapolating to obtain the weight reference value of the touch interference mask interval in the interference-free state is as follows: After obtaining the weight change trend that meets the accuracy requirements, the sampling points of all weighing sensors covered by the touch interference mask interval are sorted out, the sampling time corresponding to each sampling point is determined, the start time of the touch interference mask interval is used as the starting point of the extrapolation calculation, and the last effective converged weight sample value before the start time is extracted as the extrapolation initial value. This extrapolation initial value is the real weight value that has been stable before the touch interference occurs, which serves as the numerical basis for the extrapolation calculation. After determining the initial value for extrapolation, the linear slope corresponding to the weight change trend is used as the fixed rate of change. The preliminary reference weight value corresponding to each sampling time in the touch interference mask interval is calculated point by point according to the sampling time from early to late. The slope is not changed during the point-by-point calculation process, which completely simulates the process of the weight changing naturally according to the previous convergence trend when no touch interference occurs. After obtaining the preliminary reference weight value sequence for the entire range, the zero-point drift rate of the weighing sensor, which has been continuously statistically recorded since the device was powered on, is retrieved. The zero-point drift rate is the average change of the zero point per unit time continuously recorded by the device from power-on to the current moment under no-load conditions on the weighing platform. Based on the time interval between each sampling moment and the extrapolation starting point, the zero-point drift compensation amount corresponding to each sampling moment is calculated. The preliminary reference weight value at the corresponding sampling moment is superimposed with the zero-point drift compensation amount to correct the extrapolation error caused by the slow zero-point drift of the sensor itself. After zero-point drift compensation is completed, based on the current weight of the object being weighed and the creep compensation parameters of the weighing sensor calibrated at the factory, the creep compensation amount corresponding to each sampling moment is calculated, and creep compensation is performed on the reference weight value to correct the slow weight change error caused by the creep of the sensor elastomer under constant load. After completing all compensation corrections, the final weight reference value corresponding to each sampling point within the touch interference mask interval is obtained. The weight reference value sequence is formed according to the sampling order to ensure that the weight reference value sequence is consistent with the actual output of the weighing sensor when there is no touch interference, thus providing a comparison benchmark for subsequent deduction of touch interference. 7.The AI-based electronic weighing result intelligent correction method according to claim 6, characterized in that: After obtaining the weight reference value sequence, the touch coordinate and force transmission coefficient mapping table pre-stored in the storage unit when the device leaves the factory is retrieved. The touch coordinate and force transmission coefficient mapping table is used when the device is calibrated at the factory. Standard pressing pressure is applied point by point to all effective touch areas of the touch screen, and the standard force applied at each coordinate point and the force change detected by the weighing sensor are recorded. The set of force transmission ratio values ​​corresponding to each coordinate point is calculated. After retrieving the mapping table between touch coordinates and force transmission coefficients, extract the touch coordinate information corresponding to each sampling moment during this effective touch event. Based on the touch coordinates at each sampling moment, find the basic transmission coefficient of the corresponding coordinate position in the mapping table between touch coordinates and force transmission coefficients. After finding the basic conduction coefficient, the position of the basic conduction coefficient is corrected according to the relative position of the current touch coordinates and the force center of the weighing sensor to obtain the actual conduction coefficient corresponding to the sampling moment; After obtaining the actual transmission coefficient at each sampling moment, the pressure information collected by the touch IC at the corresponding sampling moment is extracted, and the pressure value is multiplied by the actual transmission coefficient at the corresponding moment to obtain the preliminary touch equivalent value corresponding to that sampling moment. After obtaining the preliminary equivalent force value sequence, the time series of the touch equivalent force value is aligned with the sampling time series of the weighing sensor in the time domain. Based on the fixed delay time of force transmission in the metal structure of the scale body calibrated at the factory, the entire touch equivalent force value sequence is shifted by the corresponding time, so that the touch equivalent force value at each sampling moment corresponds completely with the transmitted force detected by the weighing sensor in time. After completing the time-domain alignment, the waveform of the equivalent force value is matched for attenuation according to the factory-calibrated force transmission attenuation characteristics of the scale body structure. The natural attenuation process of force in the structural transmission process is simulated to obtain the final touch equivalent force value at each sampling moment, forming a touch equivalent force value sequence. 8.The AI-based electronic weighing result intelligent correction method according to claim 7, characterized in that: The specific process of performing feature identification on the residual signal and including residuals that conform to the continuous weight step characteristics into the actual weight is as follows: After obtaining the touch equivalent force value sequence aligned with the sampling sequence, the actual weighing sampling value of each sampling point within the touch interference mask interval is extracted. The actual sampling value of each sampling point is then subtracted sequentially from the weight reference value of the corresponding sampling position and the touch equivalent force value of the corresponding sampling position. The transmission force interference caused by normal weight changes and touch operations is deducted to obtain the residual signal value corresponding to each sampling point. The residual signal sequence is then arranged in the order of sampling time to obtain the complete residual signal sequence. After obtaining the residual signal sequence, the residual signal values ​​are traversed point by point to identify the positions in the residual signal where step changes occur. During the identification process, the residual difference between two adjacent sampling points is calculated point by point. When the residual difference between adjacent sampling points exceeds the preset step threshold, the position is marked as a suspected step point. After marking a suspected step point, starting from the sampling time corresponding to the suspected step point, the residual signal change process of a preset length is continuously tracked backward, and three feature judgments are performed sequentially: The first criterion is whether the residual signal after the step remains within a stable value range, that is, the fluctuation range of the residual value after the step does not exceed the preset stable threshold. The second criterion is whether the residual signal after the step jump has a tendency to fall back to the value before the step jump, that is, the residual value will not gradually decrease and return to the value range before the step jump over time. The third criterion is whether the waveform characteristics of the step change are significantly different from the force change characteristics of the touch operation, that is, whether the residual change does not have the same decaying oscillation characteristics as the equivalent force value of the touch operation. When the above three judgment conditions are met simultaneously, the residual signal corresponding to the suspected step point is determined to conform to the continuous weight step characteristics. The step is the actual weight change caused by the user adding an object to be weighed during the touch screen operation. The residual change brought about by the step is superimposed on the weight reference value of the corresponding sampling point and included in the actual weight. If any of the judgment conditions are not met, the step is determined to be a false change caused by touch interference or signal noise, and is not included in the actual weight. 9.The AI-based electronic weighing result intelligent correction method according to claim 8, characterized in that: The specific process of determining the residuals that conform to the damped oscillation characteristics as structural residual vibrations and discarding them to obtain the corrected sampled values ​​of the touch interference mask interval is as follows: After identifying the continuous weight step characteristics and recording the actual weight of the corresponding residuals, the remaining residual signals that were not identified as continuous weight step are extracted. The waveform characteristics of the remaining residuals are analyzed point by point according to the sampling time sequence. All extreme points in the residual signals are identified. The maximum points with values ​​greater than the adjacent sampling points are marked as vibration peak points. The occurrence time and peak value of each vibration peak point are recorded. After peak point identification is completed, the absolute values ​​of adjacent vibration peak points are compared sequentially according to time to determine whether the peak value gradually decreases over time. That is, the absolute value of the later vibration peak is always smaller than the absolute value of the previous adjacent vibration peak, which conforms to the amplitude decay law of damped vibration. Next, calculate the time interval between adjacent vibration peaks and determine whether the time interval between all adjacent peaks is consistent with the natural vibration period of the scale structure. The natural vibration period is the free vibration period of the scale obtained by the knocking test when the equipment leaves the factory, which is a fixed physical property of the scale structure. Finally, it is determined whether the value of the residual signal at the end of the touch interference mask interval converges to near zero. That is, the residual fluctuation range at the end of the touch interference mask interval is within the preset zero error range and there is no continuous numerical offset. When the above three judgment conditions are met at the same time, it is determined that the residual signal conforms to the characteristics of damped oscillation and belongs to the residual vibration of free vibration generated by the metal structure of the scale body after the finger leaves the screen. The residual signal is completely removed from the calculated value of the corresponding sampling point and does not participate in the final weight calculation. If any judgment condition is not met, the residual is determined to be other types of random interference and is transferred to the general interference filtering process for processing. After completing the identification and processing of all residual signals, the weight reference value of each sampling point in the touch interference mask interval and the step residual value included in the actual weight are superimposed and combined to obtain the corrected sample value corresponding to each sampling point. The corrected sample value sequence of the touch interference mask interval is obtained by arranging them in the sampling order for use in the subsequent weight stability determination process.

10. A system for implementing the AI-based intelligent correction method for electronic weighing results according to any one of claims 1-9, characterized in that, It includes a touch and weighing synchronization module, a mask interval marking module, a weight trend calculation module, a weight benchmark extrapolation module, a touch equivalence calculation module, a residual processing module, and a stability determination and adaptation module.