This paper presents a data transmission optimization method to determine the optimal data transmission strategy in wireless sensor networks for structural monitoring,comprehensively considering durability,stability,and timeliness.A mathematical model was established for evaluating data transmission in the structural monitoring wire-less sensor networks,and a collaborative-fly firefly algorithm was proposed for optimizing the data transmission strat-egy.A numerical experiment was conducted to verify the effectiveness of the method.The results indicate that the established model can effectively describe the performance of data transmission strategies in structural monitoring wireless sensor networks,particularly in terms of network lifetime,reliability,and delay.Compared with other methods,both the computational efficiency and the quality of the solution of the proposed method are improved by over 50%.The optimal data transmission strategy obtained by the method proposed in this paper can not only maxi-mize the network lifetime but also minimize data loss and transmission delay.This research provides valuable refer-ences for the design of wireless sensor networks for structural monitoring.