Introduction

Antimicrobial resistance (AMR) refers to the ability of bacteria, viruses, fungi, and parasites to grow and reproduce in the presence of a given antimicrobial1. Antimicrobial resistance in bacteria is a great health and economic concern and one of the biggest challenges of the twenty-first century as demonstrated by the Global Action Plan on Antimicrobial Resistance supported by the World Health Organization (WHO), World Organization for Animal Health (WOAH), and the Food and Agriculture Organization of the United Nations (FAO)2,3. From the human perspective, 700,000 deaths every year are attributed to AMR, and only in the United States of America, at least 35,900 deaths were accredited to antibiotic-resistant bacteria and fungi each year4,5. From the animal perspective, loss of antimicrobial effectiveness in livestock leads to a reduction in animal welfare and production indices, as well as an increase in production and treatment costs6,7. This can lead to an inevitable rise in the final prices of animal products that has a negative impact on their affordability for the general public.

AMR is a complex problem, impacting human, animal and environmental health since resistance genes can disseminate to different habitats. Hence, it needs to be addressed using holistic, multi-scale methods (i.e., bacteria-, animal-, farm-, system-level) and with a One Health approach1,8,9. In this study, we focused on AMR in bacteria causing disease in the swine industry. Bacteria can be resistant to an antimicrobial because of an intrinsic characteristic of the species (innate resistance), or the resistance could be acquired. It is widely accepted that one main driver of acquired resistance is the selective pressure derived from antimicrobial usage, although the AMR problem is a complex one and many factors are involved. Excessive use and misuse of antibiotics either in humans or livestock could increase AMR in bacteria2,7. Swine production is generally characterized by being an intensive production system with high densities of animals, therefore, infectious diseases are more challenging to control even under high biosecurity conditions in case of presence or introduction6.

Here, we designed a framework to detect and assess similarities in phenotypic antimicrobial resistance status of farms for different pathogens based on the generation of monoplex (or single-layer) and multiplex (or multilayer) similarity networks. The overarching aim of this work is to generate a tool that could help improve management and clinical practices in large production systems to reduce the impact of AMR and minimize its spread within and between farms. In that sense, we propose some theoretical interventions for when complete data is available.

Methods

Data

Data from a large swine production system in the US was obtained with information on 710 animal holdings that included sow farms and finishers, although there was no information about the type of farm production for all of them. Sensitive information, such as farm names, owners, and flow was anonymized to preserve confidentiality. At each farm, we gathered information about the isolated bacterial species tested (henceforth pathogen/s). For this study, we used a total of seven pathogens: Actinobacillus suis, Bordetella bronchiseptica, Escherichia coli, Glaesserella parasuis, Pasteurella multocida, Salmonella spp., and Streptococcus suis. For each pathogen, we obtained the panel of antimicrobials tested by the laboratories, with its corresponding minimum inhibitory concentrations (MIC) values for the phenotypic AMR. The interpretation of the MIC value into “susceptible”, “intermediate” or “resistant” categories were primarily based on the clinical breakpoints provided by the Clinical and Laboratory Standards Institute´s (CLSI) veterinary guidelines, which are based on worldwide expert consensus10. When clinical breakpoints were not available by the CLSI guidelines, we used the harmonized laboratory criterion which is based on their professional experience. When interpretation for the results was missing for a given pathogen, the antimicrobial was excluded for further analysis. Category data were binarized considering resistant and intermediate as a resistant status (i.e. “1”) and susceptible as “0”. Antibiotics that were tested in less than half of the farms for a given pathogen were also excluded for subsequent analysis (Supplementary Fig. S1). In general, ten types of antibiotic classes were tested for phenotypic resistance: penicillins (ampicillin and penicillin), lincosamides (clindamycin), aminoglycosides (gentamicin, neomycin), amphenicols (florfenicol), sulfonamides (sulphadimethoxine, trimethoprim/sulphamethoxazole), fluoroquinolones (enrofloxacin), cephalosporins (ceftiofur), pleuromutilin (tiamulin), macrolides (tilmicosin, tylosin tartrate, tulathromycin), and tetracyclines (tetracycline, chlortetracycline, oxytetracycline).

The date of the reception by the laboratory was used for temporal assignment. Data ranged from the last quarter of 2018 to the end of 2021. For a given pathogen, the majority of farms had only information about one isolate for the entire study period, hence not enough information was available to conduct the analyses by year.

Generation of monoplex networks

