# Crash Detection

GIZO SDK analyzes motion data in real-time to detect vehicle accidents and immediately provides key details such as the exact time, location, vehicle dynamics, environmental conditions, crash severity, and potential causes. This enables faster response, better incident analysis, and streamlined claims processing.

## How Does the Crash Detection Feature Function?

To enable crash detection, simply set `GizoCrashSetting.detectCrash` to `true`. Once activated, the crash detection pipeline operates fully automatically — the SDK continuously monitors for accidents, detects them in real-time, and seamlessly transmits the incident data to the GIZO server without any additional integration effort.

Once a crash is uploaded to the GIZO server, it undergoes thorough analysis to extract and deliver critical insights. This includes the precise time and GPS location of the incident, detailed vehicle dynamics such as speed and acceleration, as well as relevant environmental conditions like weather and road type. The system also assesses the severity of the crash and identifies possible causes, such as speeding or driver inattentiveness.

## How to Test the Pipeline during Development?

You can test the crash detection pipeline using a simulated crash. To do this, set `GizoCrashSetting.mode` to `Still_Test` and shake the phone aggressively. In this test mode, the SDK will simulate a crash and returns a dummy crash event. The event will be logged in the the accident log file to simulate the upload process. However, it will not be uploaded to the GIZO platform in the test mode.

{% hint style="danger" %}
After testing, make sure to set `GizoCrashSetting.mode` back to `Prod`; otherwise, the system will not function in the case of a real crash.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.artificient.de/usage/ios/crash-detection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
