Summary
Wireless communications often suffer from legitimate transmissions regarding malicious jamming attacks launched through the smart jammer. The drone or unmanned aerial vehicle (UAV) communication networks derived with reconfigurable intelligent surfaces (RIS) increase the issues of beam selection and proactive handoff in terahertz (THz). Thus, a new heuristic strategy is designed for efficient and incorporated optimization of the beamforming vector and anti‐jamming transmit power allocation in undefined environments. Here, the transmit power allocation and beamforming matrix of UAV are optimized with the developed hybrid heuristic algorithm of the Hybrid Crow Black Widow Search Optimization (HCBWSO) algorithm for maximizing the system achievable rate. Here, the HCBWSO algorithm is implemented to integrate with the Crow search algorithm (CSO) and Black Widow Optimization (BWO). The second contribution is to adopt RIS into THz–UAV communications, a new Enhanced Deep Temporal Convolutional Network (EDTCN) for predicting the future beam and proactive handoff of UAVs based on their prior analysis of the UAV locations, where the HCBWSO algorithm is utilized for recommending EDTCN. Here, the training of the EDTCN needs to be done with the collection of UAV information from the DEEPMIMO dataset for predicting the future beams and, also, tracking the location of the UAV. EDTCN helps in increasing the possibility of expanding the UAV coverage and also increases the consistency of the THz communication system. Thus, the prediction of the future beam increases the coverage area of the UAV and also maximizes the system rate in the THz communication system.