Cardiovascular diseases (CVDs) are the world's leading cause of death; therefore cardiac health of the human heart has been a fascinating topic for decades. The electrocardiogram (ECG) signal is a comprehensive non-invasive method for determining cardiac health. Various health practitioners use the ECG signal to ascertain critical information about the human heart. In this paper, the noisy ECG signal is denoised based on Discrete Wavelet Transform (DWT) optimized with the Enhanced African Vulture Optimization (AVO) algorithm and adaptive switching mean filter (ASMF) is proposed. Initially, the input ECG signals are obtained from the MIT-BIH ARR dataset and white Gaussian noise is added to the obtained ECG signals. Then the corrupted ECG signals are denoised using Discrete Wavelet Transform (DWT) in which the threshold is optimized with an Enhanced African Vulture Optimization (AVO) algorithm to obtain the optimum threshold. The AVO algorithm is enhanced by Whale Optimization Algorithm (WOA). Additionally, ASMF is tuned by the Enhanced AVO algorithm. The experiments are conducted on the MIT-BIH dataset and the proposed filter built using the EAVO algorithm, attains a significant enhancement in reliable parameters, according to the testing results in terms of SNR, mean difference (MD), mean square error (MSE), normalized root mean squared error (NRMSE), peak reconstruction error (PRE), maximum error (ME), and normalized root mean error (NRME) with existing algorithms namely, PSO, AOA, MVO, etc.