\begin{tikzpicture}
	\tikzstyle{unit} = [draw,circle,line width=0.8pt,align=center,fill=green!30,minimum size=1em]
		
		\node[minimum width=3em,minimum height=1.8em] (o) at (0,0){};
		\node[anchor=north,inner sep=1pt,font=\footnotesize] (state_A) at ([xshift=-1em,yshift=-1em]o.south){state A};
		\node[anchor=north,inner sep=1pt,font=\footnotesize] (state_B) at ([yshift=-2em]state_A.south){state B};
		\node[anchor=north,inner sep=1pt,font=\footnotesize] (state_C) at ([yshift=-2em]state_B.south){state C};
		\node[anchor=north,inner sep=1pt,font=\footnotesize] (state_D) at ([yshift=-2em]state_C.south){state D};
		
		\node[anchor=west,inner sep=1pt,font=\footnotesize] (c1) at ([yshift=0.2em,xshift=2em]o.east){T};
		\node[anchor=west,inner sep=1pt,font=\footnotesize] (c2) at ([xshift=5em]c1.east){F};
		\node[anchor=west,inner sep=1pt,font=\footnotesize] (c3) at ([xshift=5em]c2.east){F};
		\node[anchor=west,inner sep=1pt,font=\footnotesize] (c4) at ([xshift=5em]c3.east){T};
		
		\node[anchor=north,unit,fill=red!30] (u11) at ([yshift=-1.6em]c1.south){};
		\node[anchor=north,unit] (u21) at ([yshift=-1.6em]u11.south){};
		\node[anchor=north,unit] (u31) at ([yshift=-1.6em]u21.south){};
		\node[anchor=north,unit] (u41) at ([yshift=-1.6em]u31.south){};
		
		\node[anchor=north,unit,fill=red!30] (u12) at ([yshift=-1.6em]c2.south){};
		\node[anchor=north,unit] (u22) at ([yshift=-1.6em]u12.south){};
		\node[anchor=north,unit] (u32) at ([yshift=-1.6em]u22.south){};
		\node[anchor=north,unit] (u42) at ([yshift=-1.6em]u32.south){};
		
		\node[anchor=north,unit,fill=red!30] (u13) at ([yshift=-1.6em]c3.south){};
		\node[anchor=north,unit] (u23) at ([yshift=-1.6em]u13.south){};
		\node[anchor=north,unit] (u33) at ([yshift=-1.6em]u23.south){};
		\node[anchor=north,unit] (u43) at ([yshift=-1.6em]u33.south){};
		
		\node[anchor=north,unit,fill=red!30] (u14) at ([yshift=-1.6em]c4.south){};
		\node[anchor=north,unit] (u24) at ([yshift=-1.6em]u14.south){};
		\node[anchor=north,unit] (u34) at ([yshift=-1.6em]u24.south){};
		\node[anchor=north,unit] (u44) at ([yshift=-1.6em]u34.south){};
		
		\draw[line width=1pt] (o.north west)--(o.south east);
		\node[anchor=south west,align=center,font=\tiny] at ([yshift=-1.4em,xshift=-1.2em]o.45){$i+1$位置\\隐藏状态};
	\node[anchor=north east,align=center,font=\tiny] at ([yshift=1.2em,xshift=1.2em]o.-135){$i$位置\\可见状态};
	
		\draw[->,line width=1pt] (u11.east) -- node[above,red!50,font=\footnotesize]{0.65}(u12.west);
		\draw[->,line width=1pt] (u12.east) -- node[above,red!50,font=\footnotesize]{0.55}(u13.west);
		\draw[->,line width=1pt] (u12.east) -- node[right,pos=0.6,font=\footnotesize]{0.45}(u23.west);
		\draw[->,line width=1pt] (u13.east) -- node[above,red!50,font=\footnotesize]{0.5}(u14.west);
		\draw[->,line width=1pt] (u13.east) -- node[right,pos=0.6,font=\footnotesize]{0.5}(u24.west);
		\draw[->,line width=1pt] (u11.east) -- node[right,font=\footnotesize]{0.35}(u22.west);	
		\draw[->,line width=1pt] (u22.east) -- node[left,pos=0.4,font=\footnotesize]{0.3}(u13.west);
		\draw[->,line width=1pt] (u22.east) -- node[font=\footnotesize]{0.2}(u23.west);
		\draw[->,line width=1pt] (u22.east) -- node[font=\footnotesize]{0.2}(u33.west);
		\draw[->,line width=1pt] (u22.east) -- node[below,font=\footnotesize]{0.3}(u43.west);
		\draw[->,line width=1pt] (u23.east) -- node[left,pos=0.4,font=\footnotesize]{0.35}(u14.west);
		\draw[->,line width=1pt] (u23.east) -- node[font=\footnotesize]{0.15}(u24.west);
		\draw[->,line width=1pt] (u23.east) -- node[font=\footnotesize]{0.15}(u34.west);
		\draw[->,line width=1pt] (u23.east) -- node[below,font=\footnotesize]{0.35}(u44.west);
		
\end{tikzpicture}