e-diola scan 2009. outline e-diola scan motivation: – son – statistical analysis a-scan design...

62
e-DIOLA Scan 2009

Upload: preston-james

Post on 25-Dec-2015

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

e-DIOLA Scan2009

Page 2: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Outline e-DIOLA Scan• Motivation:

– SON– Statistical Analysis

• A-Scan• Design Approach• Features • Block Diagram:

– Higher level Block Diagram– Lower level Block Diagram

• Algorithm & Simulation• Devices selection• Hybrid Design Model:

– Hardware– Firmware– Software– Interfacing

• System Validation– Simulation-based Testing– Audio Signal-based Testing

• Limitations• Demo• Future Work

• WHY• WHAT• HOW• System Validation• Limitations• Demo• Future Work

Page 3: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Statement of need• Recent Studies show a remarkable prevalence of ophthalmic

diseases.

• Cataracts leading cause of blindness in the world

• Cataract surgery involves substitution of natural lens by an artificial (IOL)

• Lens power is a function of eye dimensions and curvature values.

• Accuracy level is crucial

• In order to motivate the local market & adapt to changes in the global industry, we will follow a progressive approach to reach our prospective goal:

Enhance A-scan biometry systems

Page 4: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

A-Scan Biometry Systems

Physicians Opinion

A-Scan Probe

1/10/2008 Graduation Project - Milestone I 4

Page 5: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Ophthalmic A-scan Uses US to measure the length (dimension) of the eye. Ophthalmologist uses these measurements to evaluate eyes prior to cataract surgery. provides a one-dimensional image of deflections of varying amplitude along a baseline

Height : intensity of the returning impulse Position: indicates time of receiving the echo

IOL : implanted lens – replaces existing crystalline lens since it is clouded over by a cataractDimensions:

Axial Length (AL)Anterior Chamber Depth (ACD)Length Thickness (LT)Vitreous Cavity Depth (VCD)

Techniques: Applanation/Contact ↔ Immersion

Page 6: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Design Approach

We propose an enhanced relatively-low-cost A-scan Biometry system which connects via USB cable to any Windows XP/Windows Vista laptop or desktop computer

Page 7: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Featuresadded

Automatic Diagnosis

best scan selection

optimization of A-Scan Gain & TGC

Adjustable Layer-specific velocity

misalignment & corneal compression check

Manual & automatic selection of IOL formula

Manual labeling

Adjustments for dense cataract & trauma

Manual TGC adjustment

Accurate measurements of AL, LT, VD,&VCD

IOL power calculation

Lens correction factorContinuous Display Freeze

Thresholding all IOL formulae

Automatic & Manual modes

Fixed and TGC

Ribbon Display

Compare IOL formula

3 modes

Avg. & Std

Accurate Peak detection

Page 8: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Block diagrams

• High level BD• Low level BDs

– Acquisition– Preprocessing– TGC

• How we calculated it (each interface & attenuation)• Function

Page 9: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Higher-Level Block Diagram

Page 10: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Lower-Level Block Diagram

Page 11: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Signal Acquisition Module:

Input: Signal from probeOutput: Digitized signal

Page 12: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Pre-processing Module:

• Input: Digitized Signal• Output: Amplified signal

Region Cornea Aqueous Lens Vitreous Retina-Sclera

Attenuation at 9MHz 0.234 0.091 1.82 0.091 0.364

Max Distance (mm) 0.8901098 4.6153846 5.9109893 22.12088 2.03077

Attenuation (dB) 0.208285 0.419999 10.75800 2.013000 0.739200

Page 13: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Classification Module

• Input: Amplified Signal

• Output: Thresholded spikesTime

Voltage

Threshold

Page 14: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Mode Selection

1. Auto-detection & Signal Validation • Input: Spikes from eye Interfaces• Output: identified peaks, while: • Valid Spikes are sent to Eye Measurement Module.• Abnormal Spikes are sent to Auto-diagnosis.• Invalid Spikes are sent to the Reset to rescan.

Page 15: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Mode Selection

B. Manual Mode & Gates:• Input: Spikes from eye Interfaces• Output: identified peaks

Page 16: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Eye Calculations Module

• Input: Time & Amplitude Arrays from Manual or Automatic modes

• Output: Eye Measurements (AL, VCD, LT, VCD)

Page 17: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

IOL Measurement Module

• Input: IOL Formula from Manual or Automatic modes

• Output: Calculated IOL Power

Page 18: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Display Module

• Patient Name• Date of Test• Eye Mode (phakic, Aphakic, pseudophakic)• Axial Length• ACD• VCD• Identified Interface-Peaks

