Loud vehicles like motorcycles, cars, trains and aircraft in sound recognition

Hi, I live next to a train track and occasionally when the train passes by my house it can be very loud especially when it sounds its horn and it disturbs my sleep sometimes in the middle of the night, I also sometimes get disturbed sleep by a loud motorcycle or car with a loud engine passing by my house, although airplanes are not issue for me anymore, It used to be an issue in my old house because it was near the airport. So if you can, could you please add loud vehicle sound detection in Sleep as android? I would greatly appreciate it.

Need to be able to calibrate so it blocks out and ignores various common noise in background ie. fan, CPAP, TV, etc.

Yes, fans, fire trucks, police cars with sirens on.