{'fraction_non_alphanumeric': 0.017254901960784313, 'fraction_numerical': 0.000784313725490196, 'mean_word_length': 5.477157360406092, '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}}
A Music Synthesizing Method for Tinnitus Sound Therapy Based on LSTM and Transformer

The treatment of tinnitus is a long-term process. Tinnitus sound therapy as an effective and non-intervention treatment has been widely used in clinical therapy. The music used in classical tinnitus treatments such as tinnitus masking therapy, tinnitus retraining therapy and its derivative therapies, has disadvantages like hearing unfriendly, ignoring personal preference or mismatching tinnitus frequency band and play repeatedly. Therefore, this paper proposes a new method of composing music with features of hearing friendly, playing un-repeatedly and matching personal preference of the patient for tinnitus sound therapy based on deep learning methods. Also, using MIDI technology to replace instruments covering different frequency bands to match tinnitus frequency more effective. We use two neural networks based on LSTM and Transformer structure to generate MIDI music. Then, analyze the results through 1/f fluctuation, fractal features and with tinnitus model based on LMS algorithm. Results indicate that the music generated by neural network has significant effect on tinnitus suppression. Thus, it might provide a new method for composing music for tinnitus sound therapy.