Elamur Research

An Investigation on Topic Maps Based Document Classification with Unbalance Classes

Paper · 2015 · Maher Baloch and Muhammad Rafi

Summary

A document classifier can learn the common categories well and still struggle with the ones that have the fewest examples. Maher Baloch and Muhammad Rafi investigate that problem in text classification using messages from News20. Their experiment brings together decisions about what a classifier gets to see. They represent each message with a topic map, a structured description of the subjects and relationships identified in the text. They also vary how frequently the document categories occur in the samples used for classification. The study asks how well classifiers handle unequal class sizes in this setting and what happens when the samples are balanced.

The authors use Open Calais to extract information from individual messages and Wandora to build the topic maps. In the paper’s example, the extractor recognizes Mario as a company. The map can record that typed connection even after the rest of the sentence is left behind. The researchers serialize the maps as XML, assemble a labeled dataset and convert the resulting records into vectors for classification in Weka. They report results for Naïve Bayes and a support vector machine using an imbalanced sample, a random sample described as balanced, an undersampled sample that removes majority examples, and an oversampled sample that repeats minority examples.

The results are reported as confusion matrices, which show where the classifiers assign documents to the intended category and where they confuse categories. In the imbalanced experiment, the support vector machine has 0 on the diagonal for each of the sparsely represented categories, C1 and C3. Naïve Bayes has 2 on each of those diagonal cells, although its matrix also contains a discrepancy with the sample description. The authors judge the balanced results acceptable overall. The matrices still show differences between the classifiers. In the undersampled experiment, for instance, the C3 diagonal count is 4 for Naïve Bayes and 1 for the support vector machine.

The experiments give a small-scale view of how label frequency and classification errors can interact when documents are represented by topic maps. Their strongest evidence is at the level of particular cells and settings. Some sample descriptions are internally inconsistent, and the reported results leave training and evaluation details unresolved. The abstract also announces comparisons with word and phrase representations and with other imbalance remedies. The results section provides confusion matrices for the sampling experiments, leaving the relative value of the topic-map representation itself undetermined.

Deep dive: An Investigation on Topic Maps Based Document Classification with Unbalance Classes

How topic maps represent News20 documents for classification, and what small experiments show about the effects of balancing class sizes. · about 30 minutes to read

The problem and its context

What a classifier learns from a collection

Document classification is the task of assigning a document to a pre-defined category or set of categories. The paper places it among the operations that make growing collections of electronic text easier to organize and use. It mentions sources such as email, blogs, news and social media, and situates classification alongside retrieval and summarization. The first practical requirement is a way to describe the individual document. The second is a rule for turning that description into a category decision. Class imbalance enters because the documents available to learn those decisions can be distributed unevenly across the categories.

The paper distinguishes supervised, unsupervised and semisupervised approaches. In the supervised case, documents have accompanying labels, and the learning procedure uses those labeled examples to make later category decisions. In the unsupervised case, the collection comes without those pre-defined labels. The semisupervised case combines limited labeled material with unlabeled material, which the learner can also use. The authors emphasize the effort involved in building a labeled collection large enough for supervised learning. Obtaining more examples is a practical issue, especially when the category that needs more examples is already uncommon.

The News20 experiments in this paper are supervised. A class label is attached to each document record used in the classification procedure. That label defines the decision the learner is supposed to reproduce. The topic map serves a different purpose. It supplies a description of the message from which the learner may be able to predict the label. A topic discovered in a particular document can be an ingredient in that prediction. The newsgroup category is the target against which the prediction is checked. Keeping those roles separate makes the experimental question easier to follow.

An imbalanced collection has a majority class with many examples and a minority class with fewer. The distinction is relative to the task and the sample. In an experiment with several categories, there can be several relatively frequent categories and several relatively infrequent ones. The problem the authors emphasize is that the abundant examples have more opportunities to shape the classifier. The learner can then make satisfactory decisions for frequently represented categories while confusing messages from sparsely represented categories with those it has seen more often.

The paper illustrates the extreme with a 99:1 split in a collection of 100 documents. Those figures belong to its discussion of the problem, separate from the News20 experiments. The example makes the difficulty concrete. The frequent class offers many examples of what documents with that label may look like. The rare class offers very little basis for deciding which of its features are characteristic and which just happened to appear in the available document. The example also explains why looking only at how many documents a system gets right can hide a failure that becomes apparent after the results are broken down by category.

