• 沒有找到結果。

MATLAB 影像處理及擴展應用研討會 醫學影像、機器學習、物聯網(IoT)

N/A
N/A
Protected

Academic year: 2021

Share "MATLAB 影像處理及擴展應用研討會 醫學影像、機器學習、物聯網(IoT)"

Copied!
45
0
0

加載中.... (立即查看全文)

全文

(1)

MATLAB 影像處理及擴展應用研討會 醫學影像、機器學習、物聯網(IoT)

(2)

Agenda

Time Topics

Welcome

13:30 - 14:30 MATLAB 於影像處理介紹

14:30 - 15:20 應用機器學習技法於影像處理領域

15:20 - 15:30 Coffee Break

15:30 - 16:30 MATLAB與物聯網: 連結至穿戴式裝置硬體之訊號處理

Q&A and Wrap UP

(3)

Applications: Image and Video Processing

▪ Medical imaging

▪ Surveillance

▪ Robotics

▪ Automotive safety

▪ Consumer electronics

▪ Geospatial computing

▪ Machine vision

▪ and more…

(4)

Different Aspects of Image Processing

▪ Importing, visualizing and investigating

▪ Enhancing images

▪ Aligning multiple images

▪ Segmenting images

▪ Detecting image features

▪ Classifying images

(5)

Technical Computing Workflow

Share Explore & Discover

Access

Image acquisition Image data in files

Reporting and Documentation

Outputs for Design

Deployment Visualization

tools

Application Development

Data/Image Analysis and

Modeling

Image Processing

(6)

Consider this image from the Centers for Disease Control:

Our goal:

To develop an algorithm to detect and quantify infection.

How many cells are in the image, and how many are infected?

(7)

Quantifying infection across multiple images…

…Despite widely varying image quality

(8)

Identify key challenges, consider strategies:

Challenges:

Differences in color

Differences in illumination

Contiguity of cells

Low resolution/poor quality

Strategies:

Using apps to explore images

Pre-processing

Watershed segmentation

Morphological segmentation

DEMO

(9)

In this session…

…we quantified rates of infection in heterogeneous images

(10)

What if we wanted to classify the type of infection,

differentiating several species of parasites?

(11)

Agenda

Time Topics

Welcome

13:30 - 14:30 MATLAB 於影像處理介紹

14:30 - 15:20 應用機器學習技法於影像處理領域

15:20 - 15:30 Coffee Break

15:30 - 16:30 MATLAB與物聯網: 連結至穿戴式裝置硬體之訊號處理

Q&A and Wrap UP

(12)

Machine Learning

A machine learning algorithm takes examples of inputs and outputs associated with a task and produces a program that can automatically differentiate them.

If brightness > 0.5 then ‘hat’

If edge_density < 4 and major_axis > 5

then “boat”

‘boats’

‘mugs’

‘hats’

Hand Written Program

Machine Learning

𝑚𝑜𝑑𝑒𝑙 = 𝑓𝑖𝑡𝑐svm(image_features, label)

‘boats’

‘mugs’

‘hats’

Computer Vision

(13)

Machine Learning Workflow Using Images

Training Data Feature Extraction, Encoding

Machine Learning

Classifier ‘babesiosis’

Input Image Feature Extraction,

Encoding Classification

‘babesiosis’ ‘plasmodium’ ‘chagas’

(14)

Bag of Words

Performimage processing, analysis, and algorithm development Image Processing Toolbox™ provides a comprehensive set of reference- standard algorithms, functions, and apps for image processing, analysis, visualization, and algorithm development. You can perform

image analysis,imagesegmentation,image enhancement, noise

reduction, geometric transformations, andimageregistration. Many toolbox functions support multicore processors, GPUs, and C-code generation.

Image Processing Toolbox supports a diverse set of

image

types, including high dynamic range, gigapixel resolution, embedded ICC profile, and tomographic. Visualization functions and apps let you exploreimages and videos, examine a region ofpixels, adjust color and contrast, create contours or histograms, and manipulate regions of interest (ROIs). The toolbox supports workflows for

processing, displaying, and navigating large images.

Image Processing Toolbox

Bag: image processing, analysis , image, pixels, enhancement

Class / Label

Training Data

Vocabulary / Bag of Words

(15)

Bag of “Visual Words” ( features)

‘babesiosis

Class / Label

Training Data

Vocabulary / Bag of Features

(16)

What is a Classifier ?

Training Data

Features Classifier

Classification ‘babesiosis’

‘plasmodium’

‘chagas’

Class Membership

Machine Learning

Encoded images

(17)

So let’s give it a try…

(18)

Using Machine Learning for Computer Vision

▪ Image Processing Toolbox

• Provides 100s of validated functions

• Indispensable for image processing applications

▪ Computer Vision System Toolbox

• Provides tools to generate image features for training classifiers

• See doc for full list of provided image features

▪ Statistics and Machine Learning Toolbox

• Provides learning algorithms to train classifiers

(19)

Agenda

Time Topics

Welcome

13:30 - 14:30 MATLAB 於影像處理介紹