Monoplex networks, also known as single-layer networks, can be mathematically defined as a graph G = (V, E), where |V| is the vertex of the network, and |E| the edges or links representing the connections between nodes11,12. In this case, the nodes represented the farms where the phenotypic resistance for a set of antimicrobials of a given pathogen was tested. Edges were defined as the similarity between two farms based on the resistance pattern of a pathogen. The resistance pattern of a bacteria in a farm F can be defined as a vector: F = [f1, f2, …, fn], where f is the susceptibility status of the farm to a given antimicrobial, and n is the number of tested antimicrobials for a given pathogen. From this resistance pattern, we obtained the overall resistance status of a farm F: RSF (Eq. 1). For farms with more than one isolate per pathogen, the mean susceptibility was used in the analysis.

$${\text{RS}}_{\text{F}}\text{=}\sqrt{\sum_{{\text{i}}= \text{1} }^{\text{n}}{{\text{f}}}_{\text{i}}^{ \, {2}}}$$
(1)

However, for a given pathogen, the resistance pattern was defined as a matrix: P = (m x n), where m is the number of farms tested for AMR for a given pathogen, and n the number of tested antimicrobials. To obtain the similarity of resistance patterns between farms, we first calculated the pairwise Euclidean distance13 (Eq. 2). The distance measure was subsequently scaled to a maximum of 1 by dividing by the maximum value, and the similarity was obtained by subtracting the distance from 1. This similarity ranged from 0 to 1, being 1 identical resistance pattern, and 0 complete dissimilarity between two given vector farms (F and G).

$$d\left(F, G\right)=\sqrt{\sum_{i=1}^{n}{\left({f}_{i}-{g}_{i}\right)}^{2}}$$
(2)

To overcome the problem of missing data in the resistance pattern of farms and similarity measures, we used missing data imputation14. Missing values for the resistance to an antibiotic were replaced by the average of the available information in other farms as a proxy of the probability of resistance in a farm with missing information.

Given the definition of the edges based on similarity, monoplex networks were fully connected by edges with different weights. The application of a cut-off value or threshold is a common practice to reduce the density of networks and find node clusters15. Thus, we selected a threshold (th) and applied it to the adjacency matrix (A = (aij)); values in the matrix below a given threshold were removed and a new unweighted matrix (B) was generated (Eq. 3).

