The global stress distribution and state parameter analysis of the building's main structure is an urgent problem to be solved in the online state assessment technology of building structure health. In this paper, a stress curve clustering algorithm of fiber Bragg grating stress sensor based on density clustering algorithm is proposed. To solve the problem of large dimension and sparse sample space of sensor stress curve, the distance between samples is measured based on improved cosine similarity. Aiming at the problem of low efficiency and poor effect of traditional clustering algorithm, density clustering algorithm based on mutual nearest neighbor is used to cluster. Finally, the classification of the daily stress load characteristics of the sensor is realized, which provides a basis for constructing the mathematical analysis model of building health. The experimental results show that the stress curve clustering method proposed in this paper is better than the latest clustering algorithms such as HDBSCAN, CBKM, K-mean++,FINCH and NPIR, and is suitable for the feature classification of stress curves of fiber Bragg grating sensors.