Figures
Abstract
Traditional models of opinion dynamics provide a simplified framework for understanding human behavior in basic social scenarios. However, with the rise of complex communication patterns and heterogeneous social interactions in modern networks, more comprehensive and nuanced models are required. This paper proposes an extended opinion dynamics model that integrates individual heterogeneity, homophily-based influence weights, and multi-layer influence propagation mechanisms. First, we modify the classical Hegselmann-Krause (HK) model by introducing a selective influence neighborhood based on individuals’ social network connections, thereby capturing the structure-dependent nature of interpersonal interactions. Second, drawing on the theory of homophily, we model the influence weights between individuals according to their opinion similarity and domain-specific attributes. Third, we incorporate a k-layer influence propagation mechanism to simulate indirect social influence through extended paths in the network. Finally, simulation experiments and validation using real-world data demonstrate that the proposed model effectively captures the dynamics of opinion evolution and enhances predictive accuracy in complex social systems.
Citation: Liu F, Liu Z, Zhou H (2025) An extended Hegselmann-Krause model incorporating agent heterogeneity and influence propagation. PLoS One 20(10): e0334059. https://doi.org/10.1371/journal.pone.0334059
Editor: Krzysztof Malarz, AGH University of Krakow: Akademia Gorniczo-Hutnicza im Stanislawa Staszica w Krakowie, POLAND
Received: June 11, 2025; Accepted: September 22, 2025; Published: October 28, 2025
Copyright: © 2025 Liu et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data are within the manuscript and its Supporting Information files.
Funding: The author(s) received no specific funding for this work.
Competing interests: The authors have declared that no competing interests exist.
1 Introduction
Opinions, as individuals’ perceptions and judgments of various matters, are pervasive in social interactions, public discourse, and decision-making processes [1]. These opinions are shaped not only by personal experience and cognitive structures but also evolve dynamically through social interactions and media dissemination, exhibiting complex behavioral patterns [2,3]. To investigate the mechanisms underlying opinion formation and evolution, researchers have proposed a range of opinion dynamics models—such as the Hegselmann-Krause (HK) model [4], the Deffuant-Weisbuch (DW) model [5], and the DeGroot model [6]—which incorporate factors including individual attributes, social influence, and network topology. Building on these foundations, subsequent studies have examined the roles of different types of individuals, such as opinion leaders [7], stubborn agents [8], and heterogeneous participants [9], highlighting their critical influence in the opinion dissemination process. Moreover, empirical and theoretical analyses have demonstrated that network connectivity [10] and structural characteristics [11] significantly affect the speed of opinion diffusion and the emergence of consensus.
With the rapid development of the Internet and social media, the modes and speed of information dissemination have undergone profound changes. Interactions among individuals have become increasingly frequent, resulting in unprecedented complexity in the evolution of public opinion [12,13]. For example, on social networking platforms, users can express their views through actions such as liking, commenting, and sharing, and are simultaneously influenced by others’ opinions during these interactions, forming a dynamic and nonlinear opinion evolution process [14,15]. At the same time, the wider reach and accelerated speed of information dissemination have led to high uncertainty and diversity in the diffusion and transformation of opinions [16–19]. Moreover, the spread of misinformation and extreme viewpoints has further complicated the public opinion landscape, posing new challenges to social governance and public decision-making [20]. Consequently, traditional opinion dynamics models often fall short in capturing the complex and evolving mechanisms of opinion formation and propagation in today’s diversified and dynamic social environments.
To address the aforementioned challenges, researchers have extended and refined classical opinion dynamics models from multiple perspectives [21–23]. On one hand, scholars have enhanced the classification of agents within the models to explore the roles of different types of individuals in the opinion dissemination process. For instance, Zhang [24] investigated how the emotions of opinion leaders influence the stock prices of peer companies, and further analyzed the patterns and mechanisms of emotional transmission in online forums. Xin [25], from a systems and control perspective, examined the dynamic behaviors of agents with stubborn characteristics in social networks. In addition, some studies have categorized individuals based on emotional types [26] or opinion types [27], enabling more fine-grained analysis. On the other hand, research has increasingly focused on the structural characteristics of networks among individuals. Features such as the small-world effect and scale-free property of complex networks have been shown to significantly facilitate rapid information dissemination, especially when the network includes a few highly connected “hub” nodes capable of broadcasting information across the entire system [28]. Moreover, community structures also play a critical role in shaping intra-group opinion consensus. Studies have found that different communities often form localized agreements, which may exacerbate inter-group polarization and hinder the formation of global consensus [29]. Meanwhile, factors such as individual interaction patterns [30], group heterogeneity [31], and modes of information transmission [32] also exert substantial influence on the process of opinion evolution. These findings reveal the diverse mechanisms through which network structures regulate group opinion dynamics, laying a solid theoretical foundation for understanding information dissemination, public opinion formation, and collective decision-making in networked environments.
In the current context, research on opinion dynamics reveals two prominent and closely interconnected trends. First, with the continuous diversification and enrichment of information dissemination channels, individuals’ modes of expressing opinions have expanded beyond traditional face-to-face communication to encompass various platforms such as social media, online forums, and instant messaging. This multiplicity of expression channels significantly complicates the opinion evolution process, necessitating careful consideration of domain-specific characteristics and homogeneity effects within groups. Second, interpersonal influence is no longer confined to direct neighbors or acquaintances but propagates through complex multi-path structures within social networks, where influence can be amplified or attenuated at successive stages. This non-local influence mechanism endows opinion dynamics with multi-scale and multi-level temporal features, greatly increasing the complexity and realism of modeling efforts. Motivated by these trends, this paper proposes a comprehensive opinion dynamics model integrating individual heterogeneity, domain attributes, and multi-path influence propagation mechanisms, aiming to establish a more systematic and precise theoretical framework. This model seeks to uncover the intrinsic patterns and dynamic mechanisms of opinion evolution in the information era, thereby providing effective analytical tools and theoretical support for understanding the formation of complex public opinions in modern society.
The remainder of the paper is organized as follows: In Sect 2, some fundamental definitions and preliminaries are briefly reviewed. In Sect 3, the opinion evolution model is proposed by considering both individual heterogeneity and influence propagation. In Sect 4, simulation experiments and sensitivity analyses are conducted to verify the effectiveness and validity of the proposed model. Finally, in Sect 5, some significant conclusions are drawn, and potential directions for future research are discussed.
2 Preliminaries
In this section, some related definitions are briefly reviewed, which are necessary to the subsequent analysis.
2.1 Social network
The social network is modeled as a time-varying graph, capturing the structural relationships among agents. The components of the network are defined as follows:
(1) Network structure: At time , the social network is represented by a directed graph
, where:
denotes the set of N agents (nodes);
denotes the set of edges at time t, representing the connections among agents.
(2) Link matrix: Let denote the link matrix of the network at time t, where
for all
, ensuring no self-links between agents. For
and
, the entries of
are defined as:
(3) Neighborhood: For each agent , the influence neighborhood at time t is defined as
, the set of agents to whom
has outgoing links at time t. Thus, the collection of all individual neighborhoods can be denoted by
.
2.2 Barabási-Albert model
The Barabási–Albert (BA) model generates scale-free networks characterized by a power-law degree distribution, capturing key structural features of real-world complex systems. The network construction process is defined as follows:
(1) Initial Condition: Begin with a fully connected network of m0 nodes, denoted by , where
, and each node
satisfies
.
(2) Network Growth: At each discrete time step , a new node
is added to the network. This new node forms m links to existing nodes, where
.
(3) Preferential Attachment: The probability P(i) that the new node connects to an existing node is proportional to the degree
at time t–1, and is given by:
(4) Iteration: Repeat steps 2 and 3 until the network reaches the target size of N nodes, i.e., until , where N>m0.
2.3 Classic HK model
The Hegselmann–Krause (HK) model is a foundational framework in opinion dynamics, describing how agents iteratively adjust their opinions through local interactions constrained by bounded confidence.
Let denote the set of agents. Each agent
holds a continuous opinion
at discrete time
. The bounded confidence parameter is denoted by
, representing the maximum opinion difference tolerated for interaction. At time step t + 1, the opinion of agent
is updated as:
where: is the set of agents whose opinions lie within the confidence interval of
,
denotes the influence weight of agent
on agent
, subject to the normalization constraint
.
To better reflect selective influence in structured social networks, an additional constraint is imposed: agent must also belong to the connection neighborhood
of agent
, as defined in the social network model. Under this modification, the opinion update rule becomes:
This extension captures the fact that social influence is often constrained by relational boundaries, and agents are more likely to be affected by peers within their interaction neighborhood or social circle.
3 A novel HK model incorporating agent heterogeneity and influence propagation
3.1 Modeling influence weights based on agent heterogeneity
According to homophily theory, individuals are more likely to form connections with others who share similar characteristics. Based on this principle, we propose that the influence exerted by agent on agent
depends jointly on their opinion similarity and the similarity of their personal attributes. Formally, the influence score
is defined as follows:
(1) If , then
(2) If , then
Here, represents the influence score of agent
on agent
, while
are the weights assigned to opinion similarity and attribute similarity, subject to
. The notation
measures the difference between agents: the opinion difference is defined as
, and the attribute difference is given by:
where denotes the number of dimensions in the attribute vector
, and
is the value of the d-th feature of agent
at time t. The function
ensures that the influence score remains within the interval [0,1], avoiding extreme values.
It is worth noting that and
represent the relative importance of opinion similarity and attribute similarity. In particular, when
the influence score depends solely on opinion similarity, whereas when
, it is determined entirely by attribute similarity. This formulation not only ensures a normalized balance between the two factors but also provides a flexible mechanism for analyzing how different weight settings affect the overall influence dynamics in subsequent sections.
Subsequently, the normalized influence weight is computed as:
This formulation captures both homophily in social networks and the bounded rationality of opinion updates, ensuring that agents are selectively influenced by both like-minded and socially proximate peers.
Example 1: Consider the social network in Fig 1.
At time t, agent is influenced by other agents, assuming the opinion threshold
. To illustrate the computation of
, suppose each agent is characterized by two personal attributes. Let the attribute vectors be C1 = [0.4,0.6] and C2 = [0.2,0.3], and let the opinion values be
,
. Assume the weight vector is
. Then, the influence score of agent
on agent
at time t is given by:
Similarly, . Since
,
. After that, the weight that other agents influences
can be calculated as:
3.2 Influence transmission mechanism in networked interactions
Social network analysis explores the relationships among social entities and has found broad applications across numerous disciplines. Building upon this, researchers have extended the analysis to focus on influence networks, which capture how individuals affect each other’s judgments or decisions. At a given time step, the influence exerted by one agent on another can be quantified and represented through an influence matrix, as illustrated in Fig 2.
A growing trend in information aggregation highlights that individuals increasingly rely on mutual influence to determine the weight of others’ opinions before integrating them. Wu [33] emphasizes that interpersonal influence should be considered during agent interactions and proposes the concept of dual influence propagation: the influence between two individuals can be shaped indirectly through their mutual connections. To more effectively synthesize the opinions of experts, we extend this idea by incorporating multi-step influence propagation, allowing indirect influence paths to be systematically integrated into the aggregation process.
At time t, suppose the direct influence among agents is represented by a matrix G, defined as:
where (for
) represents the degree to which agent
is directly influenced by agent
at time t. If there is no influence relationship between
and
, then
.
To mitigate the disparity in evaluation intensity among agents, the direct influence matrix G is normalized to obtain a stochastic matrix , defined by:
After normalization, , and the matrix powers satisfy
.
When computing the indirect influence between and
, two scenarios are considered:
- (i) If
and
are connected via a common intermediary
, their indirect influence is measured by
.
- (ii) Even if there is no direct path via
(i.e., rik = 0 or rkj = 0), the product
still represents the potential indirect influence via
.
Based on this, the dual-layer indirect influence between and
is given by
, which corresponds to the square of the influence matrix:
. As a result, triple-layer influence is expressed as
, and in general, the k-layer influence matrix is Rk.
The comprehensive influence matrix aggregating all indirect influence across infinite layers can then be computed as:
Remark 1: Since this section focuses on the analysis at a specific time step, we define the direct influence matrix G and the stochastic matrix without explicitly attaching time indices, for notational simplicity. It should be noted, however, that both matrices are inherently time-dependent in the dynamic process.
3.3 Construction of the opinion evolution model
Building upon the extended HK framework and the influence propagation mechanism, we now formulate a comprehensive opinion evolution model that integrates both agent heterogeneity and multi-layer influence dynamics. This model reflects how individuals update their opinions not only based on direct interactions constrained by bounded confidence and social connectivity, but also by incorporating indirect influence pathways embedded in the network structure. The updated opinion dynamics equation is defined as follows:
where defines the set of neighbors influencing individual i at time t, requiring not only opinion similarity but also belonging to a specific social circle,
incorporates both individual heterogeneity and the transmissibility of influence.The overall flow of this modeling framework is illustrated in Fig 3
To quantitatively assess the dynamics and outcomes of the proposed opinion evolution model, we introduce two key metrics: Convergence Speed and Clustering Number. These indicators reflect the efficiency of opinion stabilization and the degree of polarization or consensus formation in the population, respectively.
(1) Convergence Speed (Tc): This metric measures the time required for the system to reach a stable state, defined as the minimum time step t such that for all individuals i, their opinions satisfy for any
. The parameter K ensures stability over consecutive time steps, and the inclusion of δ effectively overcomes the influence of oscillating nodes.
(2) Clustering Number (Nc): This metric quantifies the number of distinct opinion clusters formed upon convergence. Each cluster Ck consists of individuals i who satisfy for any two individuals i and j within the cluster, where ε is the clustering threshold.
It is worth noting that ε also functions as the interaction threshold, whereby individuals within this range are regarded as belonging to the same cluster. Consequently, the same parameter value is deliberately employed for both the bounded confidence and clustering definitions.
These two metrics provide an interpretable means to assess both the efficiency and the diversity of opinion formation under various influence mechanisms and model parameters.
4 Numerical simulation
This section conducts numerical simulations to evaluate the effectiveness and realism of the proposed opinion dynamics model. In addition, the simulations explore how changes in the initial opinion mean, initial opinion variance, weight allocation, and group size affect the speed of opinion convergence and the resulting number of opinion clusters.
4.1 Simulation algorithm and parameter settings
Since BA model effectively captures the scale-free nature of real-world social networks, it is employed to simulate the structural topology of agent interactions. Therefore, the overall algorithm is shown in Algorithm 1. Detailed parameter settings are shown in Table 1, unless otherwise specified.
Algorithm 1. Hegselmann-Krause model with agent heterogeneity and influence propagation.
4.2 Comparative simulation analysis
To verify the effectiveness of the proposed model and to justify the choice of the BA network topology, we performed comparative simulations under identical initial conditions, as shown in Fig 4.
As illustrated in Fig 4, several observations can be made: (1) Regardless of the network structure, the traditional HK model reaches consensus relatively quickly and typically produces a small number of opinion clusters compared with the proposed model. (2) When comparing the BA network with the fully connected network, opinion evolution in both models appears simpler in the fully connected topology. (3) The proposed model leads to the emergence of multiple opinion clusters rather than a single unified consensus, along with persistent opinion oscillations in some agents.
These results can be explained by both the design of the proposed model and the structural characteristics of the BA network. First, the proposed model incorporates agent heterogeneity and an influence propagation mechanism, which together capture more realistic social interaction patterns. Heterogeneity in individual attributes leads to differentiated trust and influence weights, reducing the uniformity of interactions and slowing down consensus formation. The multi-step influence propagation allows opinions to spread indirectly through neighbor chains, enabling minority viewpoints to persist and increasing the likelihood of multiple clusters. Dynamic and adaptive influence weights further contribute to the emergence of oscillatory behaviors in some agents.
Second, the choice of the BA network is motivated by its scale-free property and heterogeneous degree distribution, which resemble many real-world social networks. High-degree hubs play a disproportionate role in opinion transmission, accelerating convergence in certain clusters while preserving diversity in others. In contrast, the fully connected network represents a homogeneous interaction structure, leading to simpler and more uniform opinion dynamics. Together, these findings validate the effectiveness of the proposed model in capturing complex opinion evolution and demonstrate the suitability of the BA topology for simulating realistic social influence processes.
Beyond theoretical explanations, these dynamics also resonate with real-world opinion formation patterns. For instance, in today’s increasingly complex and digitally mediated social environments, public discourse on issues such as data privacy, algorithmic fairness, or public health interventions often leads to persistent opinion fragmentation. Individuals are embedded in overlapping online and offline networks, where interactions are shaped not only by opinion proximity but also by shared professional, cultural, or ideological affiliations. The proposed model, by incorporating both social connectivity and attribute-based similarity, effectively captures this layered interaction structure. As such, it offers a more realistic account of how diverse and polarized opinion clusters emerge and persist in modern, interconnected societies.
4.3 Scalability analysis
To further investigate the robustness and generalizability of the proposed opinion dynamics model, this section explores how the system responds to changes in key structural and cognitive parameters. Specifically, we examine the influence of the initial opinion mean and variance on the evolution and final distribution of opinions. Moreover, we analyze how simultaneous variations in these two factors affect convergence behavior and opinion clustering. Finally, we assess the impact of group size on the model’s scalability, focusing on how larger populations shape the speed of convergence and the resulting diversity of opinion clusters.
(1) Impact of initial opinion mean on the evolution
This part investigates the impact of the initial opinion mean on the opinion evolution process while keeping other model parameters fixed. By setting the initial mean values to 0.1, 0.3, 0.5, 0.7, and 0.9, we conducted 100 independent simulation runs for each scenario. The convergence speed and the resulting number of opinion clusters were recorded and analyzed. Fig 5 illustrates how varying the initial opinion mean influences the dynamics of the model, highlighting the critical role of the initial opinion distribution center in shaping collective opinion formation.
From Fig 5, it can be observed that the overall convergence speed of the group remains relatively stable and does not significantly vary with changes in the initial opinion mean. In contrast, the number of opinion clusters exhibits a non-monotonic trend: it initially increases as the initial opinion mean rises, reaches a peak, and then decreases.
This phenomenon can be explained by the interplay between opinion distribution and influence dynamics. When the initial opinion mean is low or high (close to the boundaries of the opinion spectrum), opinions tend to be more concentrated near one end, facilitating faster local consensus and fewer clusters. Conversely, when the initial mean is around the middle range, opinions are more evenly spread across the spectrum, increasing the likelihood of multiple distinct subgroups forming and thus more clusters emerge.
A real-world example of this dynamic can be seen in political landscapes. In a society where public opinion is largely polarized towards one extreme (e.g., strong support or opposition to a policy), consensus within groups may form quickly with limited fragmentation. However, when public opinion is more balanced and moderate across the spectrum, social groups often fragment into multiple factions with diverse viewpoints, reflecting a richer pluralism.
(2) Impact of initial opinion variance on the evolution
In this part, we investigate the impact of the initial opinion variance on opinion evolution. Keeping all other parameters fixed, the initial opinion variance is varied across values of 0.1, 0.3, 0.5, 0.7, and 0.9. For each setting, 100 independent simulation runs are conducted to ensure the robustness of the results. This analysis aims to reveal how the diversity of initial opinions influences the convergence dynamics and the formation of opinion clusters. The results are shown in Fig 6.
Based on Fig 6, it can be observed that the convergence time exhibits a non-monotonic pattern with respect to the initial opinion variance. Specifically, as the variance increases, the convergence time initially rises, indicating slower opinion alignment due to increased opinion dispersion. However, beyond a certain threshold, the convergence time tends to stabilize within a relatively narrow range, showing only mild fluctuations.Interestingly, the variability in convergence time is more pronounced under moderate levels of opinion variance. This suggests that in such conditions, the system’s dynamics are more sensitive to stochastic factors, possibly due to the presence of multiple competing clusters that form and dissolve during the opinion evolution process. In contrast, both low and high variance scenarios show more stable and consistent convergence behaviors across simulation runs.
In comparison, the number of opinion clusters demonstrates a more abrupt, threshold-like transition. When the initial variance is low, most simulations converge to a small number of clusters, often close to consensus. However, once the variance exceeds a critical point, the number of clusters increases sharply and then remains relatively stable despite further increases in variance. This jump indicates a phase transition in the system’s ability to maintain connected opinion groups, beyond which fragmentation becomes dominant and persistent.
This behavior can be explained as follows: when initial opinions are very close to each other (low variance), agents tend to quickly reach consensus, resulting in fewer opinion clusters and longer convergence due to subtle opinion differences needing time to harmonize. As variance increases moderately, the opinion landscape becomes more diverse, creating distinct subgroups that rapidly form stable clusters, which reduces overall convergence time but increases cluster count sharply. However, when variance grows too large, some extreme opinions become isolated or less influential, causing fewer but more stable clusters, which slightly reduces the number of clusters.
(3) Joint effects of initial opinion mean and variance
In this section, we investigate the joint effects of the initial opinion mean and variance on opinion evolution. By systematically varying both the mean and variance from 0.1 to 0.9 with a step size of 0.1, while keeping other parameters fixed, we conducted 100 independent simulation runs for each parameter combination. The average convergence time and the average number of opinion clusters across these runs are visualized through heatmaps, which are summarized in the heatmaps shown in Fig 7, illustrating the combined influence of initial opinion mean and variance on convergence time and cluster formation.
Darker colors indicate higher values.
As shown in Fig 7, the convergence time and the number of opinion clusters exhibit distinct patterns under varying combinations of initial opinion mean and variance. Regarding convergence speed, the initial opinion mean has little overall impact. Instead, the convergence time is primarily influenced by the variance. Across all levels of the mean, the longest convergence times occur when the variance is around 0.2. As the variance increases beyond this point, the convergence time decreases—a pattern consistent with the results observed in Fig 7.
In terms of the number of clusters, the influence of the opinion mean becomes more noticeable under low-variance conditions. Specifically, when the variance is small, moderate opinion means (e.g., around 0.5) tend to lead to a higher number of clusters, while both low and high means are associated with fewer clusters. Conversely, under high-variance conditions, changes in the opinion mean have only a marginal effect on the number of clusters.
These patterns can be interpreted through the lens of initial diversity and centrality in opinion distribution. When the variance is low, individuals’ initial opinions are closely clustered around the mean, making the position of that mean more influential in determining how opinions diverge or converge. For example, if the mean is near an extreme, most individuals already share a relatively similar opinion, facilitating faster consensus and resulting in fewer clusters. However, when the mean is moderate, even a low variance can still result in more ideological spread, which in turn increases the chances of fragmentation into multiple clusters. In contrast, under high-variance conditions, opinions are widely dispersed regardless of the mean. This inherent diversity leads to multiple stable clusters forming early in the dynamics, making the specific value of the mean less relevant.
(4) Impact of group size on opinion evolution
In this section, we investigate how the size of the population influences the evolution of opinions. To this end, we vary the number of individuals in the system by setting , while keeping all other parameters fixed. For each group size, the experiment is repeated 100 times to obtain statistically robust results regarding convergence speed and the number of resulting opinion clusters. The results are shown in Fig 8.
From Fig 8, it can be find that as group size increases, both the convergence time and the number of opinion clusters exhibit a clear upward trend. This phenomenon can be attributed to the growing complexity of interactions within larger populations. In a larger group, individuals are exposed to a more diverse set of opinions, which makes it more difficult for the system to reach consensus quickly. Additionally, the increased diversity creates more opportunities for stable subgroups to form, leading to a higher number of opinion clusters.
(5) Impact of weight allocation on opinion evolution
In this section, we examine the effect of the weight allocation between opinion similarity (w1) and attribute similarity (w2) on the evolution of opinions. Specifically, w1 is set to 0, 0.2, 0.4, 0.6, 0.8, and 1, with . Notably, when w1 = 1, the model reduces to the traditional HK model implemented on a BA network. The resulting opinion dynamics and clustering patterns for these parameter settings are presented in Fig 9, illustrating how different emphases on opinion similarity influence the collective behavior of the system.
As illustrated in Fig 9, increasing the weight w1 assigned to opinion similarity results in both the cluster count and the convergence time remaining largely stable, showing only a marginal downward trend. Notably, when w1 = 1, both quantities experience a pronounced decline, indicating a faster convergence and fewer final opinion clusters.
This phenomenon can be explained by the role of attribute similarity in the interaction dynamics. When w1<1, both opinion similarity and attribute similarity jointly determine the interaction strength between individuals. Agents update their opinions by considering not only the opinions of others but also their inherent attributes, which maintains diverse interactions and stabilizes the overall convergence behavior. In contrast, when w1 = 1, attribute similarity is completely ignored, and interactions depend solely on opinion proximity. In this extreme case, the model effectively reduces to the traditional HK model on a BA network, resulting in accelerated consensus formation and a reduced number of clusters. This highlights the crucial role of attribute similarity in sustaining opinion diversity and prolonging convergence time.
4.4 Model validation through real-world data
To validate the effectiveness of the proposed model, we conduct an empirical analysis using a publicly available Douban movie rating dataset from Kaggle. Since different network sizes can naturally lead to different numbers of opinion clusters, a direct comparison of cluster counts lacks a consistent reference framework. Therefore, this section only analyzes the convergence time. For experimental analysis. The dataset is represented as
where xi denotes the i-th movie, represents the set of reviews for movie xi,
represents the set of review timestamps for movie xi, and
denotes the star ratings for each review. The data processing procedure is as follows:
- For each movie, we calculate its average daily rating count, defined as the total number of ratings divided by the number of days on which ratings were received. This value is used as the input parameter N in the simulation model.
- For movie xi at time t, we compute the proportion of ratings with star levels 1–5:
- We plot the time series of the proportions for each star level and calculate the convergence time, defined as
In accordance with the settings described earlier, the threshold is set toand the continuous stability window is set to K = 5.
A comparison between the real and simulated convergence times is presented in Figs 10 and 11 .
As illustrated in Fig 10, the overall trend of the simulated convergence times aligns well with the empirical data, particularly in scenarios involving smaller population sizes. This consistency indicates that the model effectively captures the underlying dynamics governing opinion convergence when the number of participants is limited. However, as the group size increases, the simulation results exhibit greater variability and begin to deviate from the real-world observations. This discrepancy suggests potential limitations of the model in accurately replicating convergence behavior in large-scale social interactions. One possible explanation for this deviation lies in the inherent complexity of high-participation discussion environments, which may involve a broader spectrum of opinions, heightened emotional dynamics, and more heterogeneous interaction patterns.
Additionally, the empirical data—sourced from movie-related discussions—may be influenced by contextual factors such as varying engagement intensity, sentiment volatility, and uneven temporal distribution of comments. These factors introduce noise and structural irregularities that the current modeling framework may not fully account for, thereby affecting its predictive accuracy in such settings. However, compared to traditional models, the current model demonstrates higher predictive accuracy. Traditional models struggle to capture the complex social interaction effects characteristic of the information age. In contrast, our model, through more refined simulation and optimization, can more accurately reflect the impact of varying participant numbers on convergence time, especially under lower participation scenarios where its predictions align more closely with empirical data. Therefore, despite certain limitations, the proposed model significantly outperforms conventional approaches, offering greater predictive precision and better adaptability.
To further verify that the observed differences are indeed due to the proposed model rather than arbitrary parameter settings, we conducted a sensitivity analysis of the traditional H-K model. In the current setting, the bounded confidence threshold ε is fixed at 0.1. Increasing this threshold produces two clear effects: (1) in terms of convergence speed, more individuals adjust their opinions in each time step, leading to faster convergence; and (2) in terms of clustering, the number of clusters decreases and cannot increase. Therefore, only decreasing ε could potentially make the H-K results closer to the empirical observations. We have conducted additional simulations with , as shown in Fig 12.
The results indicate that, although the convergence time becomes closer to the empirical data (Tc>20), some differences still remain. Only further adjustments could make the convergence time fully align with the real data. Moreover, we note that existing literature rarely employs such a low threshold value. Taken together, these findings confirm that adjusting ε alone is insufficient to replicate the observed clustering patterns or to achieve better correspondence with the empirical results. This suggests that the differences we observe are not simply a consequence of parameter manipulation in the original HK model, but rather stem from the extended features introduced in our model.
5 Conclusion
In response to the growing complexity of opinion dissemination in the information era, this paper proposed an enhanced opinion dynamics model that integrates individual heterogeneity, domain-specific attributes, and multi-layer influence propagation mechanisms. Building upon the classical HK framework, the model redefines the influence neighborhood by incorporating the structural constraints of social networks, thereby capturing selective interaction behaviors observed in real-world settings. Additionally, influence weights are modeled based on homophily theory to reflect the tendency of individuals to be influenced by others with similar views. The model further introduces a k-layer influence propagation mechanism to simulate the non-local transmission of information within social networks. Simulation results demonstrate that the initial mean and variance of opinions significantly impact convergence speed and clustering structure. Moreover, as group size increases, convergence time tends to grow while opinion fragmentation becomes more pronounced. In environments characterized by high heterogeneity or deep influence transmission paths, oscillatory behaviors and coexistence of local stable states frequently emerge, indicating that opinion evolution is jointly driven by individual-level traits and network-level influence dynamics.
These findings offer both theoretical insights and practical value for applications such as public opinion modeling, crisis response, and online community governance. Understanding the mechanisms and trajectories of opinion evolution can facilitate real-time monitoring and predictive assessment of collective sentiment. However, several limitations remain. First, the current model does not incorporate psychological factors such as emotional fluctuations or information credibility, which may constrain its applicability to certain real-world scenarios. Second, the validation is based primarily on synthetic data and a limited set of empirical observations, requiring further testing across larger and more diverse datasets. Future work will focus on three key directions: (1) incorporating dynamic emotional and cognitive processes to enhance behavioral realism; (2) integrating heterogeneous, multi-source social data to improve model calibration and predictive capacity; and (3) developing policy-oriented simulation tools to explore how targeted interventions—such as modifying information pathways or restructuring social ties—can be employed to guide opinion trajectories and support evidence-based decision-making.
References
- 1. Shen Y, Ma X, Xu Z, Herrera-Viedma E, Maresova P, Zhan J. Opinion evolution and dynamic trust-driven consensus model in large-scale group decision-making under incomplete information. Inform Sci. 2024;657:119925.
- 2. Liu Q, Yao Y, Jia M, Li H, Pan Q. An opinion evolution model for online social networks considering higher-order interactions. PLoS One. 2025;20(4):e0321718. pmid:40238753
- 3. Wang Y, Li X, Cheng Y, Du Y, Huang D, Chen X, et al. A neural probabilistic bounded confidence model for opinion dynamics on social networks. Expert Syst Applic. 2024;247:123315.
- 4. Hegselmann R, Krause U. Opinion dynamics and bounded confidence: Models, analysis, and simulation. J Artif Soc Syst. 2002;5(3):1–24.
- 5. Deffuant G, Neau D, Amblard F, Weisbuch G. Mixing beliefs among interacting agents. Advs Complex Syst. 2000;03(01n04):87–98.
- 6. Degroot MH. Reaching a consensus. J Am Stat Assoc. 1974;69(345):118–21.
- 7. Jiang C, Shen J, Zhu JM. Identification and analysis of opinion leader groups in social media misinformation dissemination under the “echo chamber” effect. Manag Rev. 2024;36(3):132–45.
- 8. Feng Z, Du Y, Huang J, Li X, Chen X, Xie C. An evolutionary approach to extreme individual impact opinions based on time sunk costs. IDA. 2024;28(6):1627–46.
- 9. Nie RX, Qiu JH, Liu YM. Multi-dimensional characteristic analysis of stakeholders in social network-based flood disaster public opinion. J Natural Disasters. 2025;34(1):14–28.
- 10. Chen X, Liang H, Zhang Y, Wu Y. Consensus manipulation in social network group decision making with value-based opinion evolution. Inform Sci. 2023;647:119441.
- 11. Gong C, Du Y, Li X, Chen X, Li X, Wang Y, et al. Structural hole-based approach to control public opinion in a social network. Eng Applic Artif Intell. 2020;93:103690.
- 12. Wang P, Liu P, Li Y, Teng F, Pedrycz W. Trust exploration- and leadership incubation- based opinion dynamics model for social network group decision-making: A quantum theory perspective. Eur J Operat Res. 2024;317(1):156–70.
- 13. Yao C, Yu L, Wang D, Fu D. Multi-layer topic interaction propagation model and simulation considering opinion interaction. Knowl Inf Syst. 2024;67(3):2571–94.
- 14. Zhou Z, Zhou X, Chen Y, Qi H. Evolution of online public opinions on major accidents: Implications for post-accident response based on social media network. Expert Syst Applic. 2024;235:121307.
- 15.
Yang F, Bai J, Li L. Sociologically-informed graph neural network for opinion prediction. In: Proc. ICASSP 2025 –IEEE international conference on acoustics, speech and signal processing (ICASSP); 2025. p. 1–5.
- 16. Wu W, Hou H, Zhu S, Liu Q, Wei R, He H, et al. An intelligent power grid emergency allocation technology considering secondary disaster and public opinion under typhoon disaster. Appl Energy. 2024;353:122038.
- 17. Li M, Zhang J, Jin L. Opinion dynamics considering matthew effect with time delays and stubborn influence in social networks. IEEE Trans Netw Sci Eng. 2025;12(4):3082–92.
- 18. Tong Q, Xu X, Zhang J, et al. Public opinion propagation prediction model based on dynamic time-weighted rényi entropy and graph neural network. Entropy 2025;27(5):516.
- 19. Xing Y, Johansson KH. Transient behavior of gossip opinion dynamics with community structure. Automatica. 2024;164:111627.
- 20. Xiong Y. Public opinion inversion from the perspective of information ecology, in Proc. 2025 5th international conference on public management and intelligent society (PMIS 2025), Springer Nature. vol. 13; 2025. p. 189.
- 21.
Kumar AS, Josić K, Bauch CT, et al. From opinion polarization to climate action: A social-climate model of the opinion spectrum. arXiv preprint arXiv:2503.04689; 2025.
- 22. Martins ACR. Agent mental models and bayesian rules as a tool to create opinion dynamics models. Physics. 2024;6(3):1013–31.
- 23. Yang W, Zhang L, Shi J, Lin R. New consensus reaching process with minimum adjustment and feedback mechanism for large-scale group decision making problems under social trust networks. Eng Applic Artif Intell. 2024;133:108230.
- 24. Zhang K, Li HH, Fang LB, et al. Emotional transmission of opinion leaders in online forums: Evidence based on stock price changes of companies in the same group. J Syst Manag. 2024;33(06):1570–83.
- 25.
Xin S. Study on the opinion dynamics of multiple agents with stubborn attributes. Hangzhou Dianzi University; 2024.
- 26. Yin F, Xia X, Zhang X, Zhang M, Lv J, Wu J. Modelling the dynamic emotional information propagation and guiding the public sentiment in the Chinese Sina-microblog. Appl Math Comput. 2021;396:125884.
- 27. Zhuang WY, Xu YZ, Ren JL. Study on public opinion evolution and governance of emergencies: Based on an extended multi-opinion competition evolution model. J Inform. 2021;40(12):127–34.
- 28. Barabási A-L. Scale-free networks: A decade and beyond. Science. 2009;325(5939):412–3. pmid:19628854
- 29. Peng Y, Zhao Y, Hu J. On the role of community structure in evolution of opinion formation: A new bounded confidence opinion dynamics. Inform Sci. 2023;621:672–90.
- 30. Liu JY, Li H, Gu Y, et al. Research on the construction of an online group opinion evolution mechanism model based on higher-order interaction networks. J Inform Theory Practice. 2025;48(02):124–35.
- 31. Ye GH, Liang B, Wang YJ, et al. Simulation study on multi-subject collaborative governance of online public opinion. J Inform Sci. 2025:1–21.
- 32. Zhou QY, Wu ZB, Xu JP. Public opinion evolution considering echo chambers in small-world scale-free networks. J Syst Eng. 2023;38(06):753–64.
- 33. Wu J, Chiclana F, Fujita H, Herrera-Viedma E. A visual interaction consensus model for social network group decision making with trust propagation. Knowl-Based Syst. 2017;122:39–50.