TL;DR
This paper introduces a unified approach, the SD Algorithm, to simultaneously segment web pages and remove noise, specifically for user-generated content like blogs and forums. It leverages both visual and non-visual features to robustly identify informative text and classify page types, outperforming previous methods by handling diverse web page structures and templates.
What Problem Does This Paper Address?
The internet is awash with user-generated content (UGC) from social media, blogs, and forums. Extracting meaningful information from this content is crucial for applications like sentiment analysis, summarization, and market research. However, web pages are notoriously messy, containing not just core content but also ads, navigation elements, and other "noise." Effectively segmenting these pages to isolate the valuable textual parts and then filtering out the noise is a significant challenge. Existing methods often tackle segmentation and noise removal separately, or they rely on specific page templates and are evaluated on limited, homogeneous datasets. This limits their generalizability to the diverse landscape of the web. The authors aim to bridge this gap by proposing a unified, robust method that handles both tasks simultaneously and is evaluated on a diverse set of UGC web pages.
Methods
The core of the proposed solution is the SD Algorithm, which operates on an enhanced representation of a web page's Document Object Model (DOM) called the SD-Tree. This tree augments the standard DOM structure with features related to visual presentation (CSS classes, styles) and content density.
The algorithm proceeds in several key steps:
- SD-Tree Construction: It builds a DOM tree and then calculates various features for each node, including:
- DOM Structure: Standard tree representation.
- HTML Element Tags: Categorizing tags as "strong" (structural) or "weak" (content-bearing).
- Density: Number of characters within a node.
- Distance from Max Density Region: How "far" a region is from the densest region.
- Distance from Root: The depth of the node in the DOM tree.
- Ancestor Title: Presence and level of titles (e.g.,
<h1>) in ancestor nodes. - Cardinality: Number of child nodes.
- Content of HTML nodes: Text content for keyword matching.
- CSS Classes and Individual Styles: Visual cues from styling.
- Valid Node Calculation (Pruning): Nodes are filtered based on a minimum density threshold (T2) and CSS properties that indicate invisibility.
- Merging Valid Nodes: Adjacent valid nodes are merged into larger "regions," prioritizing merging into parent nodes with "strong" tags.
- Feature Calculation for Regions: The features are recalculated for these merged regions.
- Candidate Article Region Detection: Regions are identified as potential article content based on their distance from the max density region and a threshold (T1).
- Final Decision & Page Type Classification: The algorithm then determines the article region and classifies the page type (Article, Article with Comments, or Multiple Areas) by analyzing the candidate regions, their proximity to ancestor titles, and scanning for comment-related keywords.
Datasets
The authors introduce two novel annotated corpora for evaluation:
- SD Diverse Dataset: A human-annotated corpus of 600 web pages acquired from News, Blogs, and Discussions categories via Google search. It boasts high diversity with 521 distinct domains and various topics, templates, and page types (200 each of Articles, Articles with Comments, and Multiple areas).
- SD Non-Diverse Dataset: A larger, automatically annotated corpus of 5400 web pages from 10 domains (selected from the SD Diverse dataset). This dataset is less diverse in terms of domains but provides a larger scale for evaluation.
Key Insights and Ideas
- Unified Approach is Key: Treating segmentation and noise removal as a single, integrated problem, rather than sequential steps, leads to more robust results.
- Diversity Matters in Evaluation: The paper strongly argues that evaluating algorithms on diverse datasets (many domains, templates) is crucial. High performance on homogeneous datasets can be misleading and doesn't guarantee real-world applicability. Their proposed "Diversity" metric quantifies this.
- Visual and Non-Visual Features are Complementary: Combining DOM structure, text content, and visual styling (CSS) provides a richer understanding of page layout and content importance than relying on any single feature set.
- Learning Thresholds from Small Subsets: The optimal statistical thresholds (T1 and T2) can be effectively learned from a small fraction (around 20%) of the data, making the method adaptable without requiring massive training sets.
- Informative Region Extraction is More Robust than Classification: The authors observe that their algorithm is better at accurately extracting the desired content regions than at precisely classifying the page type, likely due to overlapping features between page categories.
Key Results
- High Accuracy in Informative Region Extraction: The SD Algorithm achieved high "Region Accuracy Metric" (RAmetric) scores, reaching up to 0.91 on the SD Non-Diverse dataset and 0.82 on the SD Diverse dataset for individual classes. For the 3-class setting (unknown page type), RAmetric was 78% and 89% respectively.
- Competitive Classification Performance: The algorithm achieved competitive classification accuracy, with precision scores around 0.74-0.87 for individual classes and 0.74-0.89 for the 3-class setting on the SD Diverse dataset.
- Optimal Thresholds Identified: Experiments showed that optimal T1 values vary by page type (lower for articles, higher for multiple areas), while T2 values around 20 proved effective across classes.
- Learning Rate Stabilization: Average precision stabilized after using approximately 40 data points for learning the optimal parameters.
Limitations and Future Work
- Limitations:
- The paper acknowledges that the classification of "Multiple areas" can be less effective on diverse datasets due to template variations.
- While the RAmetric is a good measure, it's noted that the precision of classification can be lower than the accuracy of region extraction due to feature overlap between classes.
- Future Work:
- The authors plan to integrate the SD Algorithm into an opinion retrieval and mining system.
- They suggest exploring machine learning algorithms for more advanced merging of regions and for characterizing different web page types.
Summary updated