The invention discloses a method for automatically positioning and repairing clipping
distortion waveforms of an
electronic stethoscope. The method includes the following steps that: an
auscultation signal is read; a difference of the
signal x is obtained, and a differential
signal x<d> is obtained; through threshold comparison and endpoint
pairing, K non-overlapping time intervals for clipping
distortion is determined, the time intervals are sorted in time order, and a stack is formed by entering first and then exiting; if K=0, a clipping
distortion area is avoided, repairing is no longer needed, if K>=1, a data time
point set psi<K>interpolated on the stack is determined, time
point set psi<K>and a corresponding value x(psi<K>) on x at each time point of the time
point set are used, anda value in the Kth section of the clipping distortion area is fitted to replace an original clipping distortion value in the x through interpolation; the time interval at the top of the stack is removed; and an
auscultation signal x without clipping distortion is output. According to the method for automatically positioning and repairing the clipping distortion waveforms of the
electronic stethoscope, the clipping distortion area of
stethoscope signals can be automatically detected and positioned, and signals of the clipping distortion area and a plurality of close clipping distortion areas can be automatically repaired.