Biosecurity measures aim to protect animals by preventing infections from entering the herd, as these can enter and spread through in many ways. The most common form of infection spread on a pig farm is through another farm or by a breeding boar. Therefore, using artificial insemination is safer than taking the sow to a boar that is not part of the herd, or vice versa.
Another way to mitigate the risk of infections entering the farm is to keep newly arriving pigs in quarantine from the other animals for at least three weeks, and to monitor them for signs of disease on a daily basis
FAO advises minimizing the number of farms that you get pigs from and trying to source pigs from the same farms over time.
In pig farming, the biosecurity within the farm is also important. If the farm is large and has several building compartments or groupings of pigs, you should avoid mixing and moving pigs, because this increases the risk of exposing them to new infections. This mean that you should keep pigs of the same age together (age segregation).