Strong and weak field foreign matter detection method and device for metal detector and storage medium
Through the strength and weakness field detection method and coefficient calculation, the problem of insufficient detection accuracy in the prior art is solved, effective detection of smaller metal foreign matter is achieved, and detection accuracy and stability are taken into account in practical applications.
Patent Information
- Application Number
- CN202410995805.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-08
AI Technical Summary
The threshold value judgment method of existing metal detectors is difficult to effectively detect smaller metal foreign objects and cannot meet the high requirements of users for detection accuracy.
By using the strong and weak field foreign matter detection method, by obtaining the weak and strong field detection signals of the product to be detected, combining the pre-determined qualified product coefficient and metal foreign matter coefficient, the metal foreign matter signal value is calculated, and whether it is greater than the preset threshold value to determine whether it exists. Metal foreign matter.
The detection accuracy is improved, and it can be detected when the traditional method cannot detect small metal foreign matter, and the detection accuracy and stability are taken into account by setting reasonable thresholds.
Smart Images

Figure CN118915166A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of foreign body detection, and in particular to a strong and weak field foreign body detection method, device and storage medium for a metal detector. Background Art
[0002] A metal detector is a device that detects foreign matter (especially metal foreign matter) based on the changes in the electromagnetic field in the probe window. The electrical signal on the transmitting coil in the probe excites an electromagnetic field in the probe window, and the receiving coil in the probe detects this electromagnetic field and transmits its changes to subsequent components for processing. Products passing through the probe are also conductive due to the moisture, salt and other substances contained in them, so they will also significantly change the electromagnetic field in the probe, resulting in the so-called product effect. An important task of a metal detector is to distinguish the signal of metal foreign matter from the effect caused by the product and remove the product containing foreign matter.
[0003] The most common detection method at present is the threshold judgment method. That is, the detection signal contains both the product signal and the metal foreign body signal. When the detection signal exceeds a preset threshold, it is determined that a foreign body is detected. However, as users have higher and higher requirements for detection accuracy, the above threshold judgment method has become increasingly difficult to meet user needs. Therefore, how to further improve the detection accuracy has become a problem that needs to be solved in this field. Summary of the invention
[0004] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a strong and weak field foreign object detection method, device and storage medium for a metal detector, which can improve the detection accuracy when the traditional threshold judgment method cannot detect smaller metal foreign objects, thereby realizing the detection of smaller metal foreign objects.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] According to a first aspect of the present invention, a strong and weak field foreign body detection method for a metal detector is provided, comprising the following steps: obtaining a weak field detection signal and a strong field detection signal of a product to be detected; calculating a metal foreign body signal value based on the weak field detection signal, the strong field detection signal, and a pre-determined qualified product coefficient and a metal foreign body coefficient, the qualified product coefficient being different from the metal foreign body coefficient; judging whether the metal foreign body signal value is greater than a preset threshold value: if so, it is considered that a metal foreign body is detected, otherwise it is considered that no metal foreign body is detected.
[0007] As a preferred technical solution, the metal foreign body signal value is expressed as:
[0008]
[0009] In the formula, m1 is the metal foreign body signal value, a is the qualified product coefficient, b is the metal foreign body coefficient, W1 is the weak field detection signal, and W2 is the strong field detection signal.
[0010] As an optimal technical solution, the determination process of the qualified product coefficient and the metal foreign matter coefficient specifically includes: measuring the qualified product signal under a weak field and the qualified product signal under a strong field respectively; calculating the qualified product coefficient based on the qualified product signal under the weak field and the qualified product signal under the strong field; measuring the product signal containing specific metal foreign matter under a weak field and the product signal containing specific metal foreign matter under a strong field respectively; calculating the metal foreign matter coefficient based on the product signal containing specific metal foreign matter under the weak field and the product signal containing specific metal foreign matter under the strong field.
[0011] As a preferred technical solution, the qualified product coefficient is expressed as:
[0012] a=W 1-p2 / W 1-p1
[0013] Where a is the qualified product coefficient, W 1-p1 is the qualified product signal under weak field, W 1-p2 It is the signal of qualified products under strong field.
[0014] As a preferred technical solution, the metal foreign body coefficient is expressed as:
[0015] b=W 1-m2 / W 1-m1
[0016] Where b is the metal foreign body coefficient, W 1-m1 It is the signal of the product containing specific metal foreign matter under weak field, W 1-m2 It is the signal of the product containing specific metal foreign matter under strong field.
[0017] As a preferred technical solution, the specific metal foreign matter includes iron, non-iron and stainless steel.
[0018] As a preferred technical solution, the preset threshold is 0.
[0019] As a preferred technical solution, the preset threshold is one tenth of the qualified product signal under a weak field during the determination of the qualified product coefficient.
[0020] According to a second aspect of the present invention, there is provided a strong and weak field foreign body detection device for a metal detector, comprising a memory, a processor, and a program stored in the memory, wherein the method described is implemented when the processor executes the program.
[0021] According to a third aspect of the present invention, there is provided a storage medium having a program stored thereon, wherein the program implements the method described above when executed.
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] 1. Compared with the traditional single electromagnetic field detection method, the strong and weak field foreign body detection method provided by the present invention uses strong and weak fields to obtain more product and foreign body information. At the same time, the strong and weak fields are of the same frequency, so that the relationship between the two basically conforms to linear superposition, so that the actual metal foreign body signal can be easily calculated by pre-determined product and typical metal foreign body coefficients. Even if the product signal submerges the metal signal, it does not matter. The calculation of the metal signal can still be achieved, and then the detection accuracy can be improved when the traditional threshold judgment method cannot detect smaller metal foreign bodies, thereby realizing the detection of smaller metal foreign bodies;
[0024] 2. The present invention sets the preset threshold value to one tenth of the qualified product signal under a weak field in the process of determining the qualified product coefficient. Considering that in actual testing, test errors and fluctuations in metal signals are difficult to avoid, even if there is actually no metal, the measured m1 is still a value close to 0 rather than 0. Setting the threshold value to non-zero can effectively balance detection accuracy and stability in engineering. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 Flowchart for obtaining detection signals for metal detectors;
[0026] Figure 2 The following is a flow chart of determining the qualified product coefficient and the metal foreign matter coefficient in an embodiment of the present invention;
[0027] Figure 3 A flowchart of a method is provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0029] Example
[0030] The strong and weak field foreign body detection method for metal detectors provided in this embodiment can improve the detection accuracy of metal detectors when the existing threshold judgment method cannot detect smaller metal foreign bodies, thereby realizing the detection of smaller metal foreign bodies. This method requires that the products passing through the metal detector are independently packaged and have a certain spacing, and the weight and shape of different products should be consistent.
[0031] Generally, in a metal detector, Figure 1 The detection signal is obtained in the manner shown. The transmission signal is amplified by the power amplifier circuit and then sent to the transmission coil through the transmission transformer, which excites an electromagnetic field of a certain intensity in the probe. The receiving coil senses the change of the electromagnetic field, and its output enters the receiving amplifier circuit through the receiving transformer and outputs a balanced signal. The balanced signal is processed by the demodulation circuit to obtain the detection signal.
[0032] Through time division multiplexing or signal aliasing, low-intensity electromagnetic fields and high-intensity electromagnetic fields can be easily excited in the probe window (the two signals only differ in intensity, and the frequency is the same), and applied to the object passing through the probe. To simplify the description, the low-intensity electromagnetic field is referred to as a weak field and the high-intensity electromagnetic field is referred to as a strong field.
[0033] The transmission signal strength of the probe transmitting coil is represented by H(t), the transmission signal strength corresponding to the weak field is recorded as H1(t), and the transmission signal corresponding to the strong field is recorded as H2(t).
[0034] The detection signal generated by any object through the probe is represented by W(t), the detection signal corresponding to the weak field is recorded as W1(t), and the detection signal corresponding to the strong field is recorded as W2(t).
[0035] The detection signal generated by the probe of a qualified product (without foreign matter inside) is represented by p(t). The detection signal corresponding to the weak field is recorded as p1(t), and the detection signal corresponding to the strong field is recorded as p2(t).
[0036] The detection signal generated by the metal foreign body (a certain specific metal) through the probe is represented by m(t). The detection signal corresponding to the weak field is recorded as m1(t), and the detection signal corresponding to the strong field is recorded as m2(t).
[0037] The relationship between the detection signal W(t), qualified product signal p(t), and metal foreign body signal m(t) is as follows:
[0038] W(t)=p(t)+m(t)(1)
[0039] Considering the strong and weak fields, we have:
[0040] W1(t)=p1(t0+m1(t) (2)
[0041] W2(t)=p2(t)+m2(t) (3)
[0042] Since the difference between strong and weak fields is only the difference in intensity (for example, the voltage of a weak field signal is 15V, and the voltage of a strong field signal is 30V), the relationship between p1(t) and p2(t) can be considered almost linear, that is:
[0043] p2(t)=a*p1(t) (4)
[0044] Similarly, the relationship between m1(t) and m2(t) can be considered almost linear, that is:
[0045] m2(t)=b*m1(t) (5)
[0046] Among them, a represents the qualified product coefficient, and b represents the metal foreign body coefficient. Both a and b are unitless coefficients, and their values are related to the intensity difference between strong and weak fields, and also to the response characteristics of the product / metal in the electromagnetic field. Generally speaking, there is a significant difference between a and b. a and b need to be entered into the equipment as preset values before the test begins, and their specific values can be determined through simple steps. Different metal foreign bodies correspond to different values of b. For example, iron corresponds to b1, non-iron corresponds to b2, and stainless steel corresponds to b3. The steps for determining a and b are as follows: Figure 2 shown.
[0047] In the traditional threshold judgment method, the threshold judgment is directly performed on the detection signal W(t) which is a mixture of product signal and metal signal, that is, when |W(t)| is greater than a certain threshold T, it is judged that foreign matter is detected. Figure 3 As shown, the method for judging metal detection in this embodiment is as follows:
[0048] Step S1, according to the aforementioned time division multiplexing or signal aliasing methods, a low-intensity electromagnetic field and a high-intensity electromagnetic field are excited in the probe window of the metal detector, and the product to be detected passes through the probe under the low-intensity electromagnetic field and the high-intensity electromagnetic field respectively, so as to obtain a weak field detection signal W1(t) and a strong field detection signal W2(t) of the product to be detected, which are abbreviated as W1 and W2 respectively.
[0049] Step S2, after substituting equation (4) and equation (5) into equation (2) and equation (3), the expression of the metal foreign body signal value m1(t) can be obtained by formula transformation:
[0050]
[0051] In the formula, m1(t) is abbreviated as m1.
[0052] Among them, according to Figure 2 The process shown in the figure pre-determines the qualified product coefficient and the metal foreign matter coefficient. The specific steps are:
[0053] 1) Pass the selected qualified products through the probe under weak field to measure the qualified product signal W under weak field 1-p1 ;
[0054] 2) Pass the qualified product through the probe under strong field and measure the qualified product signal W under strong field 1-p2 ;
[0055] 3) Calculate the qualified product coefficient a according to the following formula:
[0056] a=W 1-p2 / W 1-p1 (7)
[0057] 4) Take iron as a metal foreign body and pass it through the probe under weak field to measure the first product signal under weak field
[0058] 5) Take iron as a metal foreign body and pass it through the probe under a strong field to measure the first product signal under a strong field
[0059] 6) Calculate the first metal foreign body coefficient b1 according to the following formula:
[0060]
[0061] 7) Taking non-ferrous metal as metallic foreign matter, repeat the measurement and calculation process of steps 4) to 6) to obtain a second metallic foreign matter coefficient b2, wherein non-ferrous metal refers to metals other than iron and stainless steel (especially non-magnetic), such as copper, lead and the like;
[0062] 8) Using stainless steel as a metallic foreign body, repeat the measurement and calculation process of steps 4) to 6) to obtain a third metallic foreign body coefficient b3.
[0063] According to the acquired weak field detection signal W1, strong field detection signal W2 and the measured values a and b1-b3, the corresponding metal foreign body signal values are directly calculated by formula (6).
[0064] Step S3, respectively judging whether the metal foreign body signal values corresponding to different metal foreign bodies are significantly greater than 0: if so, it is considered that the metal foreign body is detected, otherwise it is considered that it is not detected.
[0065] In actual detection, the m1 values corresponding to b1, b2, and b3 are calculated simultaneously and judged in parallel. When the m1 value corresponding to one of the metal foreign bodies meets the judgment condition, it is considered that the metal foreign body is detected.
[0066] A set of data during actual testing is as follows (the following values have been normalized):
[0067] Table 1 Measured data
[0068]
[0069] Table 2 Comparison of measured accuracy data
[0070] iron Non-ferrous Stainless steel Traditional detection methods 0.7 1.0 1.5 This method 0.6 1.0 1.2
[0071] Table 2 shows the diameters of metal foreign bodies that can be detected by the traditional detection method and the method provided in this embodiment under the same conditions. The smaller the value, the smaller the metal ball that can be detected, and the higher the accuracy. It can be seen from Table 2 that the detection accuracy of this method is higher than that of the traditional detection method.
[0072] In this embodiment, it is considered that foreign matter is detected as long as m1>0. In actual use, m1>0.1*W 1-p1 is a reasonable approach, where W 1-p1 It is the qualified product signal under weak field in the process of determining qualified product coefficient and metal foreign body coefficient. The reason is that although theoretically as long as the calculated metal signal m1 is greater than 0, it means that there is metal, but due to test errors and fluctuations in product and metal signals, even if there is no metal, the measured m1 is still a value close to 0 rather than 0, so the threshold is set to 0.1*W 1-p1 It is a reasonable engineering approach that takes into account both detection accuracy and stability.
[0073] It should be noted that, as can be seen from the above calculation formula, if a=b, the calculation formula cannot produce a result. Its physical meaning is that the responses of the product and the metal under strong and weak fields are completely the same and cannot be distinguished. Therefore, the method provided in this embodiment cannot effectively detect the situation where there is no obvious difference between a and b.
[0074] Furthermore, this embodiment also provides a strong and weak field foreign object detection device for a metal detector, including a memory, a processor, and a program stored in the memory. When the processor executes the program, steps S1 to S3 of the aforementioned method are implemented. The specific execution process is consistent with the aforementioned one and will not be repeated here.
[0075] Furthermore, this embodiment also provides a storage medium on which a program is stored. When the program is executed, steps S1 to S3 of the aforementioned method are also implemented. The specific execution process is consistent with the aforementioned one and will not be repeated here.
[0076] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A strong and weak field foreign body detection method for a metal detector, characterized in that: The following steps are involved: Obtain weak field detection signals and strong field detection signals of the product to be detected; Calculating a metal foreign body signal value based on the weak field detection signal, the strong field detection signal, and a pre-determined qualified product coefficient and a metal foreign body coefficient, wherein the qualified product coefficient is different from the metal foreign body coefficient; Determine whether the metal foreign body signal value is greater than a preset threshold: if so, it is considered that the metal foreign body is detected, otherwise it is considered that it is not detected.
2. The strong and weak field foreign body detection method for a metal detector according to claim 1, characterized in that: The metal foreign body signal value is expressed as: In the formula, m1 is the metal foreign body signal value, a is the qualified product coefficient, b is the metal foreign body coefficient, W1 is the weak field detection signal, and W2 is the strong field detection signal.
3. The strong and weak field foreign body detection method for a metal detector according to claim 1, characterized in that: The determination process of the qualified product coefficient and the metal foreign matter coefficient specifically includes: Measure qualified product signals under weak field and qualified product signals under strong field respectively; Calculating the qualified product coefficient based on the qualified product signal under the weak field and the qualified product signal under the strong field; Measure the product signals containing specific metal foreign matter under weak field and the product signals containing specific metal foreign matter under strong field respectively; The metal foreign matter coefficient is calculated based on the product signal containing the specific metal foreign matter under the weak field and the product signal containing the specific metal foreign matter under the strong field.
4. The strong and weak field foreign body detection method for a metal detector according to claim 3, characterized in that: The qualified product coefficient is expressed as: a=W 1-p2 / W 1-p1 Where a is the qualified product coefficient, W 1-p1 is the qualified product signal under weak field, W 1-p2 It is the signal of qualified products under strong field.
5. The strong and weak field foreign body detection method for a metal detector according to claim 3, characterized in that: The metal foreign body coefficient is expressed as: b=W 1-m2 / W 1-m1 Where b is the metal foreign body coefficient, W 1-m1 It is the signal of the product containing specific metal foreign matter under weak field, W 1-m2 It is the signal of the product containing specific metal foreign matter under strong field.
6. The strong and weak field foreign body detection method for a metal detector according to claim 3, characterized in that: The specific metal foreign matter includes iron, non-iron and stainless steel.
7. The strong and weak field foreign body detection method for a metal detector according to claim 1, characterized in that: The preset threshold is 0.
8. The strong and weak field foreign body detection method for a metal detector according to claim 1, characterized in that: The preset threshold is one tenth of the qualified product signal under a weak field during the process of determining the qualified product coefficient.
9. A strong and weak field foreign body detection device for a metal detector, comprising a memory, a processor, and a program stored in the memory, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
10. A storage medium having a program stored thereon, characterized in that: When the program is executed, the method according to any one of claims 1 to 8 is implemented.
