Machine Learning-Driven Analysis of kSZ Maps to Predict CMB Optical Depth $τ$