The authors connect class imbalance to applications including fraud detection, email filtering and medical diagnosis. Their medical example gives a second reason to care about the rare category. Missing a case and raising a false alarm can have very different consequences. A false alarm may lead to more examination, while a missed case can delay attention to an actual illness. The paper uses that distinction to explain the motivation for assigning unequal costs to errors. The News20 experiments have a different purpose. They examine how classifiers distribute their decisions when the supply of examples per category changes.

Changing the data, the features or the learner

The review describes approaches that intervene at different points in the classification process. An external approach changes the training data before the learner sees it. An internal approach changes the learning procedure to reduce its sensitivity to unequal class sizes. This distinction helps explain why class imbalance can be investigated with existing classifiers. A researcher can change which examples reach a classifier while retaining the same learning algorithm. It also explains why balancing a sample is only one possible intervention.

Undersampling reduces the number of examples from an abundant category. Oversampling increases the representation of a scarce category. The paper’s discussion includes both repetition and procedures that generate artificial examples. Repeating a document changes how often a learner sees its features, while generating an example changes the set of inputs it sees. The authors also discuss schemes that combine undersampling with oversampling, and distinguish random sampling from selection guided by a rule. Each strategy may change the distribution of influence on the learner, with different consequences for which documents and features are available.

The paper reviews cost-sensitive learning as another way to account for a minority category. Here the consequence assigned to a wrong decision can depend on which category was missed or predicted. A cost matrix is a way to record those consequences for different kinds of mistakes. The authors point out that values for such a matrix may be difficult to obtain. Class frequencies can be read from a labeled collection, whereas the consequences of errors may depend on information about the application. A preference for identifying rare cases does not by itself determine the cost of every possible mistake.

Feature selection operates on the description of an example. In the paper’s account, its purpose is to keep useful predictors and reduce the amount of information the learner has to process. Under imbalance, a measure of usefulness applied to the collection as a whole may favor features characteristic of the frequent categories. The authors describe prior work that selects features for positive and negative examples separately and then combines the selections. The motivation is to give each side a chance to contribute useful features before they compete within the same input representation.

The review also discusses ensembles, in which several learners contribute to the decision. The authors relate ensemble performance to the accuracy of the individual learners and to how much their errors overlap. Changing the data used by each learner is one way to produce variety in an ensemble. The paper further mentions one-class learning among the algorithmic responses to imbalance and describes earlier semisupervised work on sentiment classification that generated balanced initial training sets by undersampling. These approaches illustrate the range of prior responses the authors considered before focusing their reported experiments on sampling and document representation.

Why describe a document with a topic map

A bag of words describes a document in terms of the words it contains. A phrase representation uses groups of words as units. A topic map starts with another kind of description, organized around subjects and the relationships asserted about them. The paper presents topic maps as a standard for knowledge representation and as a means of making information easier to find. Its review includes prior work on organizing documents through topic maps. In the present study, the intended use of the representation is to supply features for supervised category decisions.

The appeal is that a message can contain a great deal of text while offering only a compact set of subject-related information. If a classifier can use that information, a representation centered on subjects could make useful distinctions easier to see. The same choice raises a question for minority categories. Information discarded during extraction might include the words or phrases that distinguish a rare label, while retaining a typed entity could preserve a signal that isolated words express less clearly. The authors motivated the topic-map approach through its potential for semantic structure and compactness. Its value for imbalance depends on what the extraction retains and how the retained information is presented to the classifier.

The method, step by step

The classification task

The paper begins with a formal description of the items and categories involved in classification. It denotes the document collection as follows.

D = {d₁, d₂, d₃, …, dₙ}

D is the whole document collection. The letter d denotes an individual document, and its subscript identifies that document in the collection. n is the number of documents. The braces enclose the members of the set, the commas separate them, the ellipsis stands for the intervening members, and the equals sign defines D as that set.

The categories are represented separately.

C = {c₁, c₂, c₃, …, cₖ}

C is the set of categories. The letter c denotes a category, with a subscript to distinguish it from the others. k is the number of categories. The braces enclose the categories, the commas separate them, the ellipsis continues the enumeration, and the equals sign defines C as the resulting set.

The paper uses a mapping to express the overall assignment.

D → C

