{'fraction_non_alphanumeric': 0.018518518518518517, 'fraction_numerical': 0.0, 'mean_word_length': 4.972375690607735, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Crackle detection and classification based on matched wavelet analysis

Crackles have an explosive pattern in the time domain, with a rapid onset and a short duration. The timing, repeatability and shape of crackles are important parameters for diagnosis. Therefore, automatic detection of crackles and their classification have important clinical value. Since crackles have a general characteristic shape, it is obvious that wavelet analysis can be exploited to detect crackles and to classify them. In this paper, we present a new method for crackle detection which is based on a 'matched' wavelet transform. We first model crackles as a mathematical function. Then we design a matched wavelet based on this model. Applying a soft threshold to the results of the continuous wavelet transform to suppress noise further, the optimal scale can be obtained. Crackles can be detected based on the envelope of the signal at an optimal scale, and can be classified based on the energy distribution with scale. Theory, methods and experimental results are given in detail in this paper.