def get_last_activation_layer(model):
    """Return the name of the last activation layer"""

    layer_names = []
    for layer in model.layers:
        layer_names.append(layer.name)

    layer_names = [name for name in layer_names if 'activation' in name]
    return layer_names[-1]