D is the document set and C is the category set. The arrow indicates the direction of assignment, from documents to categories. The authors allow for one or more categories per document in their general discussion. In the reported experiments, the confusion matrices use discrete category codes, and each cell describes some portion of the assignments between a pair of categories. The arrow sketches the classification objective. The experimental description gives the sequence of transformations used to produce its inputs.

From individual messages to subjects and relationships

The procedure starts by selecting News20 documents and processing messages individually. The experiment description refers to random selection from five classifications for topic-map generation. The reported matrices use the category codes C1, C2, C3 and C4. The paper leaves the relation between these descriptions unspecified. Within the data procedure, the individual message is the unit sent for extraction, converted into a structured record and eventually paired with its supervised category label.

From News20 messages to document classification

The steps in order.

From News20 messages to document classificationStep 1: Select labeled News20 documents1. Select labeled News20 documentsStep 2: Extract entities and relationships with Open Calais2. Extract entities and relationships with Open CalaisStep 3: Build document-level topic maps in Wandora3. Build document-level topic maps in WandoraStep 4: Serialize the maps as XML4. Serialize the maps as XMLStep 5: Consolidate records and attach class labels5. Consolidate records and attach class labelsStep 6: Convert the records into vectors6. Convert the records into vectorsStep 7: Run the classifiers in Weka7. Run the classifiers in Weka

Wandora is the application the authors use to generate maps. It offers extraction facilities, and they use its integration with Open Calais to analyze the text of each message. Open Calais is described as a service that can identify entities in unstructured documents and find relations involving them. The paper lists kinds of information the service looks for, including people, companies, places, countries, positions and email addresses. The extraction step supplies the units that the topic map can organize. Wandora is responsible for representing and working with those units as a map.

This stage includes named entity recognition, the identification and typing of named items in the text. The paper also describes Open Calais as looking for facts and events. In its worked example, only a named entity is returned. The distinction is useful for understanding the data procedure. The extractor looks for several kinds of structure, but the map created for a particular message depends on what that analysis yields. A successful tag for one name can become the basis for a map even when the service returns no other tags for the message.

The authors describe the text processing as discarding stop words and other material considered irrelevant to the extracted objects. Stop words are words commonly removed when a representation is intended to concentrate on content-bearing units. Their account also mentions stemming, the reduction of word forms to a shared stem, but gives an unclear description of how it was applied. The operations are easiest to understand by looking at the worked example. The original message has a sentence with wording about performance and a record. The structured output the authors trace consists of the detected name and its assigned type.

In that example, Open Calais identifies Mario and assigns it the type Company. The authors explain that the service looks for the relevant entity and provides the company association for the extracted name. They then show that association as the basis for the topic-map representation of the document. The important detail is what can pass through this step. The name survives together with an interpretation of what kind of thing it names. The clauses surrounding the name supply context to the extraction, while the account of the resulting map focuses on the typed entity.

This example also separates an extractor’s category from a classifier’s category. Company describes the kind of entity Open Calais has identified. A label such as C1 describes the document category against which the final assignment is evaluated. If a feature derived from a company name is useful for the supervised task, its usefulness comes from patterns in labeled documents. A service that returns Company has completed the extraction decision shown in the example. The determination of the document’s newsgroup category still belongs to the downstream classifier.

How the map is organized

In the paper’s account, topic maps organize information around topics, occurrences and associations. A topic stands for a subject that can be described. Occurrences record material tied to the topic. Associations express relationships involving topics. The authors also use the term reification for establishing the connection between a subject and its representation as a topic so that characteristics of the subject can be recorded. This vocabulary explains the intent behind the format. A map keeps track of the subjects being represented and the ways the extracted information relates to them.

The distinction between topics and occurrences is particularly relevant to the authors’ description of map construction. They use the identified subject as a topic and describe linking objects as occurrences associated with the subject. In the example, the Company and Mario connection gives a concrete piece of structured information to represent. The paper illustrates this with a diagram and describes the Wandora representation as a hypergraph. The account establishes the subject-centered organization of the map. It does not specify an exhaustive rule for assigning every possible extractor return to a topic, occurrence or association.

The authors indicate that a map can represent a single topic or several topics. The example is simple enough to follow with only the company association. A message for which the extractor identifies several subjects could supply more material for organization in the map. This is where the representation can differ from retaining a flat collection of text fragments. It has places for subjects and connections between them. The eventual classifier, however, receives whatever information the subsequent conversion preserves as features. The map’s capacity and the vector’s contents are distinct aspects of the method.

