A method for marking adventitious sounds is provided. The method includes: receiving a lung sound signal generated by a sensor from a chest cavity sound signal; capturing a lung sound signal segment from the lung sound signal every sampling time interval; converting the lung sound signal segments into spectrograms; inputting the spectrograms into a recognition model to determine whether the spectrograms include adventitious sounds; obtaining time points of occurrence corresponding to the adventitious sounds according to abnormal spectrograms including the adventitious sounds, and the number of occurrences of the adventitious sounds corresponding to the time points; and marking an adventitious sound signal segment having the highest probability of occurrence of the adventitious sound in the lung sound signal according to the time points and the number of occurrences.