To meet users’ expectations for speed and reliability, 5th Generation (5G) networks and other forms of mobile communication of the future will need to be highly efficient, flexible, and nimble. Because of the expected density and complexity of 5G networks, sophisticated network control across all layers is essential. In this context, self-organizing network (SON) is among the essential solutions for managing the next generation of mobile communication networks. Self-optimization, self-configuration, and self-healing (SH) are typical SON functions. This research creates a framework for analyzing SH by exploring the impact of recovery measures taken in precarious stages of health. For this reason, our suggested architecture takes into account both detection and compensating operations. The system is broken down into some faulty states and the “fuzzy c-means” (FCM) approach is used to conduct the classifying. In the compensation process, the network is characterized as the Markov decision model (MDM), and the linear programming (LP) technique is implemented to find the most effective strategy for reaching a goal. Numerical findings acquired from a variety of situations with varying objectives show that the suggested method with optimized operations in the compensation stage exceeds the approach with randomly chosen actions.