real-time intrusion detection system based on the von neumann architecture struggle to balance low power consumption and high computing speed. in this work, a strategy for network intrusion detection system based on the wo3–x/wo3–x-ag/wo3–x structured optoelectronic memristor overcoming the aforementioned issues is proposed and demonstrated. through the modulation of electrical signals, the memristor successfully simulates a series of important synaptic functionalities including short-term/long-term synaptic plasticity.