CN117782290B - Anti-cheating system of electronic scale - Google Patents

Anti-cheating system of electronic scale Download PDF

Info

Publication number
CN117782290B
CN117782290B CN202410216909.4A CN202410216909A CN117782290B CN 117782290 B CN117782290 B CN 117782290B CN 202410216909 A CN202410216909 A CN 202410216909A CN 117782290 B CN117782290 B CN 117782290B
Authority
CN
China
Prior art keywords
data
weighing
electronic scale
cheating
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410216909.4A
Other languages
Chinese (zh)
Other versions
CN117782290A (en
Inventor
周欣
宫振禹
刘瑶
张瑞瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dalian Jinma Weighing Apparatus Co ltd
Original Assignee
Dalian Jinma Weighing Apparatus Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dalian Jinma Weighing Apparatus Co ltd filed Critical Dalian Jinma Weighing Apparatus Co ltd
Priority to CN202410216909.4A priority Critical patent/CN117782290B/en
Publication of CN117782290A publication Critical patent/CN117782290A/en
Application granted granted Critical
Publication of CN117782290B publication Critical patent/CN117782290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Complex Calculations (AREA)

Abstract

The invention relates to the technical field of anti-cheating of electronic scales, in particular to an anti-cheating system of an electronic scale. The system comprises: the electronic scale data acquisition module acquires weighing data and electronic scale key data; the electronic scale processing information processing module is used for acquiring a weighing data sequence, acquiring display weighing data, acquiring the weighing data anomaly degree of each weighing process and further acquiring the key cheating degree of each weighing process; calculating and obtaining weighing cheating performance of the electronic scale; obtaining a stable data value and a stable data value sequence in a weighing data sequence, and calculating a stable standard degree; acquiring data irregularity of each stable data value sequence according to the stable standard degree and the stable data value; acquiring the data simulation degree of each weighing process according to the weighing data and the data irregularity; acquiring the cheating risk of the electronic scale according to the data simulation degree and the weighing cheating property; and according to the cheating risk, anti-cheating is carried out on the electronic scale. The invention improves the cheating detection efficiency and accuracy of the electronic scale and completes the anti-cheating of the electronic scale.

Description

Anti-cheating system of electronic scale
Technical Field
The invention relates to the technical field of anti-cheating of electronic scales, in particular to an anti-cheating system of an electronic scale.
Background
The electronic balance, also called digital indicator balance, is an electronic weighing apparatus whose load weight is balanced by creep reaction of sensor and whose display screen displays digital weighing result. The electronic scale has the characteristics of high precision, high speed, dynamic metering, strong stability, multiple functions and the like, represents the development direction of the current weighing apparatus, and weighing devices such as a steelyard, a platform balance and the like with traditional mechanical structures are being phased out. The electronic scale has the characteristics of convenience in weighing, simplicity and convenience in price calculation, visual weighing data display and the like.
However, many merchants use electronic scales to cheat and lack weight, so that consumer rights and interests are damaged, and an accurate metering result is a basis for guaranteeing the consumer rights and interests. If the electronic scale has cheating behaviors, consumers can be misled or suffer economic loss; some dishonest merchants may operate electronic scales to obtain additional profits, such as deliberately reducing the weight of the product or adjusting the accuracy of the scale during metering; if some merchants gain an undue advantage using the means of cheating, the benefits of other honest operators will be impacted. Therefore, there is a need for an anti-cheating system for electronic scales to reduce the occurrence of cheating, provide accurate metering results, protect the interests of consumers, reduce the unfair competition, and maintain the fairness of the market.
Disclosure of Invention
In order to solve the technical problems, the invention aims to provide an anti-cheating system of an electronic scale, which adopts the following technical scheme:
The invention provides an anti-cheating system of an electronic scale, which comprises:
the electronic scale data acquisition module acquires weighing data and key data of the electronic scale;
The electronic scale processing information processing module is used for dividing weighing data to obtain a weighing data sequence, acquiring display weighing data according to a display screen of the electronic scale, and acquiring weighing data anomaly degree of each weighing process according to the weighing data and the display weighing data; taking a sequence formed by arranging key positions of keys in the weighing process according to the key sequence as key data, and acquiring key cheating degree of each weighing process according to the weighing data anomaly degree and the key data; acquiring weighing cheating property of the electronic scale according to the weighing data anomaly degree and the case cheating degree; according to the data value and the change of the data value in the weighing data sequence, obtaining a stable data value and a stable data value sequence in the weighing data sequence, and obtaining the stability standard degree of each stable data value; acquiring data irregularity of each stable data value sequence according to the stable standard degree and the stable data value; acquiring the data simulation degree of each weighing process according to the weighing data and the data irregularity; acquiring the cheating risk of the electronic scale according to the data simulation degree and the weighing cheating property; and according to the cheating risk, anti-cheating is carried out on the electronic scale.
Further, the step of acquiring the weighing data sequence, acquiring and displaying the weighing data according to a display screen of the electronic scale, specifically comprises the following steps:
For each weighing process, forming a weighing data sequence from all weighing data between two weighing data with 0 values in the weighing data;
And acquiring an image of a display screen on the electronic scale, carrying out graying treatment on the image, acquiring a graying display screen image, acquiring a digital region in the gray display screen image by using an opencv image threshold method, and identifying the digital region by using a KNN algorithm to acquire display weighing data on the display screen.
Further, the step of obtaining the weighing data anomaly degree of each weighing process according to the weighing data and the display weighing data specifically comprises the following steps:
And taking the weighing data which has the smallest data value difference with the next weighing data, has the data value which is not 0 and is closest to the last weighing data of the weighing data sequence as stable weighing data, calculating the absolute value of the difference between the stable weighing data and the display weighing data, and calculating the ratio of the absolute value of the difference to the stable weighing data as the weighing data anomaly degree of each weighing process.
Further, the obtaining the key cheating degree of each weighing process specifically includes:
Counting the repeated number of key data of the weighing process and other weighing processes for each weighing process, and calculating the ratio of the number to the maximum value of the number of the key data of the weighing process and other weighing processes as a first ratio;
Calculating the absolute value of a difference value between the weighing data anomaly degree in the weighing process and the weighing data anomaly degree in other weighing processes, calculating the sum value of the absolute value of the difference value and a preset parameter adjusting coefficient, and calculating the ratio of the maximum value in the weighing data anomaly degree and the other weighing data anomaly degree to the sum value as a second ratio;
And calculating the product of the first ratio and the second ratio, and taking the sum of the product of each weighing process and all other weighing processes as the key cheating degree of each weighing process.
Further, the step of obtaining the weighing cheating of the electronic scale specifically includes:
and calculating the product of the anomaly degree of the weighing data and the key cheating degree in each weighing process, and calculating the sum of the products at all weighing moments to serve as the weighing cheating property of the electronic scale.
Further, the obtaining the stable data value and the stable data value sequence in the weighing data sequence, and obtaining the stability standard of each stable data value specifically includes:
Taking the absolute value of the difference between each weighing data and the next weighing data in the weighing data sequence as the data value change of each weighing data, taking the moment of the weighing data with the data value change of 0 and the data value not being 0 as the stable moment, taking the weighing data value at the stable moment as the stable data value, and taking the sequence formed by all the stable data values in the weighing data sequence as the stable data value sequence;
For each stable data value in the weighing data sequence, calculating the number of digits which are not 0 after the decimal point of the stable data value, calculating the absolute value of the difference value between the stable data value and the display weighing data, calculating the product of the number of digits and the absolute value of the difference value, and taking the calculation result of an exponential function taking the natural constant as the bottom and the negative value of the product as the index as the stability standard of each stable data.
Further, the acquiring the data irregularity of each stable data value sequence according to the stable standard degree and the stable data value specifically includes:
And for each stable data value sequence, calculating the sum value of the stability standard degree of all stable data in the stable data value sequence, calculating the product of the variance of the stable data values in the stable data value sequence and the number of the stable data values in the stable data value sequence, and taking the ratio of the product to the sum value as the data irregularity of each stable data sequence.
Further, the obtaining the data simulation degree of each weighing process specifically includes:
For each weighing process, calculating the absolute value of the difference between the a-th weighing data of the weighing process and the a-th weighing data of other weighing processes, calculating the sum value of all the absolute values of the difference in the weighing processes, calculating the sum result of the sum values in all the weighing processes as a first sum value, and calculating the product of the reciprocal of the first sum value and the reciprocal of the data irregularity of the stable data sequence of each weighing process as the data simulation degree of each weighing process.
Further, the acquiring the cheating risk of the electronic scale specifically includes:
And calculating the sum of the data simulation degrees of all the weighing processes, calculating the product of the sum and the maximum value of the data simulation degrees of all the weighing processes, and taking the normalized value of the multiplication result of the weighing cheating performance of the electronic scale and the product as the cheating risk degree of the electronic scale.
Further, the anti-cheating method for the electronic scale according to the cheating risk degree specifically comprises the following steps:
when the cheating risk degree of the electronic scale is larger than or equal to a preset cheating risk degree judgment threshold value, the electronic scale is a cheating electronic scale, otherwise, the electronic scale is a normal electronic scale.
The invention has the following beneficial effects:
According to the invention, the weighing data acquired during each weighing of the electronic scale is analyzed to obtain the display data of the electronic scale, the weighing data anomaly index is constructed through the difference between the weighing data and the display data, the characteristic key data of a commercial tenant during each weighing is analyzed to construct the key cheating index as the weighing data anomaly index weight, the weighing cheating index of the electronic scale is constructed, meanwhile, the weighing data simulation degree is constructed in a self-adaptive mode based on the characteristic analysis of software and hardware cheating simulation data, the simulation degree is corrected by the simulation degree symmetrical cheating index, the construction of the electronic scale cheating risk index is completed, the detection of the electronic scale cheating behavior is completed through the cheating risk index, the electronic scale cheating detection efficiency and precision are improved, and the anti-cheating of the electronic scale is completed.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions and advantages of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of an anti-cheating system for an electronic scale according to an embodiment of the present invention;
FIG. 2 is a graph showing the stable data values.
Detailed Description
In order to further describe the technical means and effects adopted by the electronic scale for achieving the preset aim of the invention, the following detailed description is given below of the anti-cheating system of the electronic scale according to the invention, which is provided by combining the accompanying drawings and the preferred embodiment. In the following description, different "one embodiment" or "another embodiment" means that the embodiments are not necessarily the same. Furthermore, the particular features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
The following specifically describes a specific scheme of the anti-cheating system of the electronic scale provided by the invention with reference to the accompanying drawings.
Referring to fig. 1, a block diagram of an anti-cheating system of an electronic scale according to an embodiment of the present invention is shown, where the system includes: the electronic scale data acquisition module 101 and the electronic scale processing information processing module 102.
The electronic scale data acquisition module 101 acquires weighing data and key data of the electronic scale.
When the electronic scale weighs goods each time, related data are transmitted to the server, wherein the acquired related data include weighing data of objects acquired by a load sensor in the electronic scale and key data of the electronic scale, namely key positions pressed by a merchant on the electronic scale and key sequence related data each time the objects are weighed, a sequence formed by arranging key positions of keys in each weighing process according to the key sequence is taken as key data, and specifically, a corresponding program or script can be written, an interface function provided by a driving program is called, and specific programs and interface functions are known technologies and are not repeated herein.
Thus, the acquisition of weighing data and key data of the electronic scale can be completed.
The electronic scale processing information processing module 102 performs self-adaptive analysis on the data acquired by the electronic scale to complete the construction of the cheating risk of the electronic scale.
Because the data of the electronic scales are all uploaded to the server, a large amount of data of the electronic scales exist in the server, wherein the data collected by the electronic scales used by different merchants are different, and in the embodiment, the data of the electronic scales collected by a single electronic scale are analyzed at first.
As all the electronic scales are provided with corresponding numbers when initially leaving the factory, and the internal program is preset and detected, the cheating phenomenon is avoided. The electronic scale with cheating phenomenon is often generated after the program in the chip is changed later. The method is that a merchant changes a chip program in an electronic scale and activates a cheating program through certain specific keys, so that the actual weight and the display weight of the commodity change, the cheating program is closed after certain specific keys are pressed, the electronic scale is a normal electronic scale, and the cheating phenomenon also disappears. Therefore, the data of the electronic scale in each use can be analyzed, and the cheating possibility of the electronic scale can be further analyzed.
Therefore, in this embodiment, by analyzing the data collected by the electronic scales, the risk that each electronic scale may be a cheating electronic scale is analyzed, so as to complete the supervision of the cheating phenomenon of the electronic scales, and reduce the occurrence of the cheating phenomenon of the electronic scales.
Because the electronic scale often has a certain time interval between two commodities to weigh, namely when the commodities are not weighed, the data received by the load sensor on the electronic scale is 0, when the commodities are weighed, the data received by the load sensor rises to a certain value from 0, then the data is stabilized at a certain value, and when the commodities are weighed, the data received by the load sensor is changed into 0 again. In this embodiment, all weighing data between two weighing data with a value of 0 in the weighing data are formed into a weighing data sequence, so that the electronic scale can acquire a weighing data sequence and corresponding key data each time of weighing, and the corresponding key data is the key data closest in time to the acquisition time of the weighing data sequence.
Further, if the electronic scale has a cheating behavior, the weighing data displayed on the display screen of the electronic scale is not the weighing data obtained by the load sensor on the electronic scale, after the weighing data displayed on the display screen on the electronic scale is stable, the image of the display screen on the electronic scale is collected by using the CCD camera, the image is subjected to graying processing, a graying display screen image is obtained, and a digital area in the gray display screen image is searched by using an opencv image thresholding method, wherein the method for searching the digital area in the gray display screen image by using the opencv image thresholding method is a known technology and is not repeated herein. After the digital area in the image of the gray display screen is obtained, the KNN is used for identifying the digital area, and weighing data on the display screen is obtained and used as display weighing data. The method for identifying the digital region by KNN is a known technique, and will not be described herein.
And displaying the weighing data anomaly degree Z constructed by the difference between the weighing data and the weighing data sequence through the symmetrical weighing data sequence change and the electronic scale:
In the formula (i), The weighing data anomaly degree is the weighing data sequence; /(I)The data value after representing the data stabilization in the weighing data sequence, namely the weighing data in the weighing data sequence, which has the smallest difference between the weighing data and the data value of the weighing data at the next moment, is not 0, and is closest to the last weighing data of the weighing data sequence, is/>; And W is the weighing data displayed on the electronic scale after weighing.
Formula logic: if it isThe greater the difference from W, i.e./>The greater the value of (2), the greater the degree of anomaly of the weighing data sequence; the greater the degree of abnormality of the weighing data sequence is, the more likely the abnormality occurs in the weighing, and the greater the possibility that the electronic scale is a cheating electronic scale is; the smaller the degree of abnormality of the weighing data sequence, the more likely the weighing is normal, and the less likely the electronic scale is a cheating electronic scale.
And analyzing the weighing data sequence according to the steps, wherein each weighing has a corresponding weighing data anomaly degree Z. The weighing data anomaly degree Z obtained in the steps can only reflect the difference between the weighing data and the actual display weighing data during weighing, and the detection precision of the measurement weighing data anomaly caused by a key switch program of a merchant is low.
The unit price of various commodities is often stored on the electronic scale, and keys are often required to be adjusted to corresponding unit price programs when the electronic scale is weighed, so that the electronic scale displays corresponding weight and price.
While it is often set by different keys during cheating, here for ease of understanding and illustration. For example, when key 1 is pressed, 600g of the original 500g commodity is displayed, and when key 2 is pressed, 700g of the original 500g commodity is displayed. The electronic scale must press the corresponding cheating key during the cheating, so in this embodiment, the key data obtained by weighing the electronic scale each time is analyzed, that is, each time the electronic scale has the data of which key positions the merchant presses in order, and the key cheating degree H is constructed by taking the weighing A of the electronic scale as an example:
In the formula, H is key cheating degree of each weighing; the repeated number of the pressed key in the weighing process A and the pressed key in the weighing process i is represented, and the acquisition process is as follows: assuming that the A-th weighing key is 1234 and the i-th weighing key is 12356, then/> And/>,/>As a maximum function, take the maximum value in brackets,/>The number of keys in the weighing process of the A time of the electronic scale is/areThe number of keys in the ith weighing process of the electronic scale is represented; /(I)The abnormal degree of the weighing data corresponding to the A-th weighing of the electronic scale is shownThe weighing data anomaly degree during the ith weighing of the electronic scale is represented; /(I)For parameter adjustment, the denominator is prevented from being 0, and the empirical value is 1; n is the total number of times the electronic scale is weighed.
Formula logic: since the cheating requires the pressing of certain specific key positions, the more keys pressed in two weighings are repeated, the greater the likelihood of cheating, i.eThe larger the value of (2), the larger the key cheating degree; /(I)The smaller the value of (2), the smaller the difference, and its maximum/>The larger the key cheating degree is, the larger the key cheating degree is; the greater the key cheating degree is, the greater the frequency of the key data is, the greater the possibility of cheating of the weighing is, and the greater the possibility of the electronic scale being a cheating electronic scale is.
According to the steps, the electronic scale has corresponding weighing data anomaly degree and key cheating degree in each weighing, and thus weighing cheating Y is constructed:
in the formula, Y is the weighing cheating of the electronic scale; the weighing data anomaly degree and key cheating degree corresponding to the jth weighing of the electronic scale are respectively represented, and N is the total number of times of weighing of the electronic scale.
Formula logic:,/> The greater the value of the weighing data is, the greater the degree of abnormality of the weighing data is, the greater the possibility of key cheating is, and at the moment, the greater the weighing cheating is, the greater the possibility of cheating caused by weighing of the electronic scale is, and the more likely the electronic scale is the cheating electronic scale.
So far, the weighing cheating of the electronic scale is obtained.
The weighing cheating performance obtained in the steps is good in detection efficiency and effect on most cheating means of the electronic scale, however, when the electronic scale is used for cheating through combination of software and hardware, false measurement data can be simulated, and the detection effect is poor when the weighing cheating performance is used for detecting the cheating means. However, when the electronic scale is simulated, the data are often simulated based on certain specific rules, so that the obtained simulated data often have certain relevance, and the commodity which is normally weighed each time is often different and has weaker relevance to the weighing data.
Further, the stable data value in the weighing data sequence is obtained, and the number of the stable data values in the weighing data is multiple, for example: when 500 g of commodity is purchased, 500 g of commodity cannot be accurately obtained, a merchant needs to add or remove the commodity in the commodity to achieve a data value of 500 g, so that the number of stable data values obtained in the adding or removing process is large, the absolute value of the difference between each weighing data and the next weighing data in the weighing data sequence is used as the data value change of each weighing data, the absolute value of the difference between the last weighing data and the previous weighing data in the weighing data sequence is used as the data value change of the weighing data sequence, the data value obtained by a load sensor is changed to 0, the moment when the data value is not 0 is used as the stable moment, the weighing data value at the stable moment is used as the stable data value, as shown in fig. 2, and the sequence consisting of all the stable data values is used as the stable data value sequence.
The data simulation degree R of the a-th weighing is constructed based on the variation between different weighing data of the same electronic scale in this embodiment:
In the formula (i), Stability standard corresponding to each stability data value of weighing data,/>For a number of digits other than 0 after a stable data value decimal point, for example: assuming a stable value data of 1.23, then/>If it is 1.20 or 1.02, it is/>,/>For each stable data value,/>, data valueFor the electronic scale display weighing data,/>Is an exponential function with a natural constant as a base;
to stabilize data irregularities of a data sequence,/> For the variance of the stable data values in the stable data sequence,/>The number of stable data values obtained after the weighing data obtained by the electronic scale in the A-th weighing is stable is the number of the stable data values of the electronic scale in the A-th weighingStability standard for the u-th stability data value;
data simulation for the A-th weighing,/> For the a-th weighing data obtained in the kth weighing, the weight data of the (a)/>The a-th weighing data obtained for the A-th weighing,/>For the number of weighing data acquired in the kth weighing process,/>For the number of weighing data acquired during weighing A,/>And selecting the minimum value in brackets as a minimum value function, wherein N is the total number of times of weighing the electronic scale.
Formula logic: when the electronic scale is cheated by combination of software and hardware, the electronic scale simulates false weighing data, and the false weighing data is often smaller in weight difference from the weight required by a buyer and is usually an integer, namelyThe smaller the value of (2), and then the larger the stability standard degree corresponding to the stability data value of the weighing data, namely the larger the stability standard degree, the more likely the data is the simulated measurement data; in actual measurement, the measurement data obtained by putting on the commodity for the first time is often influenced by experience of merchants, and the measurement data often have larger difference, and the stability standard is smaller, namely, when the stability standard is smaller, the electronic scale is less likely to have software and hardware combination cheating; otherwise, the electronic scale has high possibility of cheating software and hardware.
When the software and hardware of the electronic scale are combined to cheat, compared with the actual weighing data, the simulated false weighing data has smaller weight difference with the requirements of buyers, the adjustment times of merchants are smaller, and at the moment, the regularity of the weighing data is larger; if the electronic scale cheating condition does not exist, the merchant needs to add and reduce the number of commodities for a plurality of times to reach the weight required by the buyer, at the moment, the more times the merchant adjusts, namely, the more the number of stable data values after the obtained weighing data are stable when the electronic scale is weighed, the larger the variance among the obtained weighing data is, the larger the data irregularity S is, namely, the larger the data irregularity is, the smaller the possibility of software and hardware combination cheating of the electronic scale is; otherwise, the greater the possibility of cheating the combination of software and hardware of the electronic scale.
Furthermore, when the electronic scale performs software and hardware combination cheating, the simulated false weighing data is generated by simulation according to a certain rule, so that the weighing data at different moments of the electronic scale often have certain similarity when the electronic scale performs cheating, namely the simulated weighing data have smaller difference, and the acquired data has larger simulation degree; if the electronic scale does not have the cheating behavior, the difference between weighing data corresponding to different times of weighing is larger, the data simulation degree is smaller, namely, the smaller the data simulation degree is, the smaller the cheating possibility of the electronic scale for carrying out software and hardware combination is; otherwise, the greater the cheating possibility of the electronic scale for combining software and hardware.
According to the steps, the weighing data of the electronic scale are provided with corresponding data simulation degrees, and the cheating risk degree F of the electronic scale is built based on the simulation degrees and the weighing cheating property:
In the formula, F is the cheating risk of the electronic scale; y is the weighing cheating property of the electronic scale, Shows the degree of data simulation obtained by the p-th weighing,/>Represents the maximum value of data simulation degree obtained by the electronic scale,/>And N is the total number of times of weighing of the electronic scale as a normalization function.
Formula logic: the greater the data simulation degree is, the more likely the weighing data of the electronic scale is simulated false weighing data rather than actual weighing data, namely the data is data obtained by software simulation cheating rather than actual data, and the greater the cheating risk degree is; the greater the weighing cheating performance, the greater the possibility that the electronic scale is used for weighing and cheating is, the more likely the electronic scale is the cheating electronic scale, and the greater the acquired cheating risk degree is.
According to the steps, each electronic scale connected with the server has a corresponding cheating risk degree, in the embodiment, a cheating risk degree judgment threshold value is set, the experience value is 0.75, when the cheating risk degree corresponding to the electronic scale is greater than or equal to the cheating risk degree judgment threshold value, the electronic scale is the cheating electronic scale, and related personnel are informed of carrying out recovery processing on the cheating electronic scale and carrying out corresponding punishment on a merchant, otherwise, the electronic scale is a normal electronic scale.
Thus, the anti-cheating of the electronic scale is completed.
It should be noted that: the sequence of the embodiments of the present invention is only for description, and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
The foregoing description of the preferred embodiments of the present invention is not intended to be limiting, but rather, any modifications, equivalents, improvements, etc. that fall within the principles of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. An anti-cheating system for an electronic scale, the system comprising:
the electronic scale data acquisition module acquires weighing data and key data of the electronic scale;
The electronic scale processing information processing module is used for dividing weighing data to obtain a weighing data sequence, acquiring display weighing data according to a display screen of the electronic scale, and acquiring weighing data anomaly degree of each weighing process according to the weighing data and the display weighing data; taking a sequence formed by arranging key positions of keys in the weighing process according to the key sequence as key data, and acquiring key cheating degree of each weighing process according to the weighing data anomaly degree and the key data; acquiring weighing cheating property of the electronic scale according to the weighing data anomaly degree and the case cheating degree; according to the data value and the change of the data value in the weighing data sequence, obtaining a stable data value and a stable data value sequence in the weighing data sequence, and obtaining the stability standard degree of each stable data value; acquiring data irregularity of each stable data value sequence according to the stable standard degree and the stable data value; acquiring the data simulation degree of each weighing process according to the weighing data and the data irregularity; acquiring the cheating risk of the electronic scale according to the data simulation degree and the weighing cheating property; and according to the cheating risk, anti-cheating is carried out on the electronic scale.
2. The anti-cheating system of an electronic scale according to claim 1, wherein the acquiring the weighing data sequence acquires and displays the weighing data according to a display screen of the electronic scale, and specifically comprises:
For each weighing process, forming a weighing data sequence from all weighing data between two weighing data with 0 values in the weighing data;
And acquiring an image of a display screen on the electronic scale, carrying out graying treatment on the image, acquiring a graying display screen image, acquiring a digital region in the gray display screen image by using an opencv image threshold method, and identifying the digital region by using a KNN algorithm to acquire display weighing data on the display screen.
3. The anti-cheating system of an electronic scale according to claim 1, wherein the acquiring the weighing data anomaly of each weighing process according to the weighing data and the display weighing data specifically comprises:
And taking the weighing data which has the smallest data value difference with the next weighing data, has the data value which is not 0 and is closest to the last weighing data of the weighing data sequence as stable weighing data, calculating the absolute value of the difference between the stable weighing data and the display weighing data, and calculating the ratio of the absolute value of the difference to the stable weighing data as the weighing data anomaly degree of each weighing process.
4. The anti-cheating system of an electronic scale according to claim 1, wherein the obtaining key cheating degree of each weighing process specifically comprises:
Counting the repeated number of key data of the weighing process and other weighing processes for each weighing process, and calculating the ratio of the number to the maximum value of the number of the key data of the weighing process and other weighing processes as a first ratio;
Calculating the absolute value of a difference value between the weighing data anomaly degree in the weighing process and the weighing data anomaly degree in other weighing processes, calculating the sum value of the absolute value of the difference value and a preset parameter adjusting coefficient, and calculating the ratio of the maximum value in the weighing data anomaly degree and the other weighing data anomaly degree to the sum value as a second ratio;
And calculating the product of the first ratio and the second ratio, and taking the sum of the product of each weighing process and all other weighing processes as the key cheating degree of each weighing process.
5. The anti-cheating system of an electronic scale according to claim 1, wherein the acquiring the weighing cheating of the electronic scale specifically comprises:
and calculating the product of the anomaly degree of the weighing data and the key cheating degree in each weighing process, and calculating the sum of the products at all weighing moments to serve as the weighing cheating property of the electronic scale.
6. The anti-cheating system of an electronic scale according to claim 1, wherein the obtaining the stable data value and the stable data value sequence in the weighing data sequence, and obtaining the stability standard of each stable data value specifically comprises:
Taking the absolute value of the difference between each weighing data and the next weighing data in the weighing data sequence as the data value change of each weighing data, taking the moment of the weighing data with the data value change of 0 and the data value not being 0 as the stable moment, taking the weighing data value at the stable moment as the stable data value, and taking the sequence formed by all the stable data values in the weighing data sequence as the stable data value sequence;
For each stable data value in the weighing data sequence, calculating the number of digits which are not 0 after the decimal point of the stable data value, calculating the absolute value of the difference value between the stable data value and the display weighing data, calculating the product of the number of digits and the absolute value of the difference value, and taking the calculation result of an exponential function taking the natural constant as the bottom and the negative value of the product as the index as the stability standard of each stable data.
7. The anti-cheating system of an electronic scale according to claim 1, wherein the obtaining data irregularities of each stable data value sequence according to the stable standard and the stable data value specifically comprises:
And for each stable data value sequence, calculating the sum value of the stability standard degree of all stable data in the stable data value sequence, calculating the product of the variance of the stable data values in the stable data value sequence and the number of the stable data values in the stable data value sequence, and taking the ratio of the product to the sum value as the data irregularity of each stable data sequence.
8. The anti-cheating system of an electronic scale according to claim 1, wherein the obtaining the data simulation degree of each weighing process specifically comprises:
For each weighing process, calculating the absolute value of the difference between the a-th weighing data of the weighing process and the a-th weighing data of other weighing processes, calculating the sum value of all the absolute values of the difference in the weighing processes, calculating the sum result of the sum values in all the weighing processes as a first sum value, and calculating the product of the reciprocal of the first sum value and the reciprocal of the data irregularity of the stable data sequence of each weighing process as the data simulation degree of each weighing process.
9. The anti-cheating system of an electronic scale according to claim 1, wherein the obtaining the cheating risk of the electronic scale specifically comprises:
And calculating the sum of the data simulation degrees of all the weighing processes, calculating the product of the sum and the maximum value of the data simulation degrees of all the weighing processes, and taking the normalized value of the multiplication result of the weighing cheating performance of the electronic scale and the product as the cheating risk degree of the electronic scale.
10. The anti-cheating system of an electronic scale according to claim 1, wherein the anti-cheating system for an electronic scale according to the cheating risk comprises:
when the cheating risk degree of the electronic scale is larger than or equal to a preset cheating risk degree judgment threshold value, the electronic scale is a cheating electronic scale, otherwise, the electronic scale is a normal electronic scale.
CN202410216909.4A 2024-02-28 2024-02-28 Anti-cheating system of electronic scale Active CN117782290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410216909.4A CN117782290B (en) 2024-02-28 2024-02-28 Anti-cheating system of electronic scale

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410216909.4A CN117782290B (en) 2024-02-28 2024-02-28 Anti-cheating system of electronic scale

Publications (2)

Publication Number Publication Date
CN117782290A CN117782290A (en) 2024-03-29
CN117782290B true CN117782290B (en) 2024-04-26

Family

ID=90383825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410216909.4A Active CN117782290B (en) 2024-02-28 2024-02-28 Anti-cheating system of electronic scale

Country Status (1)

Country Link
CN (1) CN117782290B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105115577A (en) * 2015-09-09 2015-12-02 大连金马衡器有限公司 Gravity and electric adjustment type multi-K-band multi-functional impact flow-meter and calibration inference method thereof
CN105588633A (en) * 2016-02-18 2016-05-18 广东省计量科学研究院 Electronic scale cheating detection system and detection method thereof
CN106248191A (en) * 2016-06-25 2016-12-21 葛玮 A kind of truck scale cheating signal detecting method and detector thereof
CN108458778A (en) * 2018-03-09 2018-08-28 广东省计量科学研究院(华南国家计量测试中心) A kind of cheat detection method and device
CN117109712A (en) * 2023-10-23 2023-11-24 大连金马衡器有限公司 Automobile scale split balance and use method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170300743A1 (en) * 2016-04-19 2017-10-19 Medf Llc Scale with user verification for use in weight loss competitions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105115577A (en) * 2015-09-09 2015-12-02 大连金马衡器有限公司 Gravity and electric adjustment type multi-K-band multi-functional impact flow-meter and calibration inference method thereof
CN105588633A (en) * 2016-02-18 2016-05-18 广东省计量科学研究院 Electronic scale cheating detection system and detection method thereof
CN106248191A (en) * 2016-06-25 2016-12-21 葛玮 A kind of truck scale cheating signal detecting method and detector thereof
CN108458778A (en) * 2018-03-09 2018-08-28 广东省计量科学研究院(华南国家计量测试中心) A kind of cheat detection method and device
CN117109712A (en) * 2023-10-23 2023-11-24 大连金马衡器有限公司 Automobile scale split balance and use method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
数字指示秤作弊检测系统的设计;邵琛越;何绘宇;阚侃;丘文昌;;电子技术与软件工程;20151231(第20期);58-60 *
数字指示秤防作弊检测平台设计与实现;孟宪哲;王凯;刘卓;高远;武宏璋;孙培强;;计量技术;20200718(第07期);56-59 *

Also Published As

Publication number Publication date
CN117782290A (en) 2024-03-29

Similar Documents

Publication Publication Date Title
CN101206782B (en) Fault detection of weight meter
US5161103A (en) Real time status monitoring system
US6779722B1 (en) System and method for updating a database of weights at a self-checkout terminal
CN112561543A (en) E-commerce platform false transaction order monitoring method and system based on full-period logistics data analysis and cloud server
CN111753837A (en) Learning completion model generation method and device, and commodity discrimination method and device
CN111256802A (en) Calibration method of weighing device and weighing device
CN110019798B (en) Method and system for measuring commodity type difference of sale and sale items
CN116402399A (en) Business data processing method and system based on artificial intelligence and electronic mall
EP3671610A1 (en) Determination of similarity between user and merchant
CN117782290B (en) Anti-cheating system of electronic scale
CN112307827A (en) Object recognition apparatus, system and method
CN114663167A (en) Evaluation method and device based on shooting information, electronic equipment and storage medium
CN114219547B (en) Method, device, equipment and storage medium for determining store ordering amount
CN110174711A (en) Terminal device and its foreign bodies detection evaluation of result method, computer storage medium
CN115761457A (en) Commodity identification method and device, electronic equipment and computer readable medium
CN115187065A (en) Garment commodity quality analysis system based on electronic commerce platform
CN111353389A (en) Intelligent weighing device based on multi-sensor recognition and analysis method thereof
US6801866B1 (en) Method for minimizing error in weighing devices
CN111579102A (en) Body temperature reporting management method based on APP module
CN113256919B (en) Commodity candidate presentation system and settlement processing system
CN115048355B (en) Updating method, device, equipment and medium of identification model
CN117516688B (en) Real-time anti-cheating method and device for electronic scale, electronic scale and storage medium
CN111258883B (en) Algorithm model test method and test system based on SKU image recognition
US20230140512A1 (en) Processing apparatus, processing method, and non-transitory storage medium
CN112651804B (en) Recommendation method and recommendation system of contract machine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant