深度電腦全像術三維多光子激發之神經網路架構優化
Enhancing Neural Network Architectures for Deep Computer-Generated Holography in 3D Micropatterned Multiphoton Stimulation
摘要
雷射可以用來刺激神經元的神經突觸,並以此研究神經元,為了在 3D 空間中實現單細胞解析度的即時光刺激,實驗室已透過果蠅進行實驗,並且開發一套基於深度學習的電腦全像術(deep learning-based computer-generated holography,DeepCGH)系統,透過該系統將激發圖形映射至包含軸向深度與光強度資訊的數位傳播矩陣(digital propagation matrix,DPM),透過神經網路計算出光在成像體積中的頻域場;透過神經網路的幫助,相較於傳統的Gerchberg-Saxton迭代演算法(G-S algorithm),速度提昇一千倍以上,且得利於 DPM 的映射,不論激發空間軸向深度的範圍為何,模型參數使用得以統一,換言之,不同激發深度層數的輸入得以使用統一的模型描述以及計算,並且考慮到 DeepCGH 產生的圖案軸向解析度不足,我們整合時間聚焦限制技術(temporal focusing confinement,TFC),此技術使得激發點的軸向解析度得以從30 µm 提高至6 µm 。而在此研究中,進一步理解原先電腦全像術中使用的U-Net的架構意義,並且減去U-Net的前半Encoder的部份,減少一半的計算量;並且在計算複數域的過程中,借鏡Y-Net的架構,該架構解耦獨立振幅以及相位的計算,使神經網路的通道因為解耦而再次減少一半的計算量,同時提高準確度;並且藉由vision transformer (ViT)神經網路架構文章的發想,替換掉了DPM;把每個激發點中心進行分詞化,每個分詞基本包含三軸以及點中心強度四個資訊,如此一來,每個分詞所包含的各種資訊就可以使用具有注意力機制的模型,用具有注意力機制且解耦以及減少通道以及把光點如同自然語言一樣分詞化的模型來取代原先的捲積神經網路,使得每個光激發點在計算時得以把激發點的位置等資訊一併考慮進計算中,得到考慮激發點位置的全像圖;因為分詞化的關係,使得原先與圖案解析度呈現平方關係的輸入量以及FLOP量的複雜度得以轉為常數複雜度,因為局部全局注意力的關係,不必像捲積神經網路一樣用神經網路的層數疊加出更大的感受野,因此減少關鍵路徑的神經層數,進一步的加速計算,最終在與原始解析度相同的狀況下,得以計算出考慮了光點位置以及強度相互關係的全像圖,且該全像圖產生速度從 DPM 的13 ms提昇到4 ms,並且得以在更高的解析度下,維持一樣的計算量以及4 ms的計算速度,且此網路擁有一些潛在的好處,例如將來如果有其他光點的資訊,僅需要將此資訊一起放入分詞中,便可使其擁有注意力的計算。
Laser light can be used to stimulate neuronal synapses and thereby study neurons. To know how brain function works, our laboratory uses Drosophila in experiments and has developed a deep learning–based computer-generated holography (DeepCGH) system. In this system, a digital propagation matrix (DPM) to map an input pattern into two two-dimensional matrices is employed, which represents stimulated depth and light intensity separately. A neural network then computes the complex field of the light within the imaging volume. With the aid of the neural network, our system generates pattern by over then 1,000 times faster compare to traditional Gerchberg–Saxton (G-S) iterative algorithm. Moreover, thanks to the DPM mapping the point, the same set of model parameters can be used regardless of the axial depth range, which makes inputs with different range of depth layers all rely on a unified model. Because the axial resolution of DeepCGH was kind of insufficient for the micron-level resolution, a temporal focusing confinement (TFC) technique has been integrated to improve axial resolution from 30 µm to 6 µm. In this work, we also revisited the meaning inside the U-Net architecture in DeepCGH. By removing the first half of the U-Net, we halved the computational layers and removed unnecessary calculation steps. For complex field calculation on FFP, we adopted Y-Net architecture to decouple amplitude and phase computations this both reduced channel amount and cut computation by another half, while boosting accuracy. Inspired by vision transformer (ViT), we replaced DPM, treated each light-excitation spot as an individual token, each token carries four pieces of information, as three spatial coordinates and spot center intensity. Processing these tokens with a transformer’s attention mechanism, which makes channel unwrapped and reduced, tokenizes each spot as a word in speech to replace the convolutional backbone, allowing each spots consider position in the calculation. Tokenization reduces the input’s spatial complexity and flop complexity from quadratic in resolution to constant, and because attention mechanism can cover the whole local mapping pixels at the same time, we no longer need those deep layers as convolutional approach to enlarge receptive fields, there for we can reduce the layers of critical path, and accelerate computation even more. As a result, with new architecture, the hologram generation time improved from 13 ms with DPM to 4 ms without DPM with the original pattern resolution and the consideration of correlation between xyz position and intensity, and the hologram can be computed with even higher resolutions, keeping the computation amount and speed with 4 ms at the same time. Nevertheless, it contains a potential benefit, in the aspect of expanding tokens easily with a spot while we have more information we can utilize.
所屬典藏
光電系統研究所引用此條目
Chen, B.-C. (2025). Enhancing Neural Network Architectures for Deep Computer-Generated Holography in 3D Micropatterned Multiphoton Stimulation. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/85520
引用文字依 APA 第 7 版格式自動產生,使用前請再核對。
分享
永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/85520