Page 19: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Auto-diagnosis Module

• Input: Abnormal Spikes from Automatic Mode• Output:

Page 20: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram
Page 21: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Non-Axial Scanning

• Input: Spikes from Manual Mode • Output: Tumor Location

θ = cos-1 And the radius at which the tumor is located by:

R = L sin (θ)

Page 22: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Algorithm and Simulation

Page 23: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Algorithm and Simulation0 0.5 1 1.5 2 2.5

x 10-5

-50

0

50

Am

plit

ude

Returning Echo

0 0.5 1 1.5 2 2.5

x 10-5

-500

0

500

Am

plit

ude

Echo after fixed gain

0 0.5 1 1.5 2 2.5

x 10-5

-50

0

50

Am

plit

ude

Echo after TGC

0 0.5 1 1.5 2 2.5

x 10-5

-500

0

500

Am

plit

ude

Echo after fixed gain & TGC

0 0.5 1 1.5 2 2.5

x 10-5

0

200

400

Am

plit

ude

Enveloping

0 0.5 1 1.5 2 2.5

x 10-5

0

2000

4000

Am

plit

ude

No. of Samples

Extracted Spikes

Page 24: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Device Selection• MCU

ASIC DBB µP and µC DSP chipChip count 1 >1 1 1Flexibility None limited programmable programmableDesign time long mdeium short shortPower consumption low Medium-high medium Medium-highProcessing speed High high Low-medium Mediu-highReliability high Low-medium high HighDevelopment cost high medium low LowProduction cost low high Low-medium Low-mdeium

Criteria Required ProvidedEfficient data flow Real time data transmission YESComputational power Medium HighResolution Medium (8bits) High (up to 12 bits)Processing speed High HighMemory size Medium MediumSignal type Mixed signal (Analog and digital) Mixed signalAvailability of a full set of development tools and supports

C compiler, linker, logic analyzer, development assistance, real time debugging tool

All available with the kit

Page 25: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Device Selection• Java

– Java is simple– Java is object-oriented– Java is platform-independent– Java is distributed– Java is interpreted– Java is secure– Java is robust– Java is multithreaded

Page 26: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Devices Selection

• Supporting Tools– Keil + SiliconLabs– MatLaB– NetBeans– Orcad– Proteus– Edge

Page 27: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Data Collection

Page 28: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Device SelectionHybrid comparison table

Standalone system Microcontroller - PC based Software

Advantages1-No compatibility issue 1-Friendly UI 1- Friendly UI2-Independent on electrical problems 2-Independent processing 2-Faster processing3- No interfacing problems 3-Extended data storage 3-Extended data storage

4-More acquired knowledge(e.g.: power supply)

4-More compact 4-More features

5-More acceptable 5-More Features by software 5-More compact (probe + CD)

6-Needs little training 6-Portable(battery) 6-Inexpensive7-Inexpensive

Disadvantages

1-Difficult to implement 1-Dependent on PC or laptop 1-Specific requirements of processor

2-Limited data storage 2-Restricted by complex multitasking

2-Higher risk of computer freezing or limitation

3-Not friendly software 3-Compatibility issues 3-Compatibility issues4-Limited processing 4-Dependent on laptop power

supply4-Upgrading

5-Integrated printer (so more complex) 5-Specific requirements of laptop or PC

5-Dependent on laptop power supply

6-Viruses’ problem(no windows network )

Votes 28.3% 51.7% 20%

Page 29: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Hybrid model diagram

Page 30: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Hardware

Page 31: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Probe

Digital Oscilloscope

Page 32: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Pulser

Page 33: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

T/R SwitchVcn Vcp Pulser BPF Probe Simulation

Case 1 high low operating 0 Vpulse from the Pulser circuit

Case 2 low highZero input

signal

signal from the

probe

receives signal from tissue

Page 34: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Enveloping

Returning Echo

Time Envelope-Detector Response to a realistic A-Scan Pulse

Time

Voltage

Page 35: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Bandpass Filter (anti-aliasing)

• Band-lited signal undersampling• Bessel Filter:

– Sharper cutoff frequencies.– Removing ripples in the pass band.– Eliminating overshooting and ringing problems

Page 36: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Badpass Filter

Frequency (MHz)

OutputOutput Amplitude

(V)

25 2 V

4.38 MHz 0.5V

Page 37: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Power Supply

Required Obtained Required Obtained Required Obtained

25 V 15 V

3.3 V

- 15 V 5 V

Page 38: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Overall schematic from ORCAD

• Hyperlinks to each part’s proteus simulation• Bandpass:

