Legal documents serve as valuable repositories of information pertaining to crimes, encompassing not only legal aspects but also relevant details about criminal behaviors. To date and the best of our knowledge, no studies in the field examine legal documents for crime understanding using an Artificial Intelligence (AI) approach. The present study aims to fill this research gap by identifying relevant information available in legal documents for crime prediction using Artificial Intelligence (AI). This innovative approach will be applied to the specific crime of Intimate Partner Femicide (IPF). A total of 491 legal documents related to lethal and non-lethal violence by male-to-female intimate partners were extracted from the Vlex legal database. The information included in these documents was analyzed using AI algorithms belonging to Bayesian, functions-based, instance-based, tree-based, and rule-based classifiers. The findings demonstrate that specific information from legal documents, such as past criminal behaviors, imposed sanctions, characteristics of violence severity and frequency, as well as the environment and situation in which this crime occurs, enable the correct detection of more than three-quarters of both lethal and non-lethal violence within male-to-female intimate partner relationships. The obtained knowledge is crucial for professionals who have access to legal documents, as it can help identify high-risk IPF cases and shape strategies for preventing crime. While this study focuses on IPF, this innovative approach has the potential to be extended to other types of crimes, making it applicable and beneficial in a broader context.