The authors describe the maps as compact because they can represent selected subject information rather than carry the entire original document. The company example makes that claim understandable as a property of the representation. A record of the extracted name and its type takes the place of a longer passage in the part of the pipeline the authors show. Compactness and predictive usefulness are different properties. How easily one can store a subject-centered description says little by itself about how well the features derived from it distinguish two newsgroup categories.

How a map becomes a classifier input

The next step translates the topic maps into XML. XML represents structured information as text, allowing the authors to process the maps using records that can be read and combined outside the graphical representation. The paper describes doing this on a subject and document basis. In practical terms, the result of topic extraction for a document can be handled as a textual record and associated with that document’s class. The XML step is an intermediate representation in the reported pipeline.

The authors write a function to combine the XML material into a CSV file. CSV organizes records into fields separated by commas. They describe attaching a classification label to each document record. This is the point where the workflow joins the map-based description to the supervised target. A document’s candidate predictors come from its processed representation, while its label comes from the classification assigned to it for the experiment. The learner can then relate features and labels across records.

A further function turns the CSV into vector form. A vector is an ordered collection of feature values for a document. Representing documents this way allows the learner to compare examples through a common set of input fields. The paper identifies Attribute-Relation File Format, or ARFF, as the input form accepted by Weka for training and testing. Its description is clearest about the overall progression from XML to consolidated records to vectors for Weka. Details such as the exact feature names, value encodings and treatment of absent features are left unspecified.

This conversion matters to the interpretation of the experiment. The paper studies classification with features derived from topic maps, and the final learners work from vectors. A relationship present in the map would be useful to a learner only to the extent that the encoding carries information about it into the vector. For instance, preserving that a name was tagged as a company would give the classifier a different input from preserving the name alone. The example establishes that the extraction and map can express the typed association. The experiment description does not resolve how that association is represented in the final input.

How the authors vary the sample

The authors apply sampling to address the unequal class frequencies. One setting keeps a deliberately unequal distribution. Another uses a random selection described as balanced across the categories. In the undersampling experiment, the authors describe dropping excess examples from larger categories. In the oversampling experiment, they describe repeating examples from smaller categories. In both interventions, the target is a more even representation of classes in the data used for classification.

The procedures change the examples available to the learners in different ways. With undersampling, a majority document that is removed can no longer contribute its vector to learning. The remaining majority examples have to supply enough information to characterize their categories. With oversampling by repetition, the underlying text of a minority example remains the same while its vector appears more often in the data. This gives the example more presence in the learning procedure, with the amount of distinctive information still limited by the original selection of minority documents.

Weka is used to run the Naïve Bayes and support vector machine classifiers. Naïve Bayes makes a category decision using probabilities associated with the available features and categories. A support vector machine learns a boundary for separating examples represented in feature space. Both receive document features and produce category assignments. Running the classifiers on the reported sampling settings lets the authors display where their assignments differ under the same named conditions. The paper does not give enough implementation detail to reconstruct their training settings or explain a particular prediction from the fitted classifier.

Experiments and results

Corpus, comparison and measure

The paper describes News20 as a collection partitioned into 20 newsgroups, with 1,000 documents per group. Those figures characterize the corpus as the authors introduce it. The reported experiments operate on small selections drawn from it. Each results setting is described through its selection or balancing procedure, and the tables refer to groups by codes. This means that the imbalanced condition comes from how some of the available documents are selected for the experiment. The corpus description on its own does not imply that those experimental selections have equal support by category.

The reported comparison crosses the named sampling settings with the choice of classifier. Naïve Bayes and the support vector machine serve as comparison learners within the topic-map workflow. A separate representational comparison would hold the sampling condition and other relevant settings fixed while changing the documents’ features. The abstract announces a comparison with bags of words and phrases and mentions cost adjustment and cluster-based sampling. The numerical results presented in the paper are the confusion matrices for the imbalanced, random, undersampled and oversampled samples.

A confusion matrix records counts at the intersections of actual and assigned categories. An entry on the diagonal is a category match, so the diagonal can be used to compare the numbers of reported correct assignments for particular labels. An entry away from the diagonal signals that one category was confused with another. To identify the direction of that error, the reader needs to know whether the reference category is on the row axis or the column axis. The paper gives category headings with little explanation of the convention. In the imbalanced results, the support vector machine’s columns fit the stated distribution, which suggests reading the rows as assigned categories there.

