Search

CN-119781005-B - Foreign matter detection method, foreign matter detection system, foreign matter detection equipment storage medium and program product

CN119781005BCN 119781005 BCN119781005 BCN 119781005BCN-119781005-B

Abstract

The application provides a foreign matter detection method, a foreign matter detection system, a foreign matter detection device, a storage medium and a program product. The method comprises the steps of obtaining a first sound signal of a device to be tested when vibrating, and determining whether foreign matters exist in the device to be tested according to at least the first sound signal. According to the method, when the device to be tested contains the foreign matters, the foreign matters can generate displacement in the device to be tested when the device to be tested is rocked at a certain frequency, and collide with the device in the device to be tested to generate sound. Therefore, the method can accurately determine whether the device to be tested has foreign matters or not through the sound signal when the device to be tested vibrates, and the method does not need to manually disassemble the device to be tested or manually check and visually inspect the device to be tested, so that the detection efficiency can be improved.

Inventors

  • CHANG DA
  • JIANG PINGPING
  • DAI XIANGYU
  • LU TAO
  • ZHANG KELONG

Assignees

  • 比亚迪股份有限公司

Dates

Publication Date
20260505
Application Date
20241018

Claims (19)

  1. 1. A foreign matter detection method, characterized in that the method comprises: acquiring a first sound signal of a device to be tested during vibration; Determining whether foreign matters exist in the device to be detected according to the sound similarity of the first sound signal and the second sound signal of the target device, wherein the target device and the device to be detected are the same device; The sound similarity comprises a first similarity between the first sound signal and the second sound signal and a second similarity of signal feature sequences corresponding to the two sound signals, wherein the second similarity comprises a time domain similarity between a first time domain feature sequence of the first sound signal and a second time domain feature sequence of the second sound signal and/or a frequency domain similarity between a first frequency domain feature sequence of the first sound signal and a second frequency domain feature sequence of the second sound signal.
  2. 2. The method according to claim 1, wherein the method further comprises: A second sound signal of the target device while vibrating is acquired.
  3. 3. The method according to claim 2, wherein the target device is a foreign object-free device, and wherein, in the case that the sound similarity includes a first similarity, determining whether a foreign object exists in the device under test according to the sound similarity of the first sound signal and the second sound signal of the target device includes: and if the first similarity is smaller than or equal to a preset first preset value and the second similarity is smaller than or equal to a preset second preset value, determining that foreign matters exist in the device to be tested.
  4. 4. The method of claim 1, wherein the second similarity comprises: When the first signal feature sequence comprises a first time domain signal feature sequence and the second signal feature sequence comprises a second time domain signal feature sequence, the second similarity comprises a time domain similarity of the first time domain signal feature sequence and the second time domain signal feature sequence, and/or When the first signal feature sequence comprises a first frequency domain signal feature sequence and the second signal feature sequence comprises a second frequency domain signal feature sequence, the second similarity comprises a frequency domain similarity of the first frequency domain signal feature sequence and the second frequency domain signal feature sequence; If the second similarity is less than or equal to a second preset value, determining that a foreign object exists in the device to be tested, including: and if the first similarity is smaller than or equal to a preset first preset value and the time domain similarity and/or the frequency domain similarity is smaller than or equal to a preset second preset value, determining that foreign matters exist in the device to be tested.
  5. 5. The method of claim 4, wherein determining whether a foreign object is present in the device under test based on the sound similarity of the first sound signal and the second sound signal of the target device comprises: And if the first similarity is larger than a preset first preset value, and the time domain similarity and the frequency domain similarity are both larger than a preset second preset value, determining that no foreign matter exists in the device to be tested.
  6. 6. The method of claim 4, wherein determining whether a foreign object is present in the device under test based on the sound similarity of the first sound signal and the second sound signal of the target device, further comprises: If the first similarity is greater than a preset first preset value, and the time domain similarity and the frequency domain similarity are both greater than a preset second preset value, inputting a first time domain signal characteristic sequence and/or a first frequency domain signal characteristic sequence and the first sound signal into a foreign matter detection model which is trained in advance to obtain a detection result output by the foreign matter detection model, wherein the detection result is used for representing whether foreign matters exist in the device to be tested.
  7. 7. The method of claim 6, wherein the step of providing the first layer comprises, When the device to be tested contains foreign matters, the detection result is also used for representing the types of the foreign matters existing in the device to be tested.
  8. 8. The method of any of claims 1-7, wherein prior to determining from the first acoustic signal whether a foreign object is present in the device under test, the method further comprises: The first sound signal is preprocessed to remove noise in the first sound signal.
  9. 9. The method of any of claims 1-7, wherein the acquiring a first acoustic signal of the device under test while vibrating comprises: a first sound signal of the device under test when vibrating at a set frequency and a set amplitude is obtained.
  10. 10. The method of claim 9, wherein prior to acquiring the first sound signal of the device under test while vibrating at the set frequency and the set amplitude, the method further comprises: Acquiring the actual amplitude of the device to be tested when vibrating at the set frequency and the set amplitude; and determining that the difference value between the set amplitude value and the actual amplitude value is in a preset difference value range.
  11. 11. The method of claim 9, wherein the device under test is disposed on a vibrating device, the method further comprising: and sending a control instruction to a vibration device, wherein the vibration device can vibrate in response to the control instruction so as to enable the device to be tested to vibrate at the set frequency and the set amplitude.
  12. 12. The test system is characterized by comprising a detection device, a vibration device and a sound acquisition device; The vibration device is used for bearing the device to be tested and driving the device to be tested to vibrate; the sound collection device is used for collecting a first sound signal of the device to be tested when vibrating; the detection device for performing the method of any one of claims 1-11.
  13. 13. The system of claim 12, wherein the vibration device is configured to receive a control command sent by the detection device, and drive the device under test to vibrate according to a set frequency and a set amplitude according to the control command.
  14. 14. The system of claim 13, further comprising an amplitude acquisition device; The amplitude acquisition device is used for acquiring the actual amplitude of the device to be tested when vibrating at the set frequency and the set amplitude; the detection device is also used for obtaining a first sound signal of the device to be detected when the device to be detected vibrates at the set frequency and the set amplitude when the difference value between the set amplitude and the actual amplitude is within a preset difference value range.
  15. 15. The system of any one of claims 12-14, further comprising a securing device; the fixing device is used for fixing the device to be tested on the vibration device.
  16. 16. The system according to any one of claims 13-14, further comprising a data acquisition device; The data acquisition device is respectively connected with the detection device and the sound acquisition device and is used for acquiring a first sound signal, acquired by the sound acquisition device, of the device to be detected during vibration and sending the first sound signal to the detection device.
  17. 17. An electronic device, comprising a processor and a memory communicatively coupled to the processor; the memory stores computer-executable instructions; The processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1-11.
  18. 18. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-11.
  19. 19. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-11.

