{'fraction_non_alphanumeric': 0.026223776223776224, 'fraction_numerical': 0.006993006993006993, 'mean_word_length': 5.656976744186046, '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}}
mobileSpiro: accurate mobile spirometry for self-management of asthma

Effective management of asthma and other respiratory diseases requires constant monitoring and frequent data collection using a spirometer and longitudinal analysis. However, even after three decades of clinical use, there are very few personalized spirometers available on the market, especially those connecting to smartphones. To address this problem, we have developed mobileSpiro, a portable, low-cost spirometer intended for patient self-monitoring. The mobileSpiro API, and the accompanying Android application, interfaces with the spirometer hardware to capture, process and analyze the data. Our key contributions are automated algorithms on the smartphone which play a technician's role in detecting erroneous patient maneuvers, ensuring data quality, and coaching patients with easy-to-understand feedback, all packaged as an Android app. We demonstrate that mobileSpiro is as accurate as a commercial ISO13485 device, with an inter-device deviation in flow reading of less than 8%, and detects more than 95% of erroneous cough maneuvers in a public CDC dataset.