To investigate coupled oscillator model and community detection algorithm, an improvement method about the phase synchronization oscillator model and an optimized method (community detection via model modification) was proposed. By using the kuramoto oscillator model as a basis, after joining the negative coupling strength, the nodes can be divided into several different synchronized clusters. In the synchronization process, the internal nodes in the same matrix are connected closely. In this method kuramoto coupled oscillator model are expanded. The network can realize synchronization or be partitioned into several clusters depending on its structure.