Navigation objects extraction for better content structure understanding

Kui Zhao, Bangpeng Li, Zilun Peng, Jiajun Bu, Can WangWI 2017 · DOI

TL;DR

Traditional web structure mining focuses on extracting static navigation menus, completely missing the dynamic, personalized navigation lists (like "recommended articles" or "top stories") central to Web 2.0. This paper introduces a template-independent, two-step approach that clusters hyperlinks using a clever DOM-tree distance proxy and classifies them via an SVM. The result is a highly robust system capable of mapping both static and dynamic content architectures with minimal training data.

What Problem Does This Paper Address?

To understand the information architecture of a website, algorithms traditionally look for static navigation menus. However, modern Web 2.0 sites (social networks, e-commerce portals, dynamic news blogs) rely heavily on page-specific, dynamic, and personalized navigation elements.

Existing information extraction methods fall short in two major ways:

  1. Template-dependent methods are highly accurate but brittle; they break the moment a website updates its layout.
  2. Vision-based methods (which analyze visual rendering layout) are computationally expensive and often fail to capture multi-level or interactive menus that require user clicks to render.

The authors tackle the challenge of extracting both static navigation menus and dynamic navigation lists in a template-independent, computationally efficient manner.

Methods

The authors propose a two-step pipeline: Hyperlink Clustering followed by Block Classification.

[Webpage HTML] ➔ [DOM-Tree Indexing] ➔ [CHD-HD Clustering] ➔ [SVM Classifier] ➔ [Navigation Objects]

Instead of rendering the page to find visual coordinates, the authors use a smart proxy called DOM-tree Distance (DD). They traverse the webpage's DOM-tree using a depth-first search (DFS) and index each node sequentially. The distance between two hyperlinks is simply the absolute difference between their DFS indices.

They introduce two algorithm variants:

  • CHD (Clustering Hyperlinks on DOM-tree): A recursive, bottom-up algorithm that merges neighboring sibling hyperlink blocks if their distance is below an automatically calculated threshold ($gt$).
  • CHD-HD: An advanced version that adds Hyperlink Density (HD) into the mix—defined as the ratio of anchor text words to total words in a block. Sibling blocks are only merged if the resulting block maintains a high hyperlink density.

Once the hyperlinks are clustered into distinct blocks, an Support Vector Machine (SVM) with a Radial Basis Function (RBF) kernel classifies each block as either a Navigation Object (Menu/List) or Non-Navigation Object (Content/Ads/Copyright). The SVM relies on just three clean features:

  • The total number of hyperlinks in the block.
  • The mean length of the anchor text (navigation links are usually short).
  • The variance of the anchor text length (navigation links are usually uniform and well-aligned).

Datasets

The approach was evaluated on real-world webpages from two established sources:

  • CleanEval: A highly diverse dataset specifically chosen because it contains many web 2.0 pages with dynamic, page-dependent navigation elements.
  • MSS (Massive Sentiment/Structure): Separated into two sub-groups:
  • The Big 5: Five highly popular, complex news sites (Tribune, Freep, NY Post, Suntimes, Techweb).
  • The Myriad 40: 40 international English-language sites of varying sizes and design sophistication.

Key Insights and Ideas

  • DOM-Tree Indexing as a Visual Proxy: The "aha moment" of the paper is proving that DFS indexing order on a DOM-tree perfectly preserves the relative spatial layout of sibling nodes. This eliminates the need for expensive browser rendering engines to calculate Euclidean distances.
  • The Uniformity of Navigation: Navigation objects inherently possess low variance in text length and high hyperlink density. By focusing on these structural properties rather than specific HTML tags (like <table> or <div>), the method remains completely agnostic to underlying web development technologies.
  • Extreme Data Efficiency: The classification model generalizes remarkably well. The authors demonstrated that training the SVM on a mere 5% of the dataset yields performance virtually identical to training it on 100%.

Key Results

The authors compared their clustering approach against standard algorithms like Agglomerative Clustering, DBSCAN, K-Means, and Spectral Clustering using Adjusted Rand Index (ARI) and Adjusted Mutual Information (AMI).

  • Clustering Performance: The CHD-HD algorithm achieved the highest average scores across all datasets, with an average ARI of 0.882 and AMI of 0.850. It significantly outperformed K-Means and Spectral Clustering, which struggled because pre-defining the correct number of clusters ($K$) on diverse webpages is notoriously difficult.
  • Extraction Accuracy: When evaluating the final extraction (Clustering + SVM Classification), the system achieved stellar $F_1$-scores across the board:
  • CleanEval (Most Diverse): $F_1$-score of 0.834
    • Myriad 40: $F_1$-score of 0.942
    • News Sites (Big 5): $F_1$-scores ranging from 0.886 to 0.983

Limitations and Future Work

While the system performs exceptionally well on structured news and corporate sites, its performance drops slightly on the highly chaotic pages within the CleanEval dataset ($F_1$ of 0.834 vs ~0.95 on news sites).

To push this research further, the authors suggest:

  1. Incorporating more features into the clustering phase without sacrificing the simplicity and speed of the algorithm.
  2. Moving toward a completely unsupervised model that requires zero training data.
  3. Integrating macro-level web graph data (such as link cliques across the entire website) to better understand content hierarchies.

Summary updated

BibTeX
@inproceedings{zhao2017navigation,
  author = {Kui Zhao and Bangpeng Li and Zilun Peng and Jiajun Bu and Can Wang},
  title = {{Navigation objects extraction for better content structure understanding}},
  booktitle = {WI},
  year = {2017},
  doi = {10.1145/3106426.3106437},
}
Figure