The matrix format is useful when some labels are scarce. A correct count for a frequent category can coexist with every example from a rare category being assigned elsewhere. Looking at the diagonal by label makes that visible. Raw diagonal counts are also affected by how many examples are available for each category, so a larger count does not automatically indicate a better rate. The paper reports the counts directly and gives a qualitative judgment about the settings. It does not report aggregate accuracy, class-specific rates or a named train and test split for the matrices.

Imbalanced sample

The authors describe selecting 24 News20 documents for the imbalanced setting, with 2 examples apiece for the smaller classes, C1 and C3, and 10 apiece for the larger classes, C2 and C4. The support vector machine has 0 in the C1 and C3 diagonal cells. Its C2 diagonal entry is 10 and its C4 diagonal entry is 4. The contrast across the labels is the clearest illustration in the paper of the authors’ concern about minority categories.

Under the column-as-reference reading, the support vector machine’s row for C2 contains 2 entries in the C1 column and 2 in the C3 column. That reading makes C2 the assigned label for the reported examples from the smaller categories. The same row has 6 in the C4 column. The matrix therefore shows confusion involving a larger category as well. Majority status does not make C4 uniformly easy to recognize. It does give the classifier more opportunities to classify its examples, which is one reason to examine the distribution of mistakes in addition to the diagonal.

Naïve Bayes shows 2 on the diagonal for C1, 10 for C2, 2 for C3 and 8 for C4 in the imbalanced condition. The rows labeled C4 and C2 also contain off-diagonal counts. In particular, the C4 row has an 8 under C3, even though the sample description gives 2 examples for C3. That cell and the C3 diagonal entry cannot both describe distinct assignments for the stated number of C3 documents under the same column-as-reference reading. Treating the diagonal as printed is possible, but using that matrix to reconstruct minority-class recognition rates would require resolving the discrepancy.

Reported C1 correct-assignment count on the imbalanced News20 sample

Naïve Bayes has the higher reported diagonal count for this minority category.

Reported C1 correct-assignment count on the imbalanced News20 sampleSupport vector machine: 0Support vector machine0Naïve Bayes (this paper): 2Naïve Bayes (this paper)2
The numbers
System or settingCorrect assignments
Support vector machine0
Naïve Bayes (this paper)2

The chart compares the printed values for a single category under the same named setting. The C3 diagonal shows the same reported values as C1, but its Naïve Bayes column raises the support problem just described. For C2, both classifiers have a diagonal entry of 10. For C4, Naïve Bayes has 8 and the support vector machine has 4. The result that can be stated most directly is that the support vector machine records no correct assignments for the smaller categories in this experiment. The Naïve Bayes entries make the blanket claim that both classifiers simply ignore minority classes too broad.

Random balanced sample

The authors describe drawing 24 random documents in this condition, with 6 per reported category. The Naïve Bayes diagonal has 6 for C1, 6 for C2, 5 for C3 and 6 for C4. The row labeled C1 also has 1 in the C3 column. On the reading suggested by the earlier support vector machine matrix, this is a C3 document assigned to C1. The rest of the displayed off-diagonal entries for Naïve Bayes in this setting are 0.

For the support vector machine, the reported diagonal entries visible for C1, C2 and C3 are 6, 6 and 1. Its C1 row contains 5 in the C3 column. The C4 heading is separated from the rest of the table, and corresponding values for the column are missing from the paper’s table as presented. The available cells allow a comparison for C3, where Naïve Bayes shows more correct assignments. They leave the support vector machine’s C4 outcome and its overall result unresolved.

This condition makes visible two aspects of balancing. The support vector machine gets 6 correct for C1 on the reported diagonal, after recording 0 for that class in the described imbalanced sample. It still shows only 1 correct for C3, the other small category in the imbalanced setup. The equal category counts in the random setting therefore coexist with unequal recognition across categories. Also, the authors describe another draw of documents for this condition. The comparison changes the sample as well as the category frequencies, so the matrices cannot establish how the same messages would have fared under both distributions.

Reported C3 correct-assignment count on the balanced random News20 sample

Naïve Bayes records more correct assignments for C3 than the support vector machine.

