Machine learning-equipped camera systems can be an effective and low-cost flood defence tool, researchers show.