Spatiotemporal detection of maritime targets using neural networks