Hello Bcwang,
A NiMh cell will gradually completely self discharge. When it does that, it oxidizes on the inside and dies.
If you keep some charge on the cell, it can last 3 or 4 years, but may not immediately charge up to full capacity. You may have to do several charge/discharge cycles to bring it back up.
The proper way to store NiMh cells is to discharge them at 1C to 1 volt per cell, then store them. Every 30 days put the cell through a charge/discharge cycle to keep them vibrant. I do not know how long you can keep cell this way, but I have around 5 years on some NiMh packs and they are still going strong.
On the other hand, I have noticed that occasionally a battery manufacturer will comment that cells are good for 2 years, then should be replaced.
I have not seen any formal testing on this, but this is about the best I have been able to come up with. If you replace your cells every 2 years, you should always have equipment that works well. If you stretch things out, you may have to do some of your own testing to determine when the cells drop below 80% of their initial capacity, indicating time to replace the cells.
Tom