The construction of accounting informatization is an effective tool for enterprises to transform from focusing on financial accounting to focusing on group management and decision support. Digital twins make full use of physical models, sensor updates and other data, integrate interdisciplinary and multi-scale modeling processes, and perform complete mapping in virtual space, which can reflect the process of the entire life cycle of the corresponding physical equipment. Based on the technology of digital twin, this paper solved the related problems in the transformation and construction of accounting informatization, and proposed a clustering analysis algorithm. Company A was taken as the experimental object, companies B and C were taken as the experimental control group, combined with data analysis, among the accountants of company A, 179 people have a supportive attitude towards the transformation of accounting information, 16 people have a neutral attitude, and 5 people have an opposing attitude, accounting for 89.5%, 8% and 2.5% respectively. However, among companies B and C, 196 and 199 people hold a favorable attitude, accounting for 98% and 99.5% respectively. The experimental results showed that the acceptance of the accounting informatization transformation is still relatively high among the employees of the enterprise.