The present invention provides a method and system for processing data from an event, such as a neurological event. When a neurological event occurs, a spike in a neural waveform is generated. The spike can be detected and used to determine information about the neurological event. The method uses data values from a resistive switching component capable of undergoing a resistive state change when a voltage is applied to it. The data values represent a sequence of resistive state changes of the resistive switching component which correspond to the neurological event. The method further comprises processing the received data values to identify a resistive state change corresponding to the neurological event and to obtain information about the neurological event. Thus, a method and system for processing neural spikes is provided.