Drilling and completion operations in challenging formations often present significant obstacles to wellbore stability. These formations are characterized by heterogeneous geological properties, leading to a higher risk of wellbore collapse or deviation. To mitigate these risks, it is crucial to improve wellbore stability through a combination of t