In the ever-evolving world of veterinary care, the occurrence of bone fractures in canines poses a common and complex problem, especially in extra-small breeds and dogs that are less than 1 year old. The objective of this research is to fill a gap in predicting the risk of canine bone fractures. A machine learning method using a random forest classifier was constructed. The algorithm was trained on a dataset consisting of 2261 cases that included several factors, such as canine age, gender, breed, and weight. The performance of the algorithm was assessed by examining its capacity to forecast the probability of fractures occurring. The findings of our study indicate that the tool has the capability to provide dependable predictions of fracture risk, consistent with our extensive dataset on fractures in canines. However, these results should be considered preliminary due to the limited sample size. This discovery is a crucial tool for veterinary practitioners, allowing them to take preventive measures to manage and prevent fractures. In conclusion, the implementation of this prediction tool has the potential to significantly transform the quality of care in the field of veterinary medicine by enabling the detection of patients at high risk, hence enabling the implementation of timely and customized preventive measures.