14:30 - 15:20 應用機器學習技法於影像處理領域

15:20 - 15:30 Coffee Break

15:30 - 16:30 MATLAB與物聯網: 連結至穿戴式裝置硬體之訊號處理

Q&A and Wrap UP

(20)

The Challenge of IoT

?

Devices Insight

(21)

What is the Internet of Things?

Smart Connected

Devices Exploratory Analysis

Data Aggregator

(Server or Cloud) Deploy analytics to cloud

Deploy algorithms to smart devices

Business Systems Integration

(22)

Look at the Pieces: Devices

▪ Sensors and Human Interaction

▪ May have strict energy budget

▪ Required embedded programming skills

▪ Bandwidth is expensive in power and dollars

▪ Goal for device is to do as much data reduction locally as possible

Smart, Connected Devices

Communication

Embedded Sensor Analytics

Data Reduction

(23)

Data Aggregator

Storage

On-Line analytics

Visualization & reporting

Look at the Pieces: Data Collection & Online Analytics

▪ Server or Cloud-based

▪ Log and analyze information across collection of devices

▪ Real-time information for situational awareness

▪ Requires cloud/web development skills and operations support

▪ Data Intake must be scalable and reliable

▪ True “Big Data”

(24)

Look at the Pieces: Exploratory Analysis

Exploratory Analysis

Historical analytics

Algorithm development

▪ Desktop-based

▪ Access historical device information

▪ Analyze past performance for predictive modeling and deep insight

▪ Requires data analysis / data science skills

▪ Heavy use of statistics and signal processing

techniques

▪ Deploy complex algorithms to both cloud and edge devices

(25)

IoT – Design challenges

• Embedded development is challenging

• Increasing algorithmic complexity

• Need connectivity to cloud resources

• Streaming data management and storage

• Online and real-time analytics

• Ability to visualize results and make decisions

• Advanced analysis algorithms

Business Systems

• Integrating

various software components

• Acquiring data from external sources

(26)

MathWorks Capabilities for IoT

Leveraging MATLAB Analytics and Model-Based Design

(27)

Overview

Smart Connected

Devices Exploratory Analysis

Data Aggregator

(Server or Cloud) Deploy analytics to cloud

Deploy algorithms to smart devices

Business Systems Integration

• Data storage

• Online analytics

• Visualization and reporting

• Embedded algorithms for sensing, data reduction, and control

• Models and simulation of system

• Historical analytics

• Algorithm development Monitor and control nodes/devices

Publish data to Cloud

Model Device Communication

(28)

Physical Component Modeling

• Electronic

• Mechanical

• Hydraulic, etc.

Communications Protocol Modeling

• LTE, Zigbee, 802.11, etc.

Automatic Code Generation

• Programmable chips (MCU, DSP, etc.)

• FPGAs

Verification/Validation and Process Support

• Model- and Code proving

• Lifecycle management tools

MATLAB & Simulink Capabilities for IoT

Deployment

• .NET, COM components

• Java components

• Multicore and GPU systems

• Spreadsheet plug-ins

• Database plug-ins

• Hadoop

• Cloud services (AWS)

• ThingSpeak Apps

• Smartphone/tablet integration

Analysis, Modeling, Design

• Data visualization

• Statistics

• Regression

• Machine learning (supervised &unsupervised)

• Neural networks

• Optimization (gradient-based & stochastic)

• Symbolic computing

• Image analysis

• Financial analysis

• Geospatial computing

• Object recognition

• Speech recognition Data Clean-up

• Filtering

• Image processing

• Signal processing

• Telemetry

• RF sampling

Real-Time Sources

• Sensors

• GPS

• Instrumentation

• Cameras

• Communication systems

• Machines:

• embedded systems

• fieldbus

• Financial datafeeds File I/O

• Text

• Spreadsheet

• XML

• CDF/HDF

• Image

• Audio

• Video

• Geospatial

• Web content

Repositories

• Databases (SQL)

• NoSQL

• Hadoop

Communication Protocols

• CAN

• DDS

• OPC

• XCP

(29)

Business and Transactional

Data Engineering,

Scientific, and Field Data

Analytics Design and Development

Deploy and integrate in Target to

embedded

MATLAB and Simulink are well positioned for:

A. Analytics that increasingly require both business and engineering data

B. Developing embedded systems which have increasing analytic content

C. Deploying the increasing number of analytic-rich applications that run on both traditional IT and embedded platforms

D. Enabling domain experts to do data science

Why MATLAB?

C D

A

B

(30)

Customer Case Study

(31)

Customer Study: iSonea

Cloud and Embedded Analytics

Opportunity

• Develop an acoustic respiratory monitoring system for wheeze detection and asthma management

Analytics in cloud and embedded

• Captures 30 seconds of windpipe sound and processes the data locally to clean up and reduce ambient noise

• Invokes spectral processing and pattern-detection analytics for wheeze detection on iSonea server in the cloud

• Provides feedback to the patient on their smartphone Benefit

• Eliminates error-prone self-reporting and visits to the doctor

(32)

Sensor Analytics for IoT

(33)

Signal analysis for classification Application examples

▪ Mobile sensing

▪ Structural health monitoring (SHM)

▪ Fault and event detection

▪ Automated trading

▪ Radar post-processing

▪ Advanced surveillance

▪ ...

(34)

Case Study: Human Activity Analysis and Classification

Classificatio n

Feature Extraction

Dataset courtesy of:

Davide Anguita, Alessandro Ghio, Luca Oneto, Xavier Parra and Jorge L. Reyes-Ortiz.

Human Activity Recognition on Smartphones using a Multiclass Hardware-Friendly Support Vector Machine.

International Workshop of Ambient Assisted Living (IWAAL 2012). Vitoria-Gasteiz, Spain. Dec 2012 http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones

(35)

Machine Learning Signal

Processing

Sensor Data Analytics Workflow – the bigger picture

• Domain knowledge

• Open-ended problem

• Long discovery cycles

• Built-in algorithms

(36)

Machine Learning Connect and

Acquire

Signal Processing

Sensor Data Analytics Workflow – the bigger picture

• Different tools and environments

• Disconnect between hardware and analysis

• Inefficiencies in data sharing

• MATLAB Connects to DAQ interfaces and sensors directly. E.g.

Android Sensor Support

iPhone and iPad Sensor Support

(37)

Machine Learning Connect and

Acquire

Signal Processing

Embedded Implementation

Sensor Data Analytics Workflow – the bigger picture

• Signal analysis vs. on-line DSP

• From Machine Learning theory to pre-trained, low-footprint classifiers

• MATLAB vs. C/C++

• Streaming algorithms, data sources and

visualization for System modelling and simulation

(38)

Leverage Built-in Algorithms, Apps, and Technologies

▪ Signal Processing Toolbox™

Built-in algorithms and Apps to process and

analyse signals cheby2filter

rms

pwelch

periodogra m

xcov

findpeaks

(39)

Leverage Built-in Algorithms, Apps, and Technologies

▪ Signal Processing Toolbox™

▪ Parallel Computing Toolbox™

Accelerate computationally and data- intensive problems using multicore

processors, GPUs and computer clusters

parfor

(40)

Leverage Built-in Algorithms, Apps, and Technologies

▪ Signal Processing Toolbox™

▪ Parallel Computing Toolbox™

▪ Statistics and Machine Learning Toolbox™

Functions and apps to describe, analyze, and model data.

Regression, clustering and classification algorithms to draw inferences from data and build predictive models

>> classificationLearner

(41)

Leverage Built-in Algorithms, Apps and Technologies

▪ Signal Processing Toolbox™

▪ Parallel Computing Toolbox™

▪ Statistics and Machine Learning Toolbox™

▪ Neural Network Toolbox™

Functions and apps to design, train, visualize, and simulate neural

networks

>> nprtool

patternnet

(42)

Leverage Built-in Algorithms, Apps and Technologies

▪ Signal Processing Toolbox™

▪ Parallel Computing Toolbox™

▪ Statistics Toolbox™

▪ Neural Network Toolbox™

• DSP System Toolbox™

Streaming algorithms, data sources and visualization for system

modelling and simulation

BiquadFilter

MatFileReader

Autocorrelator

SpectrumEstimator

TimeScope

(43)

Leverage Built-in Algorithms, Apps and Technologies

▪ Signal Processing Toolbox™

▪ Parallel Computing Toolbox™

▪ Statistics Toolbox™

▪ Neural Network Toolbox™

▪ DSP System Toolbox™

▪ MATLAB Coder™

>> codegen

(44)

Signal Processing and Machine Learning Techniques for Sensor Data Analytics

Summary

▪ Extensive set of de-facto standard functions for signal processing and machine learning

▪ Environment accelerates insight and

automation: visualisation, apps, language, documentation

▪ Path to embedded products, from on-line simulation to automatic code generation

(45)

Any Questions?

參考文獻

相關文件

 Retrieval performance of different texture features according to the number of relevant images retrieved at various scopes using Corel Photo galleries. # of top

• It is a plus if you have background knowledge on computer vision, image processing and computer graphics.. • It is a plus if you have access to digital cameras

• It is a plus if you have background knowledge on computer vision, image processing and computer graphics.. • It is a plus if you have access to digital cameras

• It is a plus if you have background knowledge on computer vision, image processing and computer graphics.. • It is a plus if you have access to digital cameras

“A feature re-weighting approach for relevance feedback in image retrieval”, In IEEE International Conference on Image Processing (ICIP’02), Rochester, New York,

Mehrotra, “Content-based image retrieval with relevance feedback in MARS,” In Proceedings of IEEE International Conference on Image Processing ’97. Chakrabarti, “Query

Umezaki,B., Tamaki and Takahashi,S., &#34;Automatic Stress Analysis of Photoelastic Experiment by Use of Image Processing&#34;, Experimental Techniques, Vol.30 , P22-27,

Ahmad, A Variable Block Size Motion Estimation Algorithm for Real-time H.264 Video Encoding,  Signal Processing: Image Communication,