H1(M,Z2) specifies the 1st cohomology class of manifold M (can be regarded as spacetime) with Z2 coefficient,
it is often to see that we say the 1st Stiefel Whitney class
w_1 \in H^1(M,\mathbb{Z}_2), \tag{1}
However, it looks to me that when we discuss the spinor bundle (associated to fermion in physics), we also say that the fermion line is related to H1(M,Z2). For example, on the d-torus, we need to specify the spin structure on the torus (a spin manifold, with possibly the choice of H1(M,Z2)=H1(Td,Z2)=⨁dZ2 along each S1-circle direction.) In other words, we may say that roughly
\text{periodic and anti-periodic boundary condition of fermions} \in H^1(M,\mathbb{Z}_2),\tag{2}
Moreover, one way to understand the fermion moving along a 1-dimensional sub dimensional manifold, may be the spin bordism group generator, say η, where