Description

Foreign matter detection method, foreign matter detection system, foreign matter detection equipment storage medium and program product Technical Field The present application relates to a foreign matter detection technology, and more particularly, to a foreign matter detection method, system, apparatus, storage medium, and program product. Background During the manufacture and use of electronic devices, minute metal shavings, dust, or other impurities may remain inside. If foreign matter is contained in the electronic device, it will have a great influence on the reliability of the electronic device. Through detecting whether the inside of the electronic device has the foreign matters, potential problems can be found in time, and faults of the electronic device caused by the foreign matters are prevented. Taking an electronic device as a relay as an example, at present, whether foreign matters exist in the relay is determined by visual inspection after the relay is disassembled, so that the detection efficiency is low and the accuracy is poor. Disclosure of Invention The application provides a foreign matter detection method, a system, equipment, a storage medium and a program product, which are used for solving the problems of low internal foreign matter detection efficiency and poor accuracy of electronic devices. In a first aspect, the present application provides a foreign matter detection method, the method comprising: acquiring a first sound signal of a device to be tested during vibration; And determining whether foreign matters exist in the device to be tested or not at least according to the first sound signal. Optionally, the method further comprises: acquiring a second sound signal of a target device during vibration, wherein the target device and the device to be tested are the same type of device; The determining whether the foreign matter exists in the device to be tested according to at least the first sound signal comprises the following steps: determining the sound similarity of the device to be tested and the target device according to the first sound signal and the second sound signal; and determining whether foreign matters exist in the device to be tested or not at least according to the voice similarity. Optionally, the sound similarity includes a first similarity and/or a second similarity, where the first similarity is a similarity between the first sound signal and the second sound signal, and the second similarity is a similarity between a first signal feature sequence of the first sound signal and a second signal feature sequence of the second sound signal. Optionally, the target device is a foreign object-free device, and in the case that the sound similarity includes a first similarity, determining whether a foreign object exists in the device under test at least according to the sound similarity includes: and if the first similarity is smaller than or equal to a preset first preset value, determining that foreign matters exist in the device to be tested. Optionally, the target device is a foreign object-free device, and in the case that the sound similarity includes the second similarity, determining whether the foreign object exists in the device under test at least according to the sound similarity includes: and if the second similarity is smaller than or equal to a preset second preset value, determining that foreign matters exist in the device to be tested. Optionally, the second similarity includes: When the first signal feature sequence comprises a first time domain signal feature sequence and the second signal feature sequence comprises a second time domain signal feature sequence, the second similarity comprises a time domain similarity of the first time domain signal feature sequence and the second time domain signal feature sequence, and/or When the first signal feature sequence comprises a first frequency domain signal feature sequence and the second signal feature sequence comprises a second frequency domain signal feature sequence, the second similarity comprises a frequency domain similarity of the first frequency domain signal feature sequence and the second frequency domain signal feature sequence; and if the second similarity is smaller than or equal to a second preset value, determining that a foreign object exists in the device to be tested, including: and if the time domain similarity and/or the frequency domain similarity are/is smaller than or equal to a preset second preset value, determining that foreign matters exist in the device to be detected. Optionally, the determining whether the foreign matter exists in the device under test at least according to the sound similarity includes: And if the time domain similarity and the frequency domain similarity are both larger than the preset second preset value, determining that no foreign matter exists in the device to be tested. Optionally, the determining whether the foreign matter exists in the device unde