Optical Ovulation Detector Preliminary Design Review Jason Kutarnia Brett Casagranda Eric Sondhi

Download Report

Transcript Optical Ovulation Detector Preliminary Design Review Jason Kutarnia Brett Casagranda Eric Sondhi

Optical Ovulation Detector
Preliminary Design Review
By
Jason Kutarnia
Brett Casagranda
Eric Sondhi
OUTLINE
Background
Project Specifications
Preliminary Design Review
Proposed MDR Prototype Specifications
October 17, 2003
ECE Senior Design Project
2
Background
There are many ways to
detect a woman’s ovulation
cycle
Fern Pattern Detection has
proved to be most accurate
in determining peak
ovulation.
October 17, 2003
ECE Senior Design Project
Ferning pattern observed @ 40X magnification
3
Background (cont.)
 Ferning occurs during the 2nd phase of the menstrual cycle - the
ovulatory phase and is due to crystallized sodium chloride present
in the saliva as a result of high hormone levels.
 Here we see sodium chloride crystallizing and forming the “ferning”
pattern
October 17, 2003
ECE Senior Design Project
4
Project Specifications
 Goal: Quickly and accurately detect if a woman is in the
peak of her ovulation cycle
 Done by detecting a "ferning" pattern that forms when
certain enzymes and hormones crystallize in the
woman's saliva
 The project can be broken down into two major phases:
1. Optical/mechanical image capturing device.
2. Software oriented image recognition/processing
system.
October 17, 2003
ECE Senior Design Project
5
Project Design Flowchart
S
Webcam
Lens config.
Y (Magnification)
L
Light
I
Source
D
E
Laptop With
Image
Processing
Software
October 17, 2003
Image Capturing Device
Image Processing System
Laptop Output
ECE Senior Design Project
Detection
Of Peak
Ovulation:
Yes/No
6
Image Capturing Device
 Our image capturing device will be a handheld “box”
 Our device will capture an image of the saliva sample and transfer
 In order to achieve this, the following steps must be taken:
- the size of the “ferning” pattern must be determined
- using this size and the desired magnification of a lens, the
proper distance between the slide and lens as well as the lens
and webcam can be determined to get a desired image
- a means of adjusting the position of the slide is needed
- the proper amount of light needed must be determined
October 17, 2003
ECE Senior Design Project
7
Preliminary Design
S
Image Capturing Device
L
Webcam
I
Light
D
Source
E
X
Y
Z
Total magnification must be 40X
October 17, 2003
ECE Senior Design Project
8
Image Processing System
 Once our image has been captured, an algorithm is needed to
process the image and give a “yes/no” result as to whether or not
the female is in peak ovulation. The following considerations must
be taken for the second stage:
 - the image format may need to be converted before processing
 - an algorithm is derived for processing the image using edge
detection and an image processing transform(s) technique
 - lastly a display of the result is given for the user to view
October 17, 2003
ECE Senior Design Project
9
Preliminary Design
Image Processing Software
 Initially Edge detection must be performed on the
acquired image to find (xi, yi) coordinates of the
edge pixels.
 Hough Transforms may then be used to detect
ferning patterns by identifying lines present in the
captured image.
 If the number of lines within the image passes an
arbitrary threshold then peak ovulation is occurring
October 17, 2003
ECE Senior Design Project
10
How Hough Trans. Work
 a convenient equation for describing a set
of lines takes the parametric form
x cos + y sin = r.
 The possible values of this equation,
defined by each edge coordinate in the
Cartesian image, map to curves (i.e.
sinusoids) in the polar Hough parameter
space. This point-to-curve transformation is
the Hough transformation for straight lines.
When viewed in Hough parameter space,
points which are collinear in the Cartesian
image space become readily apparent as
they yield curves which intersect at a
common point.
October 17, 2003
ECE Senior Design Project
Intensity map of a Hough transform
11
Software Implementation
of Hough Transform
 A two dimensional Accumulator array using r and 
as indexes (Array[r][]) must be initialized with
each element containing a 0.
 For every r,  pair that an edge coordinate maps to
that element is incremented by 1.
 The r,  pairs which have the highest values in the
array are considered to be lines in the image.
October 17, 2003
ECE Senior Design Project
12
Proposed MDR Prototype
Specifications
The primary goal- capture a magnified image of
saliva sample that exhibits the ferning pattern
Construction of opto-mechanical magnification
device
Image Recognition software architecture started
October 17, 2003
ECE Senior Design Project
13