You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This report analyzes structural and dependency anomalies across multiple abstraction levels of the codebase.
The goal is to detect potential software quality, design, and architecture issues using graph-based features, anomaly detection (Isolation Forest), and SHAP explainability.
Feature dependence plots for top important features
Local SHAP Force Plots – Top 6 Anomalies
Cluster Diagnostics
Cluster Membership Strength
Cluster Noise and Bridge Analysis
Feature Distributions
Feature Relationships
Graph Visualizations
TopBottleneck Graph Visualizations
TopAuthority Graph Visualizations
TopBridge Graph Visualizations
--
3. Plot Interpretation Guide
Purpose: Understand each plot type’s diagnostic value. Applies to: All abstraction levels.
Plot Type
Best For
Adds
Why It Matters
Anomalies Plot
Seeing distribution of anomalies in clusters
Context of clusters & outliers
Reveals isolation or cluster-based anomalies
SHAP Summary
Global feature importance
Feature impact direction
Shows what drives anomalies overall
Local SHAP Force
Explaining a single anomaly
Feature contribution breakdown
Useful for debugging individual outliers
Dependence Plot
Understanding feature influence
Interaction visualization
Reveals nonlinear feature effects
Cluster Metrics
Cluster characteristics
Radius, cohesion, noise
Identifies weakly defined or noisy clusters
3. Plot Interpretation Guide
Purpose: Provide a direct mapping between all plots and their analytical meaning. Scope: Applies to plots for Java Type, Java Package, and similar abstraction levels. Format: Each entry includes Best for, Adds, and Why, matching the in-report descriptions.
📘 Main Plots
Plot
Description
Best For
Adds
Why
Anomalies
2D visualization of all code units showing clusters and anomalies.
Understanding the overall distribution of anomalies in relation to clusters.
Context of clusters and outliers.
Reveals whether anomalies are isolated or cluster-based, guiding investigation.
Global Feature Importance (SHAP Summary)
Mean absolute SHAP values ranking global feature impact.
Global understanding of which features drive anomalies.
Direction of impact (color shows feature value).
Explains which metrics consistently influence anomaly detection.
Feature Dependence (Top Important Features)
Shows how specific feature values affect anomaly score; colored by interacting feature.
Understanding how one feature affects anomaly scores.
Color shows feature interaction or threshold effect.
Helps identify nonlinear relationships and feature interactions.
📙 Local Explanation Plots
Plot
Description
Best For
Adds
Why
Local SHAP Force Plots (Top Anomalies 1–6)
Visualizes per-feature contributions to each anomaly’s score relative to baseline.
Explaining why a specific data point is anomalous.
Visual breakdown of how each feature contributes to anomaly score.
Enables debugging of individual anomalies through transparent explanation.
📗 Cluster-Level Diagnostic Plots
Plot
Description
Best For
Adds
Why
Clusters – Overall
Shows all clusters since they all fit into one plot.
Gaining a holistic view of cluster characteristics in the dataset.
An overall summary of how all clusters are distributed and their key metrics.
Understanding the general structure and properties of clusters can help identify patterns and potential anomalies in the data.
Clusters – Largest Average Radius
Ranks clusters by mean distance of members from their centroid.
Getting an overview of clusters that are more dispersed.
Identifies clusters with internal variability.
Large average radius suggests less cohesion and potential outliers.
Clusters – Largest Max Radius
Shows clusters with the farthest outlying member.
Identifying clusters that have members farthest from cluster center.
Highlights clusters containing extreme outliers.
Indicates clusters that may contain hidden anomalies.
Clusters – Largest Size
Displays cluster membership counts.
Understanding which clusters contain the most code units.
Provides sense of frequency of code structures.
Large clusters may represent common design patterns; small clusters are specialized.
Cluster Probabilities
Distribution of HDBSCAN membership probabilities.
Detecting code units that don’t strongly belong to any cluster.
Measures how well-defined clusters are.
Highlights noisy or weakly defined clusters.
📒 Cluster Noise & Bridge Diagnostics
Plot
Description
Best For
Adds
Why
Cluster Noise – Highly Central and Popular
Central nodes that don’t fit any cluster.
Detecting code units that are highly connected but anomalous.
Reveals influential but misfit nodes.
Such nodes may be key but unstable integration points.
Cluster Noise – Poorly Integrated Bridges
Nodes connecting clusters but weakly integrated.
Detecting code units that bridge modules unusually.
Identifies cross-cutting or leaking dependencies.
May reveal architectural boundary violations.
Cluster Noise – Role Inverted Bridges
Bridges with reversed structural roles compared to expected topology.
Detecting code units connecting clusters in unexpected ways.
Highlights anomalous coupling roles.
Indicates architectural inversion or misuse of interfaces.
📙 Feature Distribution & Relationship Plots
Plot
Description
Best For
Adds
Why
Betweenness Centrality Distribution
Histogram of betweenness values.
Identifying code units that act as structural bridges.
Insight into flow of dependency control.
Detects potential bottlenecks or single points of failure.
Clustering Coefficient Distribution
Histogram of local clustering coefficients.
Identifying modularity and local cohesion.
Insight into how tightly code units cluster.
Reveals how cohesive or isolated different regions of the graph are.
PageRank – ArticleRank Difference Distribution
Distribution of PageRank - ArticleRank.
Identifying influential nodes beyond local connectivity.
Shows imbalance between influence and popularity.
Highlights components with disproportionate architectural impact.
Clustering Coefficient vs PageRank
Scatterplot comparing local clustering to global influence.
Identifying relationships between cohesion and centrality.
Visualizes trade-offs between modularity and reach.
Helps spot code units that are both locally and globally critical.
Displays the most connected node (e.g., #1 Hub) at the center, surrounded by its direct dependencies. Incoming nodes show who is dependent on the hub.
Understanding highly connected code units or components that serve as central integrators.
Highlights nodes that act as major dependency aggregators.
Helps detect over-centralized modules or potential architectural bottlenecks.
Top Bottleneck Graph Visualization
Shows the node with the highest betweenness centrality (e.g., #1 Bottleneck) and its local neighborhood.
Identifying code units that control information or dependency flow.
Emphasizes nodes that mediate critical paths between modules.
Reveals single points of failure or routing constraints in dependency flow.
Top Authority Graph Visualization
Centers the most authoritative node (e.g., #1 Authority) with incoming and outgoing links from dependent nodes with high PageRank and emphasized PageRank to ArticleRank difference.
Detecting key knowledge or functionality providers.
Highlights components with high centrality.
Indicates structural or semantic “sources of truth” in the system.
Top Bridge Graph Visualization
Displays a node acting as a structural bridge between clusters (e.g., #1 Bridge) and its cross-cluster connections based on node embeddings encoding the Graph structure.
Understanding cross-cutting dependencies between modules.
Useful for spotting boundary leaks or undesired coupling between subsystems.
Top Outlier Graph Visualization
Centers an unusual or isolated node (e.g., #1 Outlier) that can hardly be assigned to a cluster and visualizes its sparse or unexpected dependency patterns.
Identifying structurally or behaviorally anomalous nodes.
Highlights nodes with rare or unexpected connection patterns.
Helps pinpoint code units that deviate from established dependency norms.
Note:
In all Graph Visualizations, the central node represents the selected Top Archetype (e.g., Top 1 Hub).