A method includes receiving sensor data, including audio data, of a user at an electronic device.The method also includes identifying respiratory phases of the user's breathing based on the sensor data. The method further includes converting the audio data into image data and identifying an abnormal sound associated with the user's breathing based on the image data. In addition, the method includes determining a pulmonary condition of the user based on the abnormal sound and the identified respiratory phases.