Patient phenotyping based on lung function fluctuation