Drilling and completion operations in complex formations often present significant problems to wellbore stability. These formations are characterized by unstable geological properties, leading to a higher risk of wellbore collapse or instability. To mitigate these risks, it is crucial to enhance wellbore stability through a combination of geologica