Reported C3 correct-assignment count on the balanced random News20 sampleSupport vector machine: 1Support vector machine1Naïve Bayes (this paper): 5Naïve Bayes (this paper)5
The numbers
System or settingCorrect assignments
Support vector machine1
Naïve Bayes (this paper)5

The chart isolates a cell that is visible in both matrices for the balanced random selection. The difference is informative even with the incomplete support vector machine table because the same C3 count is available for each classifier. It illustrates how category-specific the results remain once the stated support is equal. C1 and C2 have matching diagonal counts between the classifiers where the table is readable. C3 is where the reported assignments diverge.

Undersampling

The undersampling account starts from 30 randomly selected News20 documents. It describes removing excess documents from C2 and C4 to bring the category counts into balance. The preceding description names C4 in both the 5-document and the 10-document groups and leaves C3 out of the list. The sampling rule is clear at the level of the intervention, which reduces the majority classes. The identities and original sizes of all classes cannot be recovered confidently from that wording.

The resulting Naïve Bayes matrix gives diagonal counts of 5 for C1, 5 for C2, 4 for C3 and 5 for C4. Its C1 row contains 1 in the C3 column. The support vector machine has diagonal counts of 5 for C1, 5 for C2, 1 for C3 and 4 for C4. In its C1 row, 4 appears in the C3 column and 1 in the C4 column. Interpreting the columns as the reference labels, both classifiers show C3 documents being assigned to C1, with more of those assignments in the support vector machine matrix.

The result shows that two classifiers can differ on the same reported class after an attempt to remove the numerical advantage of the larger categories. For Naïve Bayes, the diagonal remains strong across the displayed categories, with the exception involving C3. The support vector machine also recognizes examples from every category on the displayed diagonal, including C1 and C3. Its C3 diagonal stays low relative to the other labels in that matrix. The balanced condition can therefore remove one source of uneven treatment while leaving a category boundary difficult to learn.

The matrices describe what happened to the records in this particular condition. They cannot show which eliminated majority documents might have helped or hurt classification if retained. The study does not report alternative choices of records to remove within that sample or show how the errors change across repeated undersampling. For this reason, the case-level detail is more informative than a general ranking of undersampling strategies. It tells the reader which category counts improved relative to the imbalanced support vector machine matrix and which forms of confusion persisted in the undersampled one.

Oversampling

For oversampling, the authors describe starting with 20 randomly selected News20 documents and repeating minority examples to balance the categories. The starting counts in the prose name C2 in both the 3-document and the 5-document groups. C3 is absent from that list. The description consequently leaves the starting distribution unsettled. The experimental action reported is replication of scarce examples, in contrast to the removal of abundant ones in the preceding setting.

The Naïve Bayes oversampling matrix again displays 5 for C1, 5 for C2, 4 for C3 and 5 for C4 on the diagonal. Its C1 row again has 1 in the C3 column. In the support vector machine table, the visible C1 row again contains 5 on the diagonal, 4 under C3 and 1 under C4. For C2 and C3, the diagonal values shown are again 5 and 1. The C4 row is displaced in the paper’s layout and appears as 0, 0, 0, 4.

Read as presented, the oversampling and undersampling tables reproduce the same assignment counts. The paper offers no discussion of that identity. There is enough information to report what the entries say and to observe that the reported outcomes fail to distinguish the balancing methods. There is too little detail to establish whether independently evaluated sampling runs yielded the same counts, how different the resulting samples were, or how frequently such agreement would occur. Matching tables are a much narrower finding than equivalent performance across draws.

How the authors interpret the results

The authors characterize the imbalanced outcome as unsatisfactory for the minority classes. They judge the random, undersampled and oversampled outcomes acceptable and attribute the improvement to a more even class distribution. The zero diagonal cells for the support vector machine in the imbalanced experiment give that interpretation a concrete basis. In the balanced sampling settings, the visible diagonal entries for the same category codes are positive. For Naïve Bayes, the reported pattern is less dramatic because the imbalanced matrix already contains correct assignments for the scarce labels.

The authors’ judgment of acceptability is qualitative. In particular, the repeated low support vector machine diagonal count for C3 shows that achieving the intended category balance still leaves substantial confusion in the reported assignments. The study’s most useful numerical detail is the view by category and classifier. It shows how a change intended to help minority examples can coincide with different outcomes for different labels and learners. The results support that observation more directly than any overall estimate of performance on News20.

What the ablations show