$$B = \left\{ {\begin{array}{*{20}c} {b_{ij} = 1, \;\;\;\;\; {a}_{ij} > th} \\ {b_{ij} = 0, \;\;\;\;\; {a}_{ij} \le th} \\ \end{array} } \right.$$
(3)

Given the possible differences in the similarity between farm AMR patterns, applying the same value for th would not be appropriate for each pathogen. Therefore, we assumed that the network given th should retain a sufficient number of edges, so there was no connected component larger than 3% of Fn disconnected from the main connected network. We iterated through the number of connected components based on the defined criterion and chose the highest value of th with only one connected component. This criterion allowed us to obtain centrality measures based on average path length, and to identify hub nodes connecting different communities16. The resultant network was undirected and unweighted.

For each node in the monoplex network for the included pathogens, degree, eigenvector and betweenness centrality measures were computed. These centrality measures are commonly used in network analysis and are thoroughly reviewed elsewhere17. Briefly, in an undirected network, the degree centrality for a node is the number of edges that connect a node with other nodes. The eigenvector centrality is based on the number of connections of a given node, as does the degree, but also takes into account the importance of its neighbors; connections to high-scoring nodes contribute more to the score of the given node12. Therefore, in the context of undirected similarity networks, a high degree or eigenvector score point to nodes that possess high similarity with other nodes in the network. Betweenness centrality quantifies the number of shortest paths between all node pairs passing through that node18.

Another important aspect to consider is the identification of communities or groups of nodes in the network and the intrinsic characteristics that differentiate them from the others. Here, we adopted the understanding of the term “community” as a subset of nodes in a network with more connections among themselves than with the rest of the nodes15,19. We used the Louvain algorithm to identify communities in the pathogen’s monoplex networks20. For each community, we computed the antimicrobial resistance profile by averaging the given resistance pattern of every farm in the community. Identifying communities in those networks is essential for identifying and analyzing differences in their antimicrobial resistance profiles.

Differences in the antimicrobial resistance profiles and the identification of hubs in the network based on centrality measures provide epidemiologic context for management in specific farms and suggest flows of pigs that may minimize AMR spread. The process mentioned above was developed in R version 3.6.321, using the following packages: “igraph”22, “tidyverse”23, “mice”24, and “reshape2”25.

Generation of multiplex networks

Similar to monoplex networks, multilayer networks are composed of nodes and edges, but they also add layers to their structure. Multiplex networks, also known as edge-colored networks, are a special type of multilayer network, in which the nodes are the same or similar in each layer, and are connected to their counterparts on other layers by coupling edges. As in monoplex networks, intra-layer edges connect nodes in the same layer11,26. Multiplex networks are valuable for studying different interactions and relationships between nodes27. In our study, the goal of using a multiplex network was to identify similarities among farms with information for different pathogens. Each layer would be every pathogen’s monoplex network included in the study. To assess how many nodes overlapped between layers, we compute the pairwise Jaccard similarity between nodes of the layers19,28. This index is equal to the number of common elements (intersection) of two sets of nodes (Li, Lj) divided by the total size of the compared sets29 (Eq. 4). The analysis was performed using the “multinet” R package30.

$$J({L}_{i},{ L}_{j}) =\frac{({L}_{i} \cap {L}_{j})}{({L}_{i} \cup { L}_{j})}$$
(4)

Results

Monoplex networks

Due to the nature of the dataset, not all the tested antimicrobials were included in the laboratory panel or had consistent susceptibility interpretation criteria for each pathogen (Supplementary Fig. S1). Therefore, the size of the vector F varied, ranging between 12 for E. coli and 15 for B. bronchiseptica and P. multocida.

Overall missing information about the AMR status (susceptible or resistant) for antibiotics in the panel of a pathogen varied from 1.77% to 11.58%. However, missing information was concentrated in only some antimicrobials, varying from one for E. coli (tetracycline) to four for Salmonella spp. (Table 1). The majority of missing data was due to the lack of inclusion of an antimicrobial when reporting the results.

Table 1 Number of farms and associated information of the monoplex networks for each pathogen included in the study.

We found significant differences in terms of the overall resistance status of the farms (RSF) and the percentage of resistance between pathogens (Fig. 1). The range of RSF is determined by the number of included antimicrobials from the pathogen’s panel in the study due to the inclusion criteria. Since the total number of studied antimicrobials, although similar, was not the same for every pathogen, we rescaled the overall resistance status values to a maximum of 1, dividing by the maximal RSF possible value for each pathogen. The small variation in the number of tested antimicrobials allowed us to easily compare them once rescaled. E. coli and Salmonella spp. isolates presented the higher AMR overall resistance while A. suis and G. parasuis’ isolates the lowest, closely followed by P. multocida.

Figure 1
figure 1

Boxplots showing the comparison of the rescaled overall resistance status for the farms (RSF) and the percentage of resistance by farm for the pathogens included in the study. The RSF was calculated using Eq. (1) and rescaled to a maximum of 1 by dividing it by the maximal RSF possible value for each pathogen. Figure generated using the “tidyverse” package in R v3.6.3.

The number of farms with a resistance pattern for a given pathogen varied, as did the threshold ranging between 0.7 and 0.8 (Table 1, Supplementary Fig. S2). Densities of the resultant networks are gathered in Table 1. They varied significantly for some pathogens, being as high as 0.375 for B. bronchiseptica and as low as 0.045 for E. coli. Differences in the morphology and density of the networks for the different pathogens studied here can be observed (Fig. 2). Thus, the number of identified communities by the Louvain algorithm also varied from highly dense networks to less dense ones. Single-member communities were considered as isolates. Networks for A. suis and B. bronchiseptica had a high density, meaning that the isolates tested in the farms had extremely similar patterns of resistance, and therefore fewer communities were identified. AMR profiles were similar among communities for these pathogens (Fig. 3). In both cases, more than 48% of the farms belonged to a single community. E. coli and Salmonella spp. are pathogens with higher overall resistance in this study (Fig. 1), and that is also reflected in their community profiles (Fig. 3).

Figure 2
figure 2

Monoplex similarity networks for each pathogen included in the study. Networks were represented using the Fruchterman–Reingold layout in Gephi31. In the network, node size represents the relative overall resistance status (Eq. 1), and the color the different communities identified.

Figure 3
figure 3

Community profile for the most important connected communities identified in the network for each pathogen included in the study. The asterisk indicates the antimicrobials for which data is missing. Figure generated using the “tidyverse” package in R v3.6.3.

Several centrality measures were also computed, namely degree, eigenvector and betweenness centralities (Fig. 4). These measures allowed us to identify nodes that are hubs in the network17. Higher values for degree centrality showed farms that have more similarity to other farms, while the eigenvector showed farms that are connected to other well-connected farms. Higher values of betweenness showed hub farms that connect different communities, and therefore could be individually analyzed for their implication in AMR spread. It can be seen how denser networks, such as the ones for A. suis and B. bronchiseptica, have in general greater degree and eigenvector values and fewer betweenness hubs.

Figure 4
figure 4

Network’s centrality measures for each pathogen included in the study. Figure generated using the “tidyverse” package in R v3.6.3.

Multiplex networks

We generated a multiplex network that was comprised of 479 nodes, although not all the farms had information about every pathogen (Fig. 5). Many of them had information about only one pathogen (Fig. 5B). According to the Jaccard similarity, the overlapping of nodes between layers is low, being inferior to 0.55, and it is the lowest for A. suis with the rest of the pathogen layers (Fig. 5A).

Figure 5
figure 5

(A) Jaccard similarity of the shared nodes of every pair of layers, and (B) histogram showing the frequency of presence of farms in the multiplex network. Figure generated using the “tidyverse” package in R v3.6.3.

Discussion

In this study, we propose a novel approach of using similarity networks and community detection to generate AMR profiles as a quick and easy visualization tool to support decision-making and improve antimicrobial stewardship for swine production systems. The pathogens studied in this work are etiological agents of important systemic, enteric, and respiratory diseases in swine, which create a significant impact on the health and well-being of pigs, as well as an important economic loss for the swine industry. Furthermore, these agents are primary drivers of antimicrobial use on farms. There is also a public health concern about some of these agents, such as E. coli, Pasteurella multocida, Salmonella spp., S. suis and B. bronchiseptica, due to their zoonotic nature32. Additional information on their epidemiology, pathogenesis and control can be found elsewhere32.

Here, farms have been grouped in terms of their phenotypic AMR similarity. It is worth noting that in vitro characterization of the susceptibility of an isolate does not necessarily imply the success or failure of the in vivo clinical outcome33. There are some uncertainties of clinical breakpoints in veterinary medicine for many antimicrobials since they are host-specific and even vary for different target organs34,35. In this study, we have used the currently approved approach for assigning the phenotypic AMR status based on CLSI veterinary guidelines and laboratory expertise that are therapeutically relevant10. Moreover, these clinical breakpoints were used to show the AMR profile of the bacterial population of the farm and are epidemiological relevant for the current study regardless of the sampled organ. The phenotypic AMR similarity, along with the AMR profile of the identified communities, can help improve the therapeutic management of farms, as well as guide animal movements between them to reduce the spread of resistant clones. For example, in the case of S. suis, the most frequent antimicrobial treatments are beta-lactams and fluoroquinolones36, so resistance to one of these antimicrobials would be highly relevant for infection management, and its spread could be mitigated by large swine production systems and veterinarian practitioners with the information provided by the methodology proposed here. In the S. suis community profile (Fig. 3), it can be seen that the major communities are highly susceptible to those antimicrobials. Still, if susceptibility to one of them decreases over time, specific and localized management measures could be taken to hamper the spread of resistance.

For some farms, only information about the susceptibility profile of one isolate was available. Thus, farm patterns should not be considered as the AMR frequency of the entire farm, since only one isolate per farm was used for the generation of the network in those cases. Therefore, for those farms, the information presented here should be considered as a relative risk of resistance and not as the overall resistance of the farm. In addition, there might be a possible bias in the data collection since, in some cases, sampling was clinically based and did not proceed from random sampling. This sampling criteria along with the consideration of the AMR’s categories of “resistance” and “intermediate” status as resistant isolates, might increase the percentage of resistance found for each pathogen for some antimicrobials that will be discussed below. For future studies and to minimize the former limitation, sampling protocols could be implemented. This protocol should include how to calculate sample size so it is representative of the farm’s population in terms of age, sex and number of animals, as well as to obtain an appropriate estimate of the prevalence of AMR37,38,39. Sampling should be carried out preferably randomly in healthy animals whenever possible, although the inclusion of samples from sick animals could be accepted in an admissible proportion in the shake of cost-effectiveness. Moreover, guidelines can be provided as to the target organs and type of sample admissible to ensure comparable results37,38. Even considering these limitations, the methodology is valuable from a practical point of view for identifying similarity patterns between farms affected by important pathogens of animal and public health concern.

One example of applicability is minimizing animal flows from farms belonging to other communities whenever possible; and even more so from communities with higher resistance status or where a pathogen is resistant to a therapeutically crucial antimicrobial. This could be even more beneficial when resistance genes are evaluated. The animal source may be outside the network, whether a farm that has not been tested or a farm for which no information is available for a given pathogen. In that case, an analysis of the AMR profiles of recipient farms can be conducted to find similarities between them, which could include genetic factors as well. Unfortunately, we could not assess shared features between farms, such as the geographical location and type of farm, flow or origin of pigs, farm size, treatment, or biosecurity protocols, among other factors. For example, the type of farm could be associated with different management practices7. This information would be highly beneficial to identify whether there are common features that might be contributing to increasing AMR, facilitating the benchmarking of farms and supporting the implementation of mitigation strategies. Furthermore, having information about the community’s profile can enhance the application of an effective clinical treatment in the early stages of an outbreak, and, therefore, better inform antimicrobial use and avoid the excessive use or misuse of antibiotics that could contribute to AMR. Therefore, this tool should be considered as a preliminary approach to finding meaningful associations between antimicrobial patterns of farms that can help tackle the AMR problem.

Regarding methodological aspects, missing values are a frequent problem in any analysis14. The primary source of missing data was for tetracyclines, since some laboratories reported only tetracycline, while others included chlortetracycline and oxytetracycline, but not the three of them combined. Hence, information about the resistance profile of certain antimicrobials should be evaluated taking into consideration the need for imputation for certain data. However, the imputation of missing data allows the use and analysis of valuable partial information that would not be included otherwise14. In this study, we kept phenotypic AMR data in the farm’s antimicrobial pattern even with < 50% of missing information for some pathogens, so that we could compare such resistance profiles with other pathogens, and also as a way to highlight the importance of having complete information about the same AMR panel. Community profiles for A. suis and P. multocida are a prime example of the importance of keeping phenotypic AMR for an antimicrobial with missing information, since for several of them, significant differences in community profiles could be revealed. In both cases, we identified communities that were highly susceptible to chlortetracycline: community 2 for A. suis and communities 3 and 6 for P. multocida. Something similar occurred with S. suis network and clindamycin susceptibility for the different communities. Community 25 had 1% resistant bacteria while the rest of the large communities exceeded 80% of resistance.

The reason for using the average of the available information of other farms for the same pathogen is that it shows the probability of resistance in a farm with missing information. Although it is a limitation of the study, we believe this is a simple but effective approach for this situation because it maintains the characteristics of the dataset and prevents the loss of data. Moreover, other imputation methods, such as predictive mean matching would assign a resistant or susceptible status24, directly distorting the similarity networks by potentially grouping farms with missing data with resistant or susceptible groups, when their real status is unknown for a given antimicrobial.

The use of a threshold is essential when working with fully connected networks to reduce their density and properly analyze meaningful node relationships. In many studies facing the same issue, researchers defined this threshold by trial and error40, although some threshold selection methods have been described in the literature41. We have developed a general threshold selection method that allows us to automatically create a similarity network that retains valuable information about path-length centrality measures, such as betweenness. As our results showed (Table 1), giving the same threshold for every pathogen would be arbitrary and unappropriated due to the specific intrinsic characteristics of each phenotypic AMR similarity network.

The multiplex network could not be adequately generated due to the lack of critical farm’ information about the AMR patterns for some pathogens (Fig. 5). Considering the small overlapping of nodes observed between layers, centrality measures would have just highlighted farms that appeared in more layers, and not necessarily the most important ones. A multiplex approach could be applied when more AMR data is available in all or at least in most farms. This would allow for the identification of farms that share the same AMR similarity pattern for the different pathogens. Similarity networks can be combined with other networks, such as networks representing the movement of animals between farms or other features of interest. Another application would be the generation of temporal networks to analyze the progress and evolution of relationships of AMR for a particular pathogen in a specified period11. However, temporal data about AMR in each farm is required, and this information was limited in this study (i.e., the range of farms with a single isolate ranged from 56.63% for S. suis to 78.1% for A. suis).

Although not the aim of the study, we discuss below the AMR frequency for the different pathogens and its impact based on the most relevant antimicrobials used for the clinical treatment of each pathogen. It should be noted that AMR frequency among pathogens is difficult to compare between studies due to differences in study design, the target population, as well as resistance criteria and clinical breakpoint35.

Therapeutic options to treat the disease caused by the infection of A. suis include amoxicillin, ampicillin, penicillin, tiamulin, ceftiofur, gentamicin and trimethoprim/sulfadiazine42. Taking this into account, A. suis isolates from the major communities of this study are susceptible to many of the therapeutic tools against this pathogen (Figs. 2 and 3).

Similar to previous reports, almost all isolates of B. bronchiseptica were resistant to beta-lactams (99% here vs. 100%)43, which are commonly used for the treatment of swine respiratory disease44. The resistance to beta-lactams is explained by a species-specific beta-lactamase gene described for the bacteria, as well as low membrane permeability45. Almost all isolates were susceptible to tulathromycin, an antibiotic used for the treatment of swine respiratory disease that comprises Actinobacillus pleuropneumoniae, P. multocida, Mycoplasma hyopneumoniae, G. parasuis and B. bronchiseptica46. B. bronchiseptica isolates were largely susceptible to enrofloxacin44, although community 3 was phenotypically resistant. Differences in florfenicol susceptibility have been described in several studies ranging from 10 to almost 98%45. In accordance with those results, we observed significant differences between communities (Fig. 3).

P. multocida can be found co-infecting with B. bronchiseptica in the swine upper respiratory tract, so phenotypic susceptibility of both pathogens should be taken into account in the antimicrobial treatment44,47. P. multocida isolates presented more overall susceptibility to the tested antimicrobials than other pathogens (Fig. 1), although nearly all isolates were phenotypically resistant to clindamycin and tylosin-tartrate. This elevated susceptibility status for most isolates is in agreement with the majority of published work35. Drugs commonly used to treat the disease caused by this bacteria are ampicillin, ceftiofur, enrofloxacin, and tulathromycin47, for which the majority of isolates were susceptible (Fig. 3).

There are no international criteria for G. parasuis clinical breakpoints, so the comparison between studies is challenging35. In Dayao et al., isolates of G. parasuis had higher MIC values for ampicillin, penicillin and tetracycline48. Similarly, in this study, the majority of large communities showed elevated resistance to penicillin.

The phenotypic resistance results obtained here for S. suis are in agreement with other studies. In general, low resistance was observed for beta-lactams, and high resistance was observed for tetracyclines35,36,49. In several countries, high levels of resistance to macrolides and lincosamides have been reported49, although, in this study, some communities were highly susceptible to these drugs. Moreover, S. suis was highly susceptible to florfenicol in the study farms, an observation also reported in European and North American countries35.

Escherichia coli was recently considered, alongside Brachyspira hyodysenteriae, to be the most critical antimicrobial-resistant bacteria in the European Union for swine35. In a temporal study conducted in the USA, they found high levels of resistance to tetracyclines and ampicillin, as well as moderate levels of resistance to gentamicin, neomycin, and sulfonamides50. Similar to the present study, Jiang et al. reported elevated AMR in E. coli isolates from the intestinal contents or fecal samples of diarrheic piglets from 15 states of the United States, where all isolates were found to be resistant to clindamycin, penicillin, tiamulin, and tilmicosin. In addition, they observed high resistance to ampicillin, chlortetracycline, oxytetracycline and sulphadimethoxine51. It is also worth noting that Gram-negative bacteria, for instance, E. coli, possess relative intrinsic resistance to some antimicrobial classes such as macrolides52, which is consistent with our data.

In vitro resistance to multiple drugs is often observed for species of the genus Salmonella. Therefore, the assessment of AMR prior to the onset of a therapeutic solution is essential53. Multidrug resistance bacteria constitute a problem for effective clinical treatment of infections. Therefore, for pathogens that have developed resistance to several drugs, knowing the historical resistance of a population can serve as a useful guide to assessing therapeutic options in the early stages of an outbreak53,54.

Given the importance of the AMR problem, developing new strategies is paramount to properly address and mitigate it in livestock husbandry in the context of the One Health approach. The methodology, analysis, and visualization presented here are highly relevant, not only to guide more effective clinical actions in a given farm, but to enhance antimicrobial stewardship and decrease the spread of resistance of key antimicrobials across farms, as exemplified in the discussion. This approach can be easily expanded and enhanced to incorporate animal, farm and system features to better understand their impact on AMR patterns and further support the implementation of preventive measures to reduce AMR spread. We have also highlighted the potential key role of high-betweenness farms in the different networks that connect communities. The characteristics of these farms should be analyzed in depth for their implication in AMR spread.