類神經網路近年來在醫學、工程及金融方面都被廣泛地應用,此方法可經由給予適當的訓練資料及神經網路架構的設計,使類神經網路執行單一特定任務。本研究使用類神經網路進行光柵設計,以目標的繞射效率為輸入,相對應的光柵結構為輸出,進行類神經網路訓練。使用類神經網路方法除了可以避免一般在光柵設計中需解決馬克斯威爾方程式的反向問題,更可以達到即時的光柵設計,光柵計算時間大約0.2秒,可應用於快速光柵設計。研究中使用最簡單的類神經網路架構,即可達到光柵設計的功能,其繞射效率和理論值相近,更可以驗證類神經網路應用於光柵設計的可行性。研究中亦嘗試使用類神經網路進行超穎介面全像片之設計,使用三道不同方向之光切換重建出三種不同圖案,期望可以降低在設計時所需的計算量。;Neural networks have been successfully applied in many applications. With appropriate training data and fine design of the artificial neural networks structure, the neural networks can be trained to carry out specific tasks. In literature, to design the grating profile for specific diffraction efficiencies requires to solve the inverse Maxwell’s equation with the optimization methods such as the genetic algorithm. The optimization process is time-consuming. By using the neural networks method to perform the learning and testing processes, we could obtain the desired grating profile with a very short time around 0.2 second. In this study, we use the Rigorous Coupled-Wave Analysis method to obtain the diffraction efficiencies of the gratings with specific dimensions. The diffraction efficiencies and the grating profiles serve as the input and the target output respectively to train the neural networks. The grating profiles of the specific diffraction efficiencies can be generated within one second and can be applied for fast grating profile generation. In order to reduce the computation time when encoding the hologram on the metasurface, we also try to use the neural networks to design the metasurface hologram. In our work, we used three light beams from different directions to switch different diffraction patterns on the hologram.