監測結構物受地震力作用下之歷時響應為評估結構物健康狀況的重要依據,目前國內外多於結構物內各樓層安裝加速度傳感器以監測該樓層之地震響應,但其於實際應用上易受成本與施工之限制。鑒於我國地震頻繁,更應著重結構物之健康監測,因此,本研究嘗試使用含物理約束之長短型記憶神經網絡模型,透過使用地表加速度即可對房屋結構受震反應進行預測,期望以此提高監測之效益以及提升民眾加裝監測儀器之意願。 本研究使用長短期記憶模型(Long Short Term Memory networks, LSTM)並加入物理約束,利用結構動力學原理來降低大量訓練數據之需求,同時考量在地震下之運動狀態,以提高模型預測之合理性與可靠性。其中,訓練與預測之數據來自MATLAB、OpenSees有限元素軟體之模擬數據與美國Center for Engineering Strong Motion Data收集之一棟六層樓鋼筋混凝土建築的地震紀錄,此兩種類型之數據提供了模擬與真實響應之比較,而預測結果顯示,使用含物理約束之模型在模擬數據集上的預測表現優於傳統模型,但在真實數據集上,因結構物運動反應較為複雜,物理約束之改善效果有限。本研究展示了多種示例,並對預測結果進行詳細分析與評估,期望為結構物受震反應預測提供可靠之參考依據。;Monitoring the time-history response of structures under seismic forces is crucial for assessing their health. Currently, accelerometers are installed on various floors within structures both domestically and internationally to monitor seismic responses. However, practical applications are often limited by costs and construction complexity. Given the frequent seismic activity in our country, greater emphasis should be placed on structural health monitoring. Therefore, this study attempts to use a physically constrained Long Short-Term Memory (LSTM) neural network model to predict the seismic response of buildings using only ground acceleration, aiming to improve monitoring efficiency and increase public willingness to install monitoring devices. This study employs LSTM models with physical constraints, utilizing principles of structural dynamics to reduce the need for extensive training data while considering motion states under seismic conditions. This approach aims to enhance the model′s prediction rationality and reliability. The training and prediction data come from simulated data using the MATLAB, OpenSees finite element software and seismic records of a six-story reinforced concrete building collected by the Center for Engineering Strong Motion Data (CESMD). These two types of data provide a basis for comparing simulated and actual responses. The prediction results show that the physically constrained model outperforms traditional models on simulated datasets. However, on real datasets, due to the more complex motion response of actual structures, the improvement effect of physical constraints is limited. This study presents various examples, conducts detailed analysis and evaluation of the prediction results, and aims to provide reliable references for predicting the seismic response of structures.