Diabetes mellitus (DM) is a chronic metabolic disorder affecting millions globally. Effective management of DM is crucial to mitigate its complications. Natural herbs, including turmeric (Curcuma longa), aloe vera, and basil (Ocimum basilicum), are known for their medicinal properties and have been explored for their potential benefits in diabetes management. Objective of the paper is to evaluate the impact of the herbal treatment on Fasting Blood Glucose (FBG), Urea, Creatinine levels and Blood Urea Nitrogen (BUN) levels and employ machine learning models to predict and analyze the effectiveness of different doses of the herbal treatment. In this study, we divided our work into two phases. Firstly, we performed the experiment with adult Wistar albino rats and rats were made diabetic through intraperitoneal injection of freshly prepared streptozotocin (STZ). The diabetic rats were split into an untreated control group and treated test groups. The treated groups received varying doses of an aqueous solution of natural herbs (turmeric, aloe vera, and basil) administered orally through gavage for 21 days. In second phase, experimental data were collected and analyzed to detect the impact of natural herbs on diabetic rats. The paper proposes an algorithm that integrates the Bayesian Structural Time Series (BSTS) model with the Dynamic Time Warping (DTW) method. The Bayesian Structural Time Series (BSTS) model has been used as a baseline to determine the impact of natural herbs on specific health metrics such as Fasting Blood Glucose (FBG), Urea, Creatinine, and Blood Urea Nitrogen (BUN) levels. The DTW algorithm has been used in conjunction with the BSTS model to enhance performance. This combination of BSTS and DTW aims to provide a more comprehensive analysis of the effects of natural herbs on the health metrics of diabetic rats, highlighting the potential therapeutic benefits of these herbs in managing diabetes. Significant reduction (p=0.001) in FBG levels, Urea, Creatinine and BUN levels indicates the potential of this herbal combination in managing blood sugar levels. These findings suggest that the combined herbal preparation has a beneficial effect on the treatment of diabetes mellitus.