– Bandlimited signal not nyquist– Why Bessel– Illustration image – Simulation only 2 pic (4. MHz and 25 MHz)

• Power Supply output voltage– 25,15,-15,5,3.2 V

Page 39: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Firmware Flowchart

Page 40: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Firmware performance analysis

• Blue bars picture• Last 2 rows of performance analysis table• Memory distribution part

Page 41: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Firmware performance analysis

Page 42: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Firmware performance analysisCode Segment Total # of

Instructions# of Calls msec Percentage per Scan

Time

Initializations 64 1 0.087 0.2%

Trigger 8 1 -- ~0%

ADC Interrupt Service Routine 51 260 0.916 4.0%

UART Interrupt Service Routine 128 -- -- --

UART Transmission 755 1 0.416 1.8%

Amplification (FIXED) 78 1 2.311 10.1%

Amplification (TGC) 385 1 12.570 54.7%

Peak Detection 1037 1 3.784 16.4%

Thresholding 369 1 0. 267 1.2%

Check for normality 2602 1 0. 129 1.2%

Main 591 1 0. 170 1.5%

Mathematical Calculations 307 -- -- --

Dynamic Allocation 320 70 1.451 6.7%

Total Time/ scan 6694 -- 26.70 100%

Total Time/ 10 scans -- -- 251.76 --

Page 43: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Firmware performance analysis

Memory Distribution

• • Code Space: 14138 Bytes• RAM space• Internal: 65 Bytes• External: 3509 Bytes

Page 44: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Java Flow chart

Page 45: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Interfacing High level protocol• Java-to-MCU packet image

0xAA

0x00

Ltype DC M/A Type

0xAA

0x01

a

b

c

d

0xAA

0x02

RST STP F/C

Initial Data TGC Control Word

Page 46: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Interfacing High level protocol• MCU-to-Java packet images not kalam

HEADER

# of SPIKES

STATUS

DATA

0xCC

STATUS

Data packet Status Packet

Page 47: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Validation

Acquisition ADC MCU Laptop

Simulation-basedSample-based

Overall Testing

Page 48: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Sample of initial testing of FIrmware

Normal

Page 49: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Sample of initial testing of FIrmware

Aphakic no lens

Page 50: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Sample of initial testing of FIrmware

Mild Asteroid

Page 51: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Sample of initial testing of software by simultion

Page 52: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Sample of initial testing of software by simultion

Coat’s disease

Page 53: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Sample of initial testing of software by simultion

Page 54: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Testing by audio signal

0 50 100 150 200 2500

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Am

plitu

de

No. of Samples

Analog Audio Signal - Normal Scan

Page 55: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Demo goes here =)

Page 56: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

LimitationsLimitation Reason

unable to acquire a real ultrasound echo signal

to hardware deficiencies

unable to detect overlapping envelopes that are not separated by at least 1 sample (0.29usec)

limited resolution

perform the designed corneal compression test

limited resolution

the angle algorithm was not implemented as Java code and stayed as pseudo code due to.

time restriction

automatic labeling: the system is unable to transfer to the manual labeling mode in case of more spikes in the retina region.

for phantom materials shortage of materials

Wireless probe design and difficulty to purchase high level electronic components small enough to be on a probe PCB

Page 57: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Future work -Wireless

Page 58: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Future work -Phantom

• Interpretation Eye Interface Velocity (m/s) Density (kg/m3) Acoustic impedance

(MRayl)Attenuation Coefficient

at 9 MHZ (dB/mm)Equivalent Material

Cornea 1620 1062+5 34 0.234 Donated human cornea

Aqueous 1500 1040 1.56 0.091 Saltwater

Lens 1620 or 1641 1000-1050 1.67125 1.82 Lucite

Cow’s eye: 1140+33

Vitreous 1520 or 1532 1005.3 1.534 0.091 Water

Retina 1540 0.364 biopolymer

hydrogels

Sclera 1613 -1622 1000 1.6175 0.7826 ---

Page 59: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Future work -Phantom

• Problem Definition• System Background• Function of Parameters• Model

Page 60: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Project CostItem Cost (L.E)

A-Scan Probe 10,000

Microcontroller Kit 233

PCB 660

USB Cable 12

Notebook 1,500

FTDI chip (USB-Serial IC) 30

Components 70

Total 12,505

Page 61: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Timeplan – Gantt Chart

Page 62: E-DIOLA Scan 2009. Outline e-DIOLA Scan Motivation: – SON – Statistical Analysis A-Scan Design Approach Features Block Diagram: – Higher level Block Diagram

Thank you