AFS-BM: Enhancing Model Performance through Adaptive Feature Selection with Binary Masking