An API for predicting earthquake damage based on seismic parameters and soil type.
- Predict Peak Ground Acceleration (PGA) using Random Forest model
- Analyze potential damage levels based on PGA
- Support for 5 soil types: Alluvial, Medium, Rock/Stiff, Sandy, Soft
- RESTful API with FastAPI
- Automatic OpenAPI documentation
Get all valid soil types for frontend dropdown.
Predict earthquake damage based on seismic parameters.
Request Body:
{
"magnitude": 6.5,
"depth": 15.0,
"distance_from_fault": 25.0,
"soil_type": "rock/stiff soil"
}