## How to Implement Biological Neuron Activations in Artificial Neural Networks

1

In artificial neural networks, activation functions are used for neurons, i.e. the sigmoid activation:

Which can be implemented in code as (in Python):

def sigmoid(x):
return 1 / (1 + math.exp(-x))


How can we implement a biological activation function, such as the Hodgkin-Huxley model, whose mathematical form is:

Where:

• Cm: Capacitance
• Vm: Membrane potential