The paper reports no formal ablations of the topic-map pipeline, and instead offers comparisons across sampling conditions and classifiers together with category-level error analyses from the confusion matrices.

What balancing changes in the reported assignments

The comparison between an imbalanced selection and a random selection described as balanced addresses a practical question. If the learner has examples from every category but sees the categories at different frequencies, does that pattern appear in its errors? The support vector machine’s imbalanced matrix is consistent with the authors’ concern. It assigns the examples of the scarce categories away from their reference labels under the column-based reading. In the random balanced case, the reported correct count for C1 is higher and there is also a correct count for C3.

The same comparison reveals how much depends on the category. The support vector machine’s random balanced matrix still has a large entry at the intersection of the C1 row and C3 column. The undersampling matrix preserves that kind of confusion. This is consistent with a difficulty that equal counts alone do not resolve. The useful evidence is the recurrence of the same pair of category codes in the errors. The paper lacks document-level explanations that would identify the characteristics shared by messages on the two sides of that confusion.

What differs between the learners

Comparing learners within a setting narrows the question to the classification decision under the reported representation and sampling condition. In the random and undersampled results, both learners recognize the displayed C2 examples with the same diagonal counts. The larger separation appears on C3. That is more specific than saying that one learner handles all balanced data better. It identifies a recurring weakness for the support vector machine in the samples shown, while other categories look similar across the two classification procedures.

The imbalanced matrices also offer evidence that the effect cannot be attributed solely to the map. Both learners are described as receiving the output of the topic-map workflow, yet their reported diagonal counts for the scarce classes differ. Subject information can reach the classifiers through the same broad pipeline and still be used differently. The matrices show the difference in decisions. The paper leaves the influence of particular features, training settings and examples unresolved, so the error analysis cannot identify the reason that Naïve Bayes records more matches for those labels.

What remains untested about the representation

Undersampling and oversampling address the same goal through different changes to the example records. The former removes examples, and the latter repeats them. The paper’s tables report matching patterns of correct assignments and confusions for these settings. As an analysis, this establishes that the reported counts offer no preference between the two interventions. The contrast does not isolate the effect of retaining majority-class variety or of repeating minority examples because the starting selections and the handling of those examples are incompletely specified.

An ablation of the representation would ask whether the classification depends on a particular kind of information carried by the map. The company example suggests a distinction between the name, its semantic type and the connection between them. The paper demonstrates that the extraction can yield a typed connection and illustrates how this can be organized. Its tables do not vary which parts of the map reach the classifier. Consequently, the example explains the rationale for structured features, while the results address a different question about the errors that occur under particular sampling and classifier settings.

The comparison with lexical features announced in the abstract would have addressed the representation at a broader level. A word-based or phrase-based baseline evaluated on comparable data could help establish whether the same category confusions persist when the documents are described differently. The paper’s matrices contain no numerical outcomes for those baselines. The reported analysis thus concerns the variation visible among classifiers and samples within the map-based setup. It cannot assign the observed changes to the presence of topics, occurrences or associations.

Limitations

Limits the authors identify

The authors emphasize how few minority examples can leave a classifier with a weak basis for recognizing a label. Their conclusion treats this as the principal shortcoming in the imbalanced setting and presents balanced sampling as their response. Their analysis of imbalance remedies acknowledges more general difficulties as well. They note that the costs required by a cost-sensitive procedure may be unavailable, and they discuss drawbacks from excessive oversampling. These are issues the paper raises about the broader choice of method. It does not measure them in the News20 matrices.

The paper also describes a field with several plausible responses to imbalance and leaves their relative suitability open. That matters when reading the discussion of the reported samples. The authors call the balanced outcomes acceptable in this investigation. They supply no quantitative criterion for that description and no estimate of when one balancing procedure will do better than another. Their conclusion rests on the behavior they observe after changing the class distribution, with the individual matrices supplying the evidence for how that behavior varies.

Limits visible in the experimental setup

The dataset description and the matrix experiments have very different scopes. News20 is described as having 20 groups, but the matrices report results for C1 through C4. The topic-map procedure mentions selecting from five classifications, and the paper leaves that selection’s relation to the evaluated codes unclear. It also leaves the names of the evaluated groups unspecified. Those details matter because some groups might be distinguished by prominent extracted subjects, while others might share much of the information the extraction retains. The evidence concerns the coded groups and samples used in the paper.

