This means 意识到自己在…… (to realize that you are in a particular situation or place, or doing a particular thing, when you did not intend to).
This also means 寻找自我.
He spent a year in an ashram in India to find himself.他花了一年时间在印度的道场寻找自我。