# RTACompensator: Leveraging AraBERT and XGBoost for Automated Road Accident Compensation
## 2 Background  
In this section, we outline the current approach for calculating indemnifications for road traffic accident victims and introduce the new process with the implementation of our proposed system. Determining indemnification for personal motor vehicle responsibility involves several factors. Indemnification generally covers the following:  
* **Reimbursement of transport and medical expenses:** This includes costs for transporting the injured person and, if needed, an accompanying person, as well as expenses related to medical treatment, surgery, pharmaceuticals, hospitalization, and prosthetic or orthopedic devices for rehabilitation. * **Temporary incapacity to work:** Compensation for lost salary or professional income due to temporary disability, considering the responsibility of the at-fault party or civil liability. * **Permanent physical incapacity:** Compensation for lost wages or professional income resulting from permanent disability. This also covers damages for physical integrity, such as the need for hiring assistance, a complete career change, adverse effects on professional life, interruption of studies, disagreement, and physical pain. If the injury results in the death of the injured person, their dependents are entitled to compensation for the loss of their means of subsistence due to the death. When a road accident occurs, an ambulance arrives on the scene to treat the injured and transport them to the hospital. If any of the injured individuals dies at the scene, a hearse is called to transport the body to the morgue. Meanwhile, the police secure the area to ensure the safety of the victims, paramedics, and other road users, and to facilitate traffic flow. They then inspect the scene and speak to the victims to see if they are stable and able to communicate. Additionally, the police interview witnesses to gather as much information as possible about the circumstances of the accident. If the police find that one of the parties to the accident has committed an offense, such as driving under the influence of alcohol or drugs, they notify the crown prosecutor or their deputy to determine the appropriate action, which is usually an arrest. After gathering information about the incident, the police prepare a report detailing the date, location, parties involved, and circumstances of the accident. When the victim's health stabilizes and they are discharged from the hospital, they can begin the legal process to seek compensation. The first step is to hire a lawyer to file a lawsuit for compensation; if the victim has died, their family will undertake this process. The lawyer will request the victim (or the victim's family in the case of death) to provide a folder containing the following documents:  
* A copy of the victim's birth certificate;
* Proof of wages or professional earnings;
* Copies of medical examination reports;
* Any other documents necessary to estimate the damages, such as medical bills, receipts for transportation costs, and evidence of other incurred expenses. The lawyer then submits a request for compensation on behalf of their client, along with the required documents to the court's registry. The public prosecutor instructs the police to provide a copy of the accident report to the court clerk and assigns a specialized traffic accident judge to the case. The lawyer is also informed to obtain a copy of the report. After the judge reviews all the documents, and if the victim is alive, the judge appoints a sworn doctor to conduct a medical examination. The judge then notifies the victim's lawyer to schedule an appointment for the examination. During the examination, the sworn doctor reviews the existing medical documents and re-examines the victim to prepare a detailed health report. The report includes the following:  
* **Permanent physical disability:** The doctor indicates whether the victim suffers from a permanent physical disability that requires dependency on others for daily tasks. * **Physical pain:** Classified as quite important, important, or very important.