Fig. 1: Artificial intelligence model application in psychiatry.
From: Practical AI application in psychiatry: historical review and future directions

Data flow from multimodal sources through preprocessing and AI-based modeling using a transformer architecture. The model consists of input embedding, encoding, and decoding stages utilizing multi-head attention and feed-forward layers, residual layer normalization, and a linear output layer. Patient feedback informs model optimization and updates, and pattern recognition and prediction support clinical practice through diagnostic support, treatment recommendations, prognostic prediction, and ongoing monitoring.