The digital economy is reshaping the global economic pattern at an unprecedented speed, and has become an important force to promote the transformation of regional economic structure. Based on data mining technology, this paper deeply explores the mechanism and effect of digital economy on regional economic structure transformation. The study adopts a factor analysis model to construct an evaluation index system from four dimensions, namely digital communication infrastructure, digital network infrastructure, digital industry development level and innovation ability, to measure the development level of digital economy in a region from 2015 to 2024, and to analyze the impact of the digital economy on the structural transformation of the regional economy by combining the orthogonal least squares method. The results of the study show that: the level of digital economy development is significantly positively correlated with the transformation of regional economic structure, with a regression coefficient of 0.446, indicating that the development of the digital economy has a positive effect on promoting the proportion of tertiary industry; the analysis of regional heterogeneity shows that the impact of the digital economy on the transformation of the economic structure of the central region is most significant, with a regression coefficient of 0.701, which is significantly higher than that of the southern region, 0.532, and northern The analysis of control variables found that the level of financial development and the level of urbanization had a positive effect on economic structural transformation, while the level of education investment had a negative effect. The study provides theoretical basis and practical guidance for regions to formulate differentiated digital economy development strategies and promote the optimization and upgrading of economic structure.