The birth of beyond 5G (B5G) and emerge of 6G has made personal and industrial operations more reliable, efficient, and profitable, accelerating the development of the next-generation Internet of Things (IoT). The Industrial equipment in 6G contains a large number of wireless sensors, which collect a large amount of data by sensing the surrounding environment, but the data is not always useful. The emergence of data mining has undoubtedly found a breakthrough point for extracting effective information from massive data. In the pursuit of lower latency, edge computing has also begun to develop. Eventually, 6G can make intelligent decisions in real-time and realize automated equipment operations. However, with the application of various technologies, the energy consumption of the system has increased, but the energy carried by the sensor is still limited. This paper addresses the energy consumption problem with a system model of industrial wireless sensor networks based on a multi-agent system (MAS) for industrial 6G applications. The method uses distributed artificial intelligence (DAI) to cluster the sensor nodes in the system to find the main node and predict its location. The work initially uses the backpropagation neural network (BPNN) and convolutional neural network (CNN), which are respectively introduced for optimization. Furthermore, we analyze the correlation of mutual clusters to allocate resources to individual nodes in each cluster efficiently. The simulation results show that the proposed method reduces the waste of resources caused by redundant data, improves the energy efficiency of the whole network, along with information preservation.