Risk factors for NiV infection include close contact with infected animals or humans, consumption of raw date palm sap contaminated with bat excreta, and poor infection control practices in healthcare settings. Understanding these risk factors is essential for developing effective prevention strategies.