Data-inspired modeling of accidents in traffic flow networks