The present invention provides a method for detecting events in an input signal. The method volatile resistive switching component to detect the events in the input signal. The method comprising identifying the events based on sampling an output from the resistive switching component.La présente invention concerne un procédé de détection d'événements dans un signal d'entrée. Le composant de commutation résistif volatile du procédé détecte les événements dans le signal d'entrée. Le procédé consiste à identifier les événements sur la base de l'échantillonnage d'une sortie provenant du composant de commutation résistif.