The development of digital technology has given music dissemination a technological advantage of high productivity and efficiency. With the continuous improvement of digital technology and the diversification of communication forms, information visualization design pays more attention to the audience’s experience and feelings. This article analyzes the application of pattern recognition based artificial intelligence in music entertainment environments and automatic recognition of music. Digital media can achieve bidirectional information transmission through user participation and feedback, and can provide customers with more entertainment music experiences through entertainment games and other means. This article focuses on the image enhancement processing, note recognition, and automatic recognition conversion of music scores in complex contexts, and develops an automatic music score recognition system to digitize music score information. Through online dissemination, the public can fully experience the beauty of music in the process of communication and interaction, and at the same time, music can be brought into the entertainment environment.