The results obtained from FE analysis strongly align with clinical findings, confirming the effectiveness of the proposed algorithm. By emphasizing the structural aspect of bone adaptation, the proposed algorithm brings a fresh perspective on bone adaptation at the peri-prosthetic bone. This method can help researchers and clinicians to improve implant designs for better clinical outcomes.