12 has a direct affect in functioning of neurons. Its deficiency is more likely to be connected to depression
Various western research papers have concluded that.
Vit D deficiency is also linked to depression in some way as per latest studies.
The important thing is to identify the Vit B12 deficiency at earliest to prevent neural damage.