This study examines Free Space Optical (FSO) communication’s performance in different fog conditions, focusing on Single-Input Single-Output (SISO) and Multiple-Input Multiple-Output (MIMO) setups. In low fog, SISO handles signal degradation well. MIMO improves link robustness in moderate fog. High fog challenges traditional FSO, leading to ML integration to optimize communication parameters. For weather channel classification, a preprocessing scheme reduces features from 12 to 2 given that the 12 features are Bit Error Rate (BER), Quality Factor (Q-factor) and Received Optical Power (ROP) for different 4 users. A Gaussian Process Classifier (GPC) achieves an accuracy greater than 99%, surpassing SVM, Decision Tree, and Random Forest. GPC’s fit and predict functions execute in 0.15 s, outperforming NuSVM (0.2 s). This study highlights FSO, SISO, MIMO, and Machine Learning (ML) practicality in enhancing communication resilience in adverse weather, especially in fog-prone areas.