Feed Forward Back Propagation Neural Network (FFBPNN) Optimized with Woodpecker Mating Algorithm is proposed in this manuscript for Dynamic Cluster-Based Secure Routing in Wireless Sensor Networks (FFBPNN-WMA-ECHC-WSN). The proposed method contains three different stages: first stage is dynamically clustered sensor network formation based on FFBPNN, second stage is Key generation for data encryption and decryption using Elliptic Curve-based Hill Cipher (ECHC), third stage is Homomorphic encryption scheme, which is used to deliver the aggregated data in-time. Woodpecker Mating Algorithm (WMA) is proposed to optimize the parameter values of FFBPNN. The proposed FFBPNN-WMA ECHC-WSN method was implemented in NS2 tool and its efficiency is evaluated under some metrics, like alive nodes, packet drop, network lifetime, delay, throughput, and energy consumption, Packet Delivery Ratio (PDR). The performance of FFBPNN-WMA-ECHC-WSN method provides lower delay 99.01%, 98.34%, 95.23% and 97.45%, and higher throughput 97.25%, 90.12%, 89.39% and 95.47% compared with existing models, such as EHCERA-SDT-WSN, DSA-ECC-PSO-SDT-WSN, IPECC-PDF-ABC-SDT-WSN and IBFA-LDCSN-BSHHO-SDT-WSN, respectively.