The class-selection descriptions introduce further uncertainty. One label appears twice in the starting counts for the undersampling experiment, and a different label appears twice in the oversampling account. The imbalanced Naïve Bayes matrix conflicts with its stated sample support, and the random balanced support vector machine table lacks the values needed to read all outcomes for C4. These are separate problems. The first two prevent confident reconstruction of the inputs, the third affects the interpretation of the evaluation counts, and the last prevents a full reading of one classifier’s results.

An additional limitation is the evaluation protocol. The paper describes training and testing in Weka without identifying how the reported matrices divide the available records between those purposes. It leaves open which items were used for learning, which were used for evaluation and whether a fixed partition or repeated resampling was used. This makes it difficult to assess generalization to previously unseen documents. It also means that the visible category counts should be treated as counts from the paper’s stated settings, with the precise status of the evaluated records unresolved.

That issue has particular consequences for oversampling. The authors describe repeating minority records, but the order of repetition and any train and test separation is unspecified. Repetition confined to learning would give a minority example more influence on the classifier. Repeated instances appearing on both sides of a partition could affect what the evaluation measures. The methods account is insufficient to tell which interpretation applies. This uncertainty is distinct from whether the copied records improved the outcome in the displayed table.

The paper does not report repeated sample draws, uncertainty intervals or variability across runs. That matters because the identity of the selected documents can affect what topics and associations are available. A new draw from the same category might contain messages with more helpful entities, fewer extracted features or different overlap with the other categories. Without evidence across draws, the matrices cannot establish how robust the apparent advantage of balancing would be even for the same group codes.

Limits on what can be attributed to topic maps

The description of the extraction process offers a useful worked example but little evidence about how often extraction succeeds. A company tag illustrates what can survive the conversion from a message to a map. The paper gives no results on the coverage of entity or relationship extraction across the selected documents. It also leaves open how documents with sparse extraction are represented. Those gaps matter for the imbalance question. A category can be scarce in the document collection and supply little recognizable information per document, with each condition potentially affecting the learner.

The vectorization step is similarly underdescribed. The paper establishes that the authors convert the maps to labeled vectors, but it gives no feature inventory or encoding example for the final classifier input. A reader cannot tell from the displayed company example whether the learner sees an indicator for the name, an indicator for the type, a feature for their association, or some other description. Because the feature representation is central to the paper’s premise, that missing link limits both reproducibility and interpretation of the reported differences.

The abstract’s broader comparison remains unresolved. There are no reported numerical word and phrase baselines, no cost-adjusted classification matrix and no cluster-based sampling matrix. Accordingly, the results cannot establish that the topic-map pipeline is more effective under imbalance than the simpler document representations the authors name. They also cannot establish that balancing by the reported sampling procedures is more effective than setting a different penalty for minority errors. These are gaps between the stated comparison and the experimental evidence available in the paper.

Finally, the matrix results do not quantify some of the properties the authors cite as motivations for topic maps. The paper describes compactness and ease of finding information, yet it gives no measurement of feature-space size, processing cost or retrieval performance in these experiments. Those properties may motivate building a subject-centered representation. The numerical evidence pertains to classification assignments. The grounded conclusion is that the authors constructed a map-derived classification pipeline and observed category-specific differences among its small sampling experiments, with the advantage of the representation itself still open.

What came after

No later citing study is identified for this paper. Its subsequent influence on topic-map classification, sampling for imbalanced documents or comparisons with word and phrase representations therefore remains undocumented. The paper leaves an empirical question open within its own line of work. Whether typed subjects and associations improve recognition of scarce document categories would require a comparison that varies the representation while keeping the sampled documents and evaluation conditions comparable.

Cite

Cite as Maher Baloch and Muhammad Rafi. 2015. An Investigation on Topic Maps Based Document Classification with Unbalance Classes. Journal of Independent Studies and Research - Computing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.31645/jisrc/(2015).13.1.0007

@article{baloch2015investigation,
  title = {{An Investigation on Topic Maps Based Document Classification with Unbalance Classes}},
  author = {Maher Baloch and Muhammad Rafi},
  journal = {Journal of Independent Studies and Research - Computing},
  year = {2015},
  doi = {10.31645/jisrc/(2015).13.1.0007},
  url = {https://doi.org/10.31645/jisrc/(2015).13.1.0007}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/baloch-2015-investigation-topic-maps-based-document/