中惠科技有限公司 中惠科技有限公司
  • Image Analysis

    Image-Pro Platform

    • Image-Pro
    • Base Features
    • 2D Capture
    • 2D Measurements
    • 2D Automated Analysis
    • 3D Visualization Analysis
    • AutoQuant Deconvolution

    Image Analysis Solution

    • MA-Pro
      • Grain Size
      • Sphericity
      • Cast Iron
    • IMC Coverage
    • Cleanliness
    • CCL Resin Flow
    • Fiber Cross-Section

    Product Integration

    • Wafer Mapping & Inspection
    • Image Scanning System
    • Stage Conotrol System
    • Extend Depth Of Field
    • Defect Inspection
    • Image Measurement
    • Hardness Testing

    Packages for Image Analysis

    Image-Pro® AI
    Life Science

    Image-Pro® AI
    Materials Science

     

    2D Measure Module
    AI Deep Learning

    2D Measure Module
    Analysis Protocols

    Helpful

    • System Requirements
    • Supported File Formats
    • Version Comparison
  • Optoelectronics

    TOPCON Products

    • 2D Spectroradiometer (SR-5100 Series)
      • SR-5100 2D Spectroradiometer
      • SR-5000 2D Spectroradiometer
    • Spectroradiometer (SR Series)
      • SR-5A Spectroradiometer
      • SR-5AS Spectroradiometer
      • SR-5S Spectroradiometer
      • SR-5 Spectroradiometer
      • SR-UL2 Spectroradiometer
      • SR-NIR Near Infrared Spectroradiometer
    • Luminance Colorimeter (BM Series)
      • BM-7AC Luminance Colorimeter
      • BM-5AC Luminance Colorimeter
      • BM-9A Luminance Meter
    • 2D Luminance Colorimeter (UA Series)
      • UA-200A 2D Luminance Colorimeter
      • UA-10A Uniformity Analyzer
      • UA-20C Luminance & Chromaticity Uniformity Analyzer
      • UA-20Y Luminance Uniformity Analyzer
    • Luminance Colorimeter (RD Series)
      • RD-80SA Luminance Colorimeter
    • Illuminance Meter (IM Series)
      • IM-2D Illuminance Meter
      • IM-600/IM-600M Digital Illuminance Meter
    • Ultraviolet Meter (UVR Series)
      • UVR-T2 Industrial UV Checker
      • UVR-300 UV Radiometer
    • Topcon Calibration Service

    APACER Products

    • Spectroradiometer (Hand-held Type)
      • AL100 / AL110
      • AL250
    • Spectral Irradiance Meter (Hand-held Type)
      • Ai111
      • Ai30S
      • Ai101
      • Ai250
    • Automation Platform for Sprctorradiometer
  • Automation

    Prior Microscope Automation

    • Motorized Stages For Upright Microscopes
      • ProScan H101A Motorized Stages
      • ProScan H101F Motorized Stages
      • ProScan H105 Motorized 6" Travel Stage
      • ProScan H105F Motorized Flat Top 6" Travel Stage
      • ProScan H116 Motorized 8" Travel Stage
      • ProScan H116SPN Motorized 8" Travel Stage with Shuttle Chuck
      • ProScan HWL6AL12 Motorized 8" Travel Stage with Shuttle Chuck
      • ProScan H112 Motorized 12" Travel Stage
      • ProScan H138A Motorized Stage With 8 Slide Capacity
      • ProScan HT1111LC Hardness Testing Motorized Industrial Stage
      • OptiScan ES111 Motorized Stages
    • Motorized Stages For Inverted Microscopes
      • ProScan H117 Motorized Stage
      • ProScan HLD117 Linear Motor Ultra-precision Stage
      • OptiScan ES107 Economical Motorized Stage
    • Physiology Platforms
      •    ── XYZ Deck Physiology Platforms ──   
      • H189 High Precision XYZ Deck
      • HZ106KT1 High Precision XYZ Deck
      • HZ106KT1E High Precision XYZ Deck
      • ProScan HT11 Heavy Duty Motorized Stage
      • ZDP50 Microscope Translation Stage
      •    ── Z Deck Electrophysiology Platform ──   
      • Manual Z Deck Manual XY Stage
      • Motorized Z Deck XY Stepper Motor Stage
      • Encoded Motorized Z Deck
    • Robotic Sample Loaders
      • SL160 Robotic Slide Loader for Microscopy
      • PLW20 Robotic Well Plate Loader System
    • OpenStand® platform
      • OpenStand-V Inverted Microscopy Platform
      • OpenStand-L Large Format Microscopy Platform
      • OpenStand-U Upright Microscopy Platform
      • OpenStand-M Small Format Microscopy Platform

    Prior Imaging Components

    • Focus Mechanisms
      •    ── Piezo-driven Nanoscan ──    
      • NanoScan OP400 Piezo Objective Scanner
      • NanoScan OP800 Piezo Objective Scanner
      • NanoScan SP Piezo Z-Axis Stage
      • WP120A Single Axis Piezo Stage (12" Wafer)
      •     ── Focus Mechanisms ──    
      • FB201 Manual Focusing Block - 29mm
      • FB203 Motorized Focusing Mount - 38mm
      • FB204 / FB205 Stage Focusing Mount - 38mm
      • FB206 Stage Focusing Mount - 38mm
      • FB210 Motorized Focusing Mount - 50mm
      • FB212 Stage Focusing Mount - 50mm
      • PS3H122R Bolt-On Motorized Focus Drive
      • H275LMT Extended Travel Motorized Focus Tower
    • Laser Autofocus
      • PureFocus™850 Laser Autofocus System
    • Controllers & Joysticks
      • ProScan III Universal Multi-axis Controller
      • OptiScan III Affordable 3-Axis Controller
      • ES10ZE Single Axis Focus Controller
      • CS200 Series Joysticks
    • Filter Wheels, Turrets & Shutters
      • HF108 High-Speed 8 Position Filter Wheel
      • HF110 High-Speed 10 Position Filter Wheel
      • HF108IX3 8 Position Filter Wheel for IX3
      • HF6NTK 6 Position Motorized Turret Upgrade Kit for Nikon Ti2
      • HF202HT 25mm High Speed Shutters
    • Light Sources
      • L200 Fluorescence Microscope Illumination

    Queensgate Nanopositioning Devices

    • Nanopositioning Piezo Stages
      • NPS-X-15A/NPS-X-15B Low Profile Fast 20µm Stage
      • NPS-X-28C Titanium Ultra Fast 28µm Stage
      • NPS-Z-15A Ultra Low Drift 15µm Stage
      • SP Mini-500 Compact Sample Positioner
      • NPS-XY-100A
      • NPS-XY-100D
      • NPS-TG-7A Fast Tip Tilt
      • NanoScan OP400
      • NanoScan OP800
      • NanoScan SP Z Series
    • Precision Actuators & Translators
      • DPT-E Closed Loop Piezo Actuators
      • MTP Open Loop Piezo Actuators
      • NPS-Z-15L Ultra High Load Closed Loop 20μm Actuator
      • NPS-Z-500B Long Range 500μm Amplified Actuator
    • Nanosensors
      • NX Series Capacitive Sensors
      • NC Series Capacitive Sensors
    • Nanopositioning Control Electronics
      • NPC-D-5200 Digital Piezo Closed Loop Controller
      • NPC-D-6000 Series Digital Piezo Closed Loop Controller
    • Vacuum Compatible Products
      • DPT-E Closed Loop Piezo Actuators
      • NX Series Capacitive Sensors
      • NC Series Capacitive Sensors
      • NPS-XY-100A
      • NPS-XY-100D
      • NPS-Z-500B Long Range 500μm Amplified Actuator
      • WP120A Wafer Positioner / Scanner
    • Specialist Stages and OEM Solutions
      • NPS-XYP-250Q
      • NPS-Z-90Q
      • NPS2100-20/NPS2101
  • Microscopic

    Microscope Camera

    • Retiga CCD Family
      • MicroPublisher 6™ CCD Camera
      • Retiga R6 CCD camera
      • Retiga ELECTRO Cooled CCD camera
      • Retiga LUMO CCD camera
    • INFINITY Series Microscopy Camera
      • INFINITY 5 CMOS Microscopy Camera
      • INFINITY 8 CMOS Microscopy Camera
    • Photometrics Scientific Cameras
      • Kinetix sCMOS cameras
      • Prime 95B™ Back-illuminated sCMOS camera
      • Prime BSI™ Back-illuminated sCMOS camera
      • Prime BSI Express sCMOS camera
      • Iris Family sCMOS cameras
      • Retiga E Family Cooled & Low-Noise CMOS camera
      • Moment High Speed CMOS camera
    • MI-Cam CMOS Camera
      • MI-Cam 5 Pro 顯微鏡數位相機
      • MI-Cam 6 顯微鏡數位相機
      • MI-Cam 20 顯微鏡數位相機

    Optical Microscope

    • Evident Microscope
    • Nikon Microscope
    • Microscope Cleaning and Maintenance

    Micrometer/Reticles/Scales

    • Microscope Eyepiece Reticles
    • Stage Micrometers & Calibration
    • TEM Grids (Specimen Support Grids)
    • Precision Apertures
    • Optical Resolution Charts
    • Counting Chambers
    • Inspection Instruments & Magnified Scales
    • Film Cover Slips and Film Reticles
  • Contact
    • Contact Us

Select your language

  • 繁體中文
  • 简体中文
  1. You are here:  
  2. 知識庫
  3. 顯微鏡影像的 CNNs:深度解析 AI 類神經網路在影像分析中的應用

產品服務專線:04-27080265 / 台中
02-89924292 / 台北

Image Analysis AI Solution

顯微鏡影像的 CNNs:深度解析 AI 類神經網路在影像分析中的應用

CNNs for Microscopy: Demystifying AI Neural Networks for Image Analysis

 

| Image-Pro 影像分析軟體 | MA-Pro 金相分析軟體 | 金相材料分析應用介紹 | 金相分析相關國際標準規範 |

| 圖像分析的五大困境 | 人工智慧顯微鏡影像分析初學者指南 | 深度解析 AI 類神經網路在影像分析中的應用 |

 

如果你有關注人工智慧圖像分析(AI-Powered Image Analysis)的熱門話題,那麼「CNN」這個詞彙你大概已經聽過好幾百遍了,可能比網路上貓咪的照片還多。簡單來說,卷積神經網路(Convolutional Neural Network, CNN)就是一種特別的類神經網路(Neural Network)。它在傳統的「全連接層」(你可以把它想成是做最終決策的大腦決策中心) 前面,加了一個聰明又擅長處理圖像的前端(Front End)。這個前端(Front End)能讓模型(Model)在試圖辨識圖片內容之前,先一步將形狀(Shape)、紋理(Texture)和邊緣(Edge)這些細節給抽離出來。正是因為有了這個前端特徵提取器(Front-End Feature Extractor)和後端分類器(Back-End Classifier)的巧妙結合,讓 CNN 成為現代顯微鏡分析中不可或缺的工具,這也是它為什麼值得我們好好去了解的原因。

 

為何圖像對演算法來說是項挑戰?

Why Images Challenge Algorithms?

乍看之下,影像分割(Image Segmentation)可能看似簡單:識別圖片中的形狀並畫出邊界。但真實世界的顯微鏡圖像通常是單通道灰階(Single-Channel Gray Scale),充滿了模糊的邊緣、重疊的細胞或纖細的纖維。單一的全局閾值(Single Global Threshold)無法應對這種混亂,因此基於規則的演算法(Rule-Based Algorithms)會因此失效。

如果你曾親身經歷過這些痛點,可以參考我們關於《圖像分析的種種困境》的文章,深入解析並探討它們發生的原因,以及說明現代 AI 工具如何提供幫助。CNNs 透過從帶有標籤的範例中學習,而非依賴固定規則,從而避開了這種僵化性。

Image Analysis Challenges

圖 1. 範例影像顯示了常見的挑戰,例如:(a) 難以從背景中分離的複雜物件 (b) 缺乏色彩線索的單通道灰階輸入 (c) 具有相似大小、形狀和強度的多重結構 (d) 目標物件在大小和形態上的變異性 (e) 對比度低或邊緣不明顯的物件 (f) 具有複雜、相互連接形狀的接觸物件

 

 

每個 CNN 內部的兩階段流程

The Two-Stage Pipeline Inside Every CNN

 

階段
Stage
作用
What Happens
主要構成
Rough Ingredients
前端:特徵提取器
Front-End: Feature Extractor
將原始像素轉換為精簡且具資訊量的特徵圖 卷積(Convolution) → ReLU → 池化(Pooling)(重複執行)
後端:分類器頭
Back-End: Classifier Head
將這些特徵圖轉換為最終的標籤 一或兩個全連接(密集)層

表 1. 卷積神經網路(Convolutional Neural Network,CNN)兩個核心階段的概覽,總結了它們的角色和運作。

CNN Pipeline

圖 2. 一個從左到右的示意圖,說明了影像通過卷積神經網路(Convolutional Neural Network,CNN)的完整旅程。

 

特徵提取:速成課程

卷積層(Convolutional Layers)會將可學習的濾波器(Filter)(想像成 3x3 或 5x5 的模板)在圖像的小區塊上滑動。每個濾波器(Filter)一開始都是隨機數字,但在訓練過程中,它們會逐漸變成邊緣、角落或紋理的檢測器。由於相同的濾波器(Filter)會在圖像各處滑動,因此網路能共享權重,與將每個像素連接到每個神經元相比,這樣能大幅減少參數。

每個卷積層之後通常會接著激活函數(Activation Function)——通常是 ReLU(Rectified Linear Unit,修正線性單元)——會緊跟在每個卷積層後面。ReLU 的作用很簡單,它只會保留正數值,並將負數值歸零。這能為模型增加一點必要的非線性,這樣堆疊起來的層次才能夠模擬曲線、斑點,或是介於兩者之間的任何彎曲形狀。

池化層(Pooling Layers)(最大池化或平均池化)會縮小特徵圖。想像一下,它會保留每個 2x2 區塊中最亮的像素,這能減少記憶體使用量、加快運算速度,並賦予模型一定程度的平移容忍度(Translation Tolerance)——如果您的細胞核移動了幾個像素,池化後的訊號幾乎不會改變。

層層遞進,網路從「嘿,那是一條邊緣」進化到「那個群體看起來很像細胞核」。早期層檢測簡單的形狀;更深層的則能捕捉完整的細胞。

這為什麼重要?特徵提取(Feature Extraction)讓分類器(Classifier)不必再盯著 262,144 個原始像素值(對於 512x512 的圖像),而是將一組整齊的、可能只有幾千個高階描述符(High-Level Descriptor)交給它,這些描述符(Descriptor)會大聲宣告「這裡有細胞核,那裡是背景」。

Feature Extraction

圖 3. CNN 的層級架構(Hierarchy)。一輛黃色老爺車進入網路,早期層(Early Layer)會偵測邊緣(Edges)和顏色區塊(Color Blobs),中間層(Mid-Layers)將它們組合成曲線(Curves)和圖案(Motifs),而深層(Deep Layers)則會辨識出輪子和其他零件,最後將這些資訊傳送給分類器(Classifier),輸出「汽車」的標籤。範例取自 Yann LeCun, 2015。

 

Max Pooling and Average Pooling Animation

圖 4. 最大池化(Max Pooling)與平均池化(Average Pooling)的比較。當使用一個 2 × 2、步幅為 2 的視窗時,最大池化(Max Pooling)會保留每個區塊中的最大值(7);平均池化(Average Pooling)則會輸出每個區塊的平均值(3)。

 

分類(Classification) (又名:全連接的最終章)

當影像被精煉成整齊的向量(Vector)後,就輪到全連接層(Dense Layers)接手了。

  • 扁平化(Flattening)會將堆疊的三維特徵圖(Feature Maps)展開成一維向量(Vector),可以想像一下類似把睡袋攤開的這個過程。
  • 全連接層(Dense Layers,又稱Fully Connected Layers)會將每個輸入值連接到每個神經元(Neuron),每個連接都帶有可訓練的權重(Trainable Weight)和一個偏差值(Bias)。
  • 激活與輸出(Activation & Output),另一個 ReLU 激活函數會維持非線性流動(Non-Linearity Flowing),然後將原始分數轉換為機率。

 

全連接層(Dense Layers)擅長將不同的線索——紋理(Texture)、形狀(Shape)、上下文(Context,或譯為前後關系)——融合成一個最終判斷(Verdict)。那代價是什麼呢?它們需要大量的參數,所以我們讓它們保持精簡,並將它們置於輕量且高效的特徵提取器(Feature Extractor)之後。

想要再深入學習電腦視覺(Computer Vision)中的卷積神經網路(Convolutional Neural Networks, CNNs)的知識嗎?史丹佛大學 CS231n 課程提供了嚴謹、講座形式的深度解析。

 


Fully Connected (Dense) Layers

圖 5. 一張 28 × 28 像素的手寫數字小圖片被展開成一條 784 像素的線,這條線會流經三個數位「神經元(Neurons)」的隱藏層(Hidden Layers),最終輸出 10 個數值,用於評估這張圖片是數字 0-9 的機率分別有多高。

 

 

CNN 訓練基礎:逐步指南

CNN Training Basics: A Step-by-Step Guide

 

  1. 標記(Label):由人類(也就是您)在範例圖像上繪製輪廓(Outlines)或遮罩(Mask)。
  2. 前向傳播(Forward Pass:網路進行預測。
  3. 損失函數(Loss Function):一個衡量錯誤的指標,會計算預測的錯誤程度,例如:交叉熵(Cross-Entropy)或骰子損失(Dice Loss)。
  4. 反向傳播(Back-Propagation):梯度向後傳遞,微調權重以減少損失(Loss)。
  5. 重複多個訓練週期(Epochs):每個循環都會優化濾波器(Filters),邊緣變得更清晰,細胞核偵測器也逐漸成形,直到性能趨於穩定。

網路會研究少量、隨機打亂的批次圖像,這樣它就不會以固定的順序學習。一個學習率撥盤控制著它的步長,如果太大使它錯過答案,太小則會讓它進展緩慢。一個單獨的驗證集圖像(這些圖像在訓練過程中從未見過)會顯示模型是否真的在學習,還是只是在記憶。

它還會透過翻轉、旋轉或增亮圖像來擴充數據,這樣模型就能以新的姿勢遇到熟悉的物件。經過足夠的回合後,曾經隨機的連接會演變成分層模式偵測器( Layered Pattern Detectors),專為您的圖像進行調整。

若想了解相同訓練循環在醫學影像中的詳細介紹,以及小型數據集和過度擬合等常見問題,請參閱 Yamashita 等人的《卷積神經網路:放射學中的概述與應用》(Insights into Imaging, 2018)。

 

總結:聚焦核心

Final Thoughts; Bringing It All into Focus

 

卷積神經網路(Convolutional Neural Networks,CNNs)之所以能在顯微鏡影像分析中取得成功,原因與經驗豐富的顯微鏡專家相同,它們都是從尋找視覺的基本線索(邊緣、角落、紋理)開始,然後將這些線索組合成連貫的物件和類別。

得益於這種資料驅動的提取方式,您現在可以處理各種不同的任務,例如:測量纖維厚度、執行免標記細胞計數,或在穿透式電子顯微鏡(TEM)影像中分割細胞核和粒線體,所有這些都不需要手動調整閾值。這些模型能有效處理不均勻的光線、微弱的染色和雜亂的背景,並且隨著您提供更多具代表性的範例而持續改進。

簡而言之,CNNs 將混亂的真實世界圖像轉化為可靠、可重現的測量結果,讓您無需在每次條件變化時都重新編寫規則。

 

重點整理

Key Takeaways

 

  1. 兩階段流程:CNNs 首先會提取邊緣和紋理,然後再對其發現的內容進行標記。
  2. 透過範例訓練:過程包括標記(Label) → 猜測(Guess) → 測量誤差(Measure Error) → 調整權重(Adjust Weights),並透過資料隨機和增強進行多個訓練週期(Epochs )。
  3. 應對真實世界的混亂:即使在染色微弱、光線不均或物體接觸的情況下,仍能保持準確。
  4. 適用於多種任務:同一個網路可以用於計算細胞、測量纖維厚度或分割細胞核和粒線體。
  5. 節省時間:一旦訓練完成,它能提供快速、可重複的測量,無需無止盡地調整閾值
Total-Smart Technology Co., Ltd.

VAT Number:28376870
Contact us: service@totalsmart.com.tw
Business Address:Rm7, 10FL, No.262, Sec. 2, Henan Rd., Xitun Dist., Taichung City 40744, Taiwan (R.O.C.)

Monday – Friday
8:30 am – 5:30 pm CST

MAP: 在 Google 地圖上查看中惠科技有限公司的位置 在百度地圖上查看中惠科技有限公司的位置 在高德地圖上查看中惠科技有限公司的位置 Social Media: 中惠科技有限公司 Youtube 頻道連結 中惠科技有限公司 Facebook 粉絲專頁連結

Taichung Office

TEL: +886-4-27080265  ∣  FAX:+886-4-27080263

Taipai Office

TEL: +886-2-89924292  ∣  FAX:+886-2-89929426

Website

https://www.totalsmart.tw (繁體 ∣ 简体 ∣ English)
https://www.totalsmart.com.tw (繁體)
https://www.totalsmart.com.cn (简体)

Products


Image Analysis System
Image Measurement Software
Image Capture System
Optical Measuring Equipment
Microscope Camera Support
Microscope Automation Integration
Optical Microscope
Micrometer and Reticule Eyepiece
System Integration and Solutions

Support


About Total-Smart
Contact Us
E-Office
Maintenance Services
Partner
Request Quote
Suggestions
Complaint Channel

 

Copyright © 2025 Total-Smart Technology Co., Ltd. All Rights Reserved. | Privacy Policy | Terms of Use |