Long Short-Term Memory (LSTM): The Role of the Input, Forget, and Output Gates in Capturing Long-Range Dependencies October 27, 2025