Saving Lives One Swimmer at a Time

CSEF · 2013 Mathematics & Software First Award

Overview

Objectives/Goals The objective of this project is to develop a computer system that can reliably detect when a swimmer is underwater and possibly drowning. Methods/Materials A video was taken with the swimmer under water as well as above the water. The video was split up into still images. Then a program written in Python processed the images. The program compared a baseline image in which the swimmer was known to be absent/not visible to other images, attempting to detect whether the swimmer was visible in the other images. For a given image, the program concluded that the swimmer was visible if and only the region (a 50x100 pixel box) with the largest summed differences exceeded a specified threshold. Sometimes when the swimmer is submerged, the error level exceeds the threshold because the program has detected moving lane lines. An improved program was developed that minimizes the impact of this or similar motion. The new program modifies the evaluation image by swapping closely-spaced pixels to minimize error levels, essentially moving the lane lines back to their original location in the baseline image. Results As expected, images with the swimmer above water have a higher error level than those with the submerged swimmer; although it can minimize or eliminate the errors associated with moving lane lines, pixel-swapping cannot eliminate the error associated with the swimmer because the swimmer is not visible in the baseline image. Conclusions/Discussion It is possible to set a threshold which can be compared against error levels to accurately determine whether the swimmer is not visible and hence underwater.

Summary statement

In this project, a computerized image processing system was developed to reliably detect when a swimmer is underwater and possibly drowning.

Help received

Father helped teach Python programming language

Awards (1)

Competition history

  • CSEF 2013 Mathematics & Software · Entry J1403

Resources

Related projects

Closest projects by meaning, across every fair and year in the corpus.

Browse more like this

Source: California Science & Engineering Fair public projects

Save projects to your library

Sign in with Google to keep track of projects you find interesting, organized into folders. An account also raises your daily allowance for “Has this been done?”, and lets you create a key for the MCP server with a much higher limit than anonymous use. Browsing stays public.

Continue with Google