ATLAS NOVA My AtlasVelocer ↗

Method · Machine learning

Naive Bayes classifier

Probabilistic classification method

A naive Bayes classifier is a probabilistic method that sorts an item into one of several classes by asking which class is most likely given the item's features.

It treats each feature as a separate piece of evidence, estimates how strongly that evidence points toward each class, and combines the estimates into a single score. The class with the highest score wins. The method is called naive because it assumes the features are independent of one another once the class is known, an assumption that is usually false in real data but that makes the arithmetic simple enough to run at great speed.

Key facts
98%RDP naive Bayes classifier accuracy on 5,014 type strain rRNA sequences (Wang et al., 2007)⁠[1]
94.44%Accuracy after Laplacian correction fixed zero-valued attributes (Rizki et al., 2021)⁠[2]
76.3%Recall improvement of Naive Bayes Enrichment Method across 20 datasets (Peretz et al., 2024)⁠[3]
0.39%Average accuracy deviation of FPGA naive Bayes versus ARM processor (Xue et al., 2020)⁠[4]

Overview

Naive Bayes classifier

Sorting an email by its words

A blue neon sign mounted under a ceiling displays the formula P(A|B) = P(B|A)P(A) / P(B).
A blue neon sign mounted under a ceiling displays the formula P(A|B) = P(B|A)P(A) / P(B). View full-size image.Bayes' Theorem MMB 01 by mattbuck ( category ). CC BY-SA 3.0, via Wikimedia Commons. Scaled to 960 pixels wide; no crop or other changes by Atlas Nova.

A concrete case makes the idea visible. Suppose a program must decide whether an incoming email is spam or ordinary mail, and the only things it looks at are the words the message contains. From a collection of past messages already labelled spam or not spam, the classifier records how often each word turns up in each kind of mail. A new message arrives containing, say, "free", "meeting" and "click". For the spam class it looks up the rate at which each of those words appeared in known spam, and for the ordinary class it does the same. It then multiplies the three spam rates together, multiplies the three ordinary rates together, and compares the two products. Whichever class produces the larger product is the label the message receives.

The multiplication is the heart of the method. Each word contributes a factor, and a factor below one shrinks the running score while a factor near one leaves it largely unchanged. A word that is common in spam and rare in ordinary mail therefore drags the spam score down much less than it drags the ordinary score down, and the balance tips toward spam. The classifier never needs a rule saying "free plus click means spam"; the tilt emerges from the arithmetic on the individual word frequencies.

Why is the multiplication legitimate? Probability theory says that the chance of several events all happening together is the product of their individual chances only when the events do not influence each other. Words in a sentence plainly do influence each other: "free" makes "click" more likely, and "meeting" makes "agenda" more likely. The naive Bayes classifier proceeds as if they did not, which is exactly the assumption that earns it the name naive. The assumption is a deliberate simplification, adopted because estimating the joint behaviour of hundreds or thousands of words at once would require an impossibly large amount of training data, whereas estimating each word's rate separately requires very little.

Why a false assumption still earns its place

The payoff of that simplification is speed and small data appetite. Because each feature is handled on its own, the classifier can be trained by counting, and the counts can be updated as new examples arrive. It needs only a modest set of labelled examples to produce usable estimates, and classifying a new item is a short series of lookups and multiplications. These properties are why the approach is described as having a simple structure, fast calculation speed and high accuracy, and why it has been taken up in fields as different as mechanical fault diagnosis and the sorting of biological sequences.⁠[1][5] A survey of the algorithm's foundations likewise singles out its simplicity and efficiency as the reasons it is widely adopted across natural language processing, spam detection and sentiment analysis.⁠[6]

The independence assumption rarely holds in practice, and later sections take up how much that costs and how practitioners repair it. What matters at this stage is the shape of the method: a set of per-feature probabilities, combined by multiplication, compared across classes, with the largest product taken as the answer. That shape is what makes the classifier a natural first tool when an item must be assigned to a category quickly and the features are numerous. The Bayesian reasoning behind the combination, the role of prior class frequencies, and the treatment of continuous measurements are taken up next.

Naive Bayes multiplies per-feature evidence as if features were independent, then picks the class with the largest product; the assumption is false but the method is fast and needs little training data.

History

From Bayes' theorem to a working classifier

The classifier's name points to a formula older than the classifier itself. Bayes' theorem, named for Thomas Bayes (1702–1761), is a rule of probability for reversing a conditional statement: it turns the chance of seeing the evidence given a class into the chance of the class given the evidence.⁠[7] Written out, the posterior probability of a class is the class's prior probability multiplied by the probability of the observed features under that class, divided by the overall probability of the features. The prior records how common the class was in the training data; the second factor records how well the class explains what was observed. The denominator is the same for every class, so it does not affect which class wins.

A central class node points to three features, surrounded by Bayes formulas and a four-step numerical example.
Bayes' theorem and conditional independence turn feature likelihoods into class scores. A two-feature example shows how scores are normalized and compared. View full-size image.From Bayes to Class Scores by Atlas Nova. Illustration generated with AI for this article and checked against its text.

That much is ordinary Bayesian reasoning, and on its own it is not practical. The troublesome factor is the probability of the whole set of features under a class, which in principle requires knowing how the features behave together. The naive Bayes classifier sidesteps this by assuming the features are conditionally independent given the class: once the class is fixed, each feature's probability can be estimated on its own and the joint probability becomes a plain product of the individual ones. The assumption is what converts an intractable joint estimate into a handful of per-feature counts, and it is the step that makes the theorem into a working classifier rather than a theoretical ideal.

The method's reputation for simplicity shows in its nicknames. It has been called Idiot Bayes, Simple Bayes and naive Bayes, the three labels attached to the same basic procedure.⁠[7] The first two are not quite fair. The classifier is naive only about the dependence between features; the probability machinery underneath it is sound, and the same source notes that a Bayes classifier of this kind minimizes the probability of misclassification in the statistical sense, and that it is robust to noise in the input data.⁠[7]

Because the independence assumption is often wrong, later work on the method has included attempts to relax it.⁠[8][9] One line of attack learns local models at prediction time, fitting a small separate model around each new item rather than applying one global set of probabilities; this locally weighted naive Bayes rarely does worse than the standard version and in many cases improves accuracy substantially, and its authors single out its conceptual and computational simplicity compared with other ways of strengthening the classifier.⁠[8] Another line keeps the single global model but adjusts it, for instance by weighting training instances according to how similar each is to the typical case, or by averaging several naive Bayes models built over neighbourhoods of different sizes around the item being classified.⁠[9] These repairs differ in machinery but share a motive: the theorem supplies the frame, and the independence assumption supplies the speed, so improvements try to keep the speed while chipping away at the assumption.

What emerges is a method with two layers. The outer layer is Bayes' theorem, which says how to combine prior knowledge with observed evidence and is not naive at all. The inner layer is the independence assumption, which rarely holds true in real-world applications but is cheap, and which affects how well the classifier performs. The sections that follow take the two layers in turn: the arithmetic of priors, likelihoods and the product over features, and then the question of why a classifier built on a false assumption can still sort items correctly.

How it works

Priors, likelihoods and the multiplication of evidence

The classifier's arithmetic begins with a count. Before any new item is examined, the method asks how often each class appeared in the training data. If a collection of labelled examples contains 300 spam messages and 700 ordinary ones, the prior probability of spam is 0.3 and of ordinary mail 0.7. The prior is nothing more than the share of each class in the known sample, and it is the first factor in every score the classifier computes.⁠[5] Its role is to record what was already known before the evidence arrived: a class that is rare in training starts each contest with a handicap, and a common class starts with an advantage.

The second factor is the likelihood, the probability of the observed feature value given the class. For a word-based classifier this is a simple ratio: of all the spam messages in the training set, what fraction contained the word "free"? The count is taken separately for each class and each feature, which is exactly what the independence assumption permits. Because each feature is estimated on its own, the training procedure reduces to tallying how often each feature value co-occurs with each class, and the tallies can be stored in a table no larger than the number of features times the number of classes.

Continuous measurements need a different treatment, since a feature such as a vibration amplitude or a blood glucose reading can take any value in a range and no finite table can list every possibility. The usual solution is to assume the values of a feature within a class follow a Gaussian distribution, the familiar bell curve, described by two numbers: the mean, the average value of that feature among training items of the class, and the variance, which measures how widely the values spread around that average.⁠[5] The likelihood of a new value is then read off the bell curve for each class. A value close to a class's mean sits high on that class's curve and contributes a large factor; a value far out in the tail sits low and contributes a small one. This is how a classifier handles something like slope height or a bearing's vibration statistics without ever having seen that exact number before.

With a prior and a set of likelihoods in hand, the classifier multiplies. For each candidate class it forms the product of the prior and the likelihoods of all the observed feature values under that class. The result is proportional to the posterior probability, the chance of the class given the evidence, and the class with the largest product receives the item. The denominator of Bayes' theorem, P(yh), is a constant, so it is only necessary to compute P(yh/Li)P(Li).⁠[5]

Why multiply, and what goes wrong

Multiplication is the natural way to combine independent pieces of evidence, and it has a consequence worth pausing on. Each likelihood is a probability, so each lies between zero and one, and multiplying several of them together produces a number smaller than any single factor. The ranking is preserved while the arithmetic stays in a manageable range.

A sharper problem arises when a feature value never appeared with a class in training. Its likelihood is then zero, and a single zero annihilates the entire product, no matter how strongly the other features pointed toward that class. One unseen word can therefore veto an otherwise confident classification. In one application of the technique, adding this correction to a naive Bayes classifier that had been tripped up by zero-valued attributes raised its accuracy to 94.44 percent.⁠[2]

The decision rule that emerges is a comparison. For an unknown item, the classifier computes a score for each class, being the prior times the product of the likelihoods, and assigns the class whose score is largest. Written as a rule, the item goes to class i over class j whenever the score for i exceeds the score for j.⁠[5]

The score for a class is its prior frequency multiplied by the likelihood of each observed feature under that class; the largest score wins, smoothing keeps zero counts from wiping out a class, and logarithms keep the products from underflowing.

The classifier scores each candidate class by its prior times its feature likelihoods and assigns the item to the highest-scoring class.

Why an assumption that is false still works

The independence assumption is not a claim about the world that anyone expects to be true. It is a claim about how the classifier will do its bookkeeping. Once the class is fixed, the method treats each feature as if it had been drawn without reference to the others, so that the probability of the whole feature set under a class becomes a product of separate per-feature probabilities. Real measurements almost never behave that way. Two words in a sentence pull each other along, two vibration readings from the same bearing rise and fall together, and a patient's age and blood pressure are not independent once a diagnosis is known. The classifier proceeds as if none of this were so.

Figure 1. Average accuracy of naive Bayes and three optimization models across 14 data sets. Average test-set accuracy over 10-fold cross validation for 14 data sets using the median-based discretization method. The source states: “Table 3. Average test set accuracy over 10 fold cross validation for 14 data sets using the median-based discretization method. ... Ave 82.06 82.15 82.49 82.09 82.24 83.56 84.71 86.09” (Taheri & Mammadov (2013)).⁠[10]

The reason the false assumption does not sink the method lies in what the classifier is actually asked to do. It is not asked to report a well-calibrated probability that an item belongs to a class. It is asked to rank the classes and return the top one. Those are different demands. A set of scores can be badly wrong in absolute terms, all of them too high or too low or bunched together, and still place the correct class above the others. The independence assumption distorts the scores, but it tends to distort them in a way that preserves the ordering often enough for the label to come out right. When the ordering survives, the classification is correct even though the numbers attached to it are not trustworthy as probabilities.

There is a second reason the method holds up. The product over features is dominated by the features that carry the most evidence, and the assumption's errors are spread across many small factors rather than concentrated in one. A feature that is genuinely informative pushes the correct class's score up sharply; a feature whose dependence on its neighbours has been ignored contributes a modest, roughly similar distortion to every class. The informative features therefore tend to win the comparison even when the probabilities behind them are off. This is why the classifier has been described as performing surprisingly well despite its strong assumption, and why the assumption is treated as a weakness to be managed rather than a flaw that disqualifies the method.⁠[10][8]

Managing it has produced a family of repairs, and they differ mainly in where they intervene. One approach attacks the features themselves. Feature selection keeps the attributes that carry the most information about the class and discards the rest, on the reasoning that a smaller set of weakly related features gives the independence assumption less to get wrong. A second approach leaves the features in place but gives each one a different say. Attribute weighting assigns every feature its own weight, so that a feature known to be informative counts for more and a redundant one counts for less; the weights can be set by a filter that scores each attribute in isolation or by a wrapper that tunes them against classification accuracy.

Wrappers receive a bigger boost in classification accuracy than filters, but their time complexity is much higher.⁠[11] A third approach adjusts the training examples rather than the features. Instance weighting gives each training item its own weight, so that typical or informative examples shape the model more than odd ones do.⁠[12]

Two further repairs change the shape of the model rather than its inputs. Structure extension adds edges between features, letting the model represent some of the dependence the plain assumption forbids. Tree-augmented naive Bayes is one such case, and one line of work generalizes it from one dependence per feature to an arbitrary number, on the argument that a model matching the true dependence structure more closely will generalize better.⁠[13] A hidden naive Bayes variant takes a different route, giving each feature a hidden parent that summarizes the influence of the other qualified features, so that the dependence is absorbed into a single extra node instead of a web of edges.⁠[14] The last repair abandons the single global model altogether. Local models fit a small separate model around each item at prediction time, so that the independence assumption only has to hold in the neighbourhood of the item being classified; locally weighted naive Bayes rarely does worse than the standard version and often improves accuracy substantially, and its conceptual and computational simplicity compared with other techniques for enhancing naive Bayes is its main advantage.⁠[8]

These strategies share a logic. Each accepts that the independence assumption is false and asks where the damage is smallest. Removing redundant features, down-weighting them, re-weighting examples, or letting a few dependencies back into the model all reduce the gap between what the classifier believes and what the data actually show, without giving up the counting-based training that makes the method fast. None of them restores true probabilities; they aim at the ranking, which is what the decision needs. The sections that follow examine how these repairs play out in particular domains, where the same tension between speed and fidelity reappears in concrete form.

The classifier only needs the correct class ranked first, not accurate probabilities, so a false independence assumption can still yield the right label; repairs target features, weights, examples or model structure to keep the ranking right.

Research

Text, sequences and documents

A document is a bag of words, and words in a document are anything but independent: "New" makes "York" likely, "not" flips the meaning of whatever follows it, and a paragraph about interest rates will be dense with terms that co-occur. Yet the classifier's habit of treating each word as a separate piece of evidence turns out to suit text unusually well, because a document supplies hundreds or thousands of features at once, and even a distorted combination of many weak signals can rank the right category first.

Sorting bacteria by their RNA

The most striking demonstration comes not from ordinary text but from genetic sequence, which is text of a sort: a string of letters drawn from a small alphabet. Every bacterium carries a gene for a ribosomal RNA molecule, the 16S rRNA, and the sequence of that gene varies between species in a way that reflects evolutionary relatedness. Assigning an unknown sequence to a taxonomic group is therefore a classification problem with a large, structured feature set.⁠[1]

The Ribosomal Database Project built a naive Bayes classifier for exactly this task, trained to place 16S rRNA sequences into the higher-order bacterial taxonomy of Bergey's Taxonomic Outline.⁠[1] A new sequence is scored against every group from domain down to genus, and the group with the highest score is returned together with a confidence estimate for the assignment. On a corpus of 5,014 type strain sequences, 98 percent of the classifications were of high estimated confidence (at least 95 percent), and accuracy was 98 percent. Across both that corpus and a second set of 23,095 sequences assigned under a different taxonomy, leave-one-out testing showed overall accuracies at all levels of confidence for near-full-length and 400-base segments were 89 percent or above down to the genus level.⁠[1]

Two details of that result matter for understanding the method. The first is that for shorter segments, such as those generated by pyrosequencing, the error rate varied greatly over the length of the 16S rRNA gene, with segments around the V2 and V4 variable regions giving the lowest error rates. The second is where the errors came from: most of the misclassifications were traced to anomalies in the taxonomies themselves rather than to the classifier, meaning the method was sometimes penalized for disagreeing with a classification scheme that was itself inconsistent.⁠[1] A classifier built on a false independence assumption can be accurate enough that its mistakes reveal problems in the labels it was taught.

When the bag of words is not enough

Ordinary documents are messier than gene sequences. A long article and a short note on the same subject do not present the same evidence, because the long one simply contains more words, and each additional word multiplies another factor into the score. The raw product therefore grows or shrinks with document length in a way that has nothing to do with topic. A second difficulty is that most words in any vocabulary are uninformative, and their many small factors can swamp the few terms that actually discriminate between categories.

Both problems have straightforward repairs. Per-document text normalization rescales each document's contribution so that length no longer dominates the score, and feature weighting gives discriminating terms more influence than common ones. Applying these two heuristics to a naive Bayes text classifier produced performance that competed with state-of-the-art text classifiers built on far more complex learning methods, including support vector machines, across standard benchmark collections.⁠[15] The finding is worth dwelling on because it inverts the usual expectation: the simple model, once its inputs are handled sensibly, was not left behind by the sophisticated one.

The independence assumption can also be weakened rather than patched. A locally weighted variant builds a small separate model around each document at prediction time, so that the assumption only has to hold among documents similar to the one being classified. The gain comes without a new model family; the same counting machinery is simply applied in a narrower neighbourhood.

The mixed verdict on a very large corpus

Scale tests the method honestly, and the results are not uniformly flattering. Wikipedia, the full English corpus, offers a hard case: six broad categories, with training sets built by subject matter experts and by Wikipedia portals.⁠[16] Comparing multinomial naive Bayes with a support vector machine on that corpus, with training sets built by subject matter experts and by Wikipedia's own portals, showed the support vector machine performing exceptionally across all six categories. Naive Bayes was inferior in accuracy in some categories, yet its generalizing capability was on par with the support vector machine's.⁠[16]

That split result is the most instructive thing in the comparison. Accuracy and generalization are different virtues: a classifier can be right less often on the data in front of it while still holding up as well when carried to new material. For naive Bayes the pattern follows from how it works. Its scores are distorted by the independence assumption, so on categories where the discriminating words are strongly dependent on one another the distortion costs correct answers. But the distortion is systematic rather than random, and a systematic bias that preserves the ranking of classes travels well to unseen documents. The classifier's weakness and its robustness have the same source.

What the text evidence adds up to is a method whose performance depends heavily on preparation. Normalizing document length, weighting features, selecting a smaller vocabulary, or fitting local models all change the outcome, and the same algorithm can look mediocre or competitive depending on which of these is done. The sequence classifier shows the method at its best, on features that are numerous, individually weak and close to independent. The Wikipedia comparison shows the cost when those conditions fail.

On text and sequences the classifier is fast and often accurate, but its results swing with preparation: normalization, feature weighting and local models change the outcome, and on a corpus as varied as Wikipedia its accuracy trailed a support vector machine in some categories even while generalizing as well.

Without normalization, the raw product depends on document length in a way unrelated to topic.

Diagnosis, faults and risk prediction

Machinery and medicine present the classifier with a different problem from text. The features are not words but measurements: a vibration amplitude, a blood pressure reading, a slope angle. They arrive as numbers, often correlated by the physics that produced them, and the cost of a wrong label is measured in broken equipment or missed disease rather than a misfiled document. These settings also show most clearly what happens when the independence assumption meets data that violate it, and how much can be recovered by preparing the inputs before the classifier ever sees them.

Figure 2. Accuracy, sensitivity and specificity of the naive Bayes model at each cardiovascular risk level. Accuracy, sensitivity and specificity values for each risk level in the cardiovascular disease risk detection model. The source states: “The sensitivity values for each level were 84.37%, 100%, and 82.06%, respectively. ... The specificity values for each level were 86.19%, 87.64%, and 86.03%, respectively. ... The accuracy values for each level were 85.90%, 87.98%, and 85.90%, respectively.” (Miranda et al. (2016)).⁠[17]

Bearings, and the cost of correlated measurements

A rolling bearing carries the rotating parts of a machine, and a small fault in it can damage the whole device, so diagnosing bearing faults early is a practical priority. Vibration analysis is the standard tool: sensors record the machine's vibration, and the resulting signal carries information about its health, though the raw signal is chaotic and irregular and must first be reduced to a manageable set of features. A naive Bayes classifier is an attractive choice for the final sorting step, because it needs only a small amount of training data and has a simple structure, fast calculation and high accuracy.⁠[5]

The difficulty is that vibration features are not independent. Readings taken from the same bearing rise and fall together, and the assumption that lets the classifier multiply per-feature likelihoods is therefore badly violated, which limits how well it performs on this kind of data.⁠[5] One response is to make the data more nearly independent before classification, working from two directions at once.

First, statistical features are extracted from the time-domain signal and a decision tree is used to keep only the important, low-correlation ones, since the attributes that appear as decision nodes are the ones carrying information that promotes classification. Second, a variant of the support vector machine prunes redundant data vectors, removing points whose classification is inconsistent with that of their corresponding nearest neighbour vector.⁠[5] Only then is the naive Bayes classifier applied. The point of the exercise is that the assumption is not repaired inside the model; the data are reshaped so that the assumption has less to get wrong.

Heart risk from routine records

Clinical prediction suits the method for a related reason: patient records supply many attributes, most of them weakly informative on their own, and a model must assign each patient to a risk band quickly. A naive Bayes model was built to detect cardiovascular disease and sort adults into three risk levels, using the primary risk factors of diabetes mellitus, blood lipid levels, coronary artery function and kidney function as its inputs. Evaluated on accuracy, sensitivity and specificity, the model predicted the correct class label in more than 80 percent of cases, and a panel of cardiologists and internists who reviewed it largely agreed that it followed medical procedures and could support medical analysis of cardiovascular disease.⁠[17]

The same distinction runs through the engineering cases. A model that orders cases correctly can guide attention even when its numbers are distorted.

Slopes and transmission lines

Geotechnical risk offers a case where the classifier must work from sparse and incomplete data. Slope stability prediction matters for identifying terrain susceptible to landslides, and a naive Bayes model was trained to predict stability for slopes subject to circular failures from six input factors: slope height, slope angle, cohesion, friction angle, unit weight and pore pressure ratio. The training set held only 69 slope cases and was incomplete, so an expectation maximization algorithm was used to learn the model's parameters in the presence of missing values. Validated on 13 new cases, the model performed better than an existing empirical approach in both accuracy and applicability, and it allowed the probability of stability to be estimated from any subset of the six factors rather than requiring all of them.⁠[18]

The last property is worth separating from the accuracy claim. The NBC allows the probability of slope stability to be determined from any subset of the six input factors.⁠[18] An engineer with a survey that lacks a pore pressure measurement can still obtain an estimate, which is often what field conditions allow.

Electrical fault classification shows the method compared directly against alternatives on the same task. In a transmission line fitted with a shunt compensator, fault types such as line-to-ground, line-to-line, double line-to-ground and three-phase faults must be identified quickly and correctly. A model was built in simulation, the fault current waveforms were decomposed with a discrete wavelet transform to extract standard deviation and energy features, and those features were used to train three classifiers: a multi-layer perceptron neural network, a plain Bayes classifier and a naive Bayes classifier. The naive Bayes classifier came out ahead on accuracy rate, misclassification rate, kappa statistics, mean absolute error, root mean square error and two relative error measures, beating both the neural network and the plain Bayes model.⁠[19]

The extracted features were used to train the three classifiers. The naive Bayes classifier outperformed both the MLP and the Bayes classifier on the reported metrics.⁠[19]

What the diagnostic cases share

Across bearings, hearts, slopes and power lines, the same pattern recurs. In the bearing study the classifier was chosen for speed and small data appetite, its independence assumption was violated by the data, and effort went into preparing the inputs. In the bearing study, preparing the data to reduce dependence let the simple model perform effectively.⁠[5]

There is a caution buried in these results. Each is a single study on a particular dataset, and a good result on one bearing test rig or one hospital's records does not establish that the method will do as well elsewhere. The reported figures describe what happened in those experiments, with those features and that preparation. What generalizes is the approach: reduce the dependence the model cannot represent, keep the feature set small and informative, and judge the classifier by whether it ranks cases correctly rather than by whether its probabilities are exact. The settings where the method is applied at scale, and the engineering choices that keep it practical, are covered later.

In diagnostic work the classifier is rarely used on raw measurements: features are selected, correlated and redundant data pruned, and missing values imputed first, and it is that preparation, more than the model, that decides whether the simple probabilistic approach keeps pace with heavier alternatives.

In practice

Where the classifier is put to work

Spam, intrusion and the problem of too many terms

Two colored count tables compare unsmoothed and add-one probabilities above a class-score calculation.
Adding one to every category count prevents an unseen value from zeroing a class score. The example adjusts both counts and the denominator. View full-size image.Laplace Smoothing Prevents Zero Scores by Atlas Nova. Illustration generated with AI for this article and checked against its text.

Naive Bayes classifiers have been applied to the sorting of email, and the reason is easy to see. A message is a bag of words, the words are numerous, and each one is a weak signal on its own; a classifier that multiplies many weak signals together is well matched to that shape. The best-known techniques for automatically detecting and removing spam are based on Bayesian decision theory., and they face a well-known difficulty: the dimensionality of the feature space, meaning the sheer number of distinct terms a vocabulary can contain. Every term in the vocabulary is a feature, and the feature space can be highly dimensional.⁠[20]

High dimensionality is not merely a storage problem. Each additional feature adds another factor to the product, and a factor estimated from a few occurrences is noisy; a great many noisy factors can drown the few terms that genuinely separate spam from ordinary mail. The standard remedy is term selection, a form of feature reduction that keeps a subset of the vocabulary and discards the rest before the classifier is trained. Which selection scheme works best is not obvious in advance, and a systematic study of many term-selection techniques across several different naive Bayes spam filter models was designed to settle the question with statistically sound comparisons, also examining which measurements are appropriate for judging a filter's quality.⁠[20]

Intrusion detection poses the same problem in a different setting. A system that monitors events in a computer network to detect signs of security problems faces features that are irrelevant or redundant, which lengthens the detection process and degrades performance. Working with reduced input features, selected by correlation-based methods, information gain and gain ratio, and then classified with naive Bayes, gave better performance than the unreduced data, supporting the design of an intrusion detection system that is both efficient and effective.⁠[21]

Screening records and sorting claims

Medical screening is a natural fit for a method that gives improved accuracy with low computational effort and very high speed. A model built to detect the probability that a woman will develop breast cancer, trained on benchmark data from a public machine learning repository and presented through a simple interface for entering a patient's screening record, was found to give improved accuracy with low computational effort and very high speed.⁠[22]

A later variant kept the same base classifier but assigned different weights to different attributes, on the reasoning that in many decision settings a ranking of cases is more useful than a bare label, and that domain knowledge can guide which features deserve more say. The weighted version outperformed the plain naive Bayes classifier on the same breast cancer data.⁠[23]

Text streams that arrive in volume call for the same speed. A fake news detection model built with natural language processing and machine learning, with the text cleaned and features extracted before training, reached an accuracy of up to 93.6 percent.⁠[24]

Keeping the arithmetic from breaking

Two engineering habits keep the classifier usable when it meets real data. The first concerns zero counts. Because the method multiplies probabilities, a single feature value that never co-occurred with a class in training produces a likelihood of zero and wipes out that class's score entirely, however strong the other evidence. Laplacian correction adds a small count to every tally before the ratios are formed, so no likelihood is exactly zero. Applied to a naive Bayes classifier that had been tripped up by zero-valued attributes, the correction raised accuracy to 94.44 percent. The benefit is that a zero-valued attribute no longer undermines the classification.⁠[2]

The second habit concerns feature selection, and it has a subtlety worth stating plainly. Selection methods rank attributes by how much information each carries about the class, and the ranking can be computed quickly, which is what makes it attractive for datasets with a very large number of features and a huge amount of data where more elaborate methods are not computationally feasible. A refinement of the standard information-gain measure uses imprecise probabilities and a maximum entropy criterion to pick the most informative variables without requiring a threshold to be set by hand for each dataset, and combining it with naive Bayes improved on the original selection method.⁠[25] The practical point is that selection is not a single technique but a family, and the choice within it affects the classifier's results.

How much that choice matters was measured directly in a customer relationship setting, where real datasets tend to violate the independence assumption and to contain irrelevant, partially irrelevant and redundant data, all of which degrade prediction. Comparing naive Bayes with and without feature selection across five different filter methods, including Relief-F, Pearson correlation, symmetrical uncertainty, gain ratio and information gain, was conducted to test whether preprocessing the attributes before training enhances the model's predictive performance.⁠[26] The comparison is a reminder that two teams using the same classifier on the same kind of data can report quite different results, because they prepared the inputs differently.

When the answer must arrive immediately

Some applications cannot wait for a general-purpose processor to run through a long series of lookups and multiplications. A hardware implementation of the naive Bayes classifier on a field programmable gate array, a chip whose logic can be configured for a specific task, addressed exactly this constraint. The design simplified the arithmetic by converting floating-point values to fixed-point and using a logarithm lookup table, which removed floating-point multiplication and division altogether, and it arranged processing elements in parallel arrays to speed the classification.⁠[4]

The results are a study in trade-offs. Across five datasets of different sizes, the hardware classifier showed almost no loss of accuracy compared with a general-purpose processor, with an average deviation of 0.39 percent, while using only a small fraction of the chip resources that convolutional neural network accelerators require, and improving the speed of the training and inference phases by roughly five orders of magnitude on average. The comparison with neural network hardware is telling: the naive Bayes accelerator costs far less on-chip resources than many CNN accelerators.⁠[4]

What these settings share is a division of labour. The classifier supplies a fast, cheap way to rank classes from many weak features; the practitioner supplies the judgement about which features to keep, how to smooth the counts, and whether the answer must be computed in hardware. The method's simplicity is what makes each of those decisions tractable, and it is also why the same algorithm appears in an email filter, a hospital screening tool and a chip.

Naive Bayes is deployed where features are numerous and answers must be fast: term selection and feature reduction decide much of its accuracy, Laplacian correction keeps zero counts from destroying a score, and the model is simple enough to be built into dedicated hardware.

Alternatives

Weakening the independence assumption

The independence assumption is the classifier's engine and its weak point at once. Every repair described so far, and most of the literature on the method, amounts to a negotiation with that assumption: keep the counting-based training that makes the classifier fast, but stop paying the full price of pretending features never influence one another. The negotiations differ in where they intervene, and comparing them is easiest when they are sorted by what they touch: the features, the training examples, the structure of the model, or the model's variance.

Four colored panels contain weighted probability formulas, training-data tables, dependency graphs and bootstrap model branches.
Feature weighting, instance weighting, structure extension and bootstrap ensembles change different parts of naive Bayes. Equations and small examples show how each approach works. View full-size image.Four Ways to Improve Naive Bayes by Atlas Nova. Illustration generated with AI for this article and checked against its text.

The first question a practitioner usually asks is whether the simple model is worth using at all next to a standard alternative. Two comparisons give a sense of the answer. On lung cancer survivability, drawn from fifteen years of patient records, a naive Bayes classifier was set against the J48 implementation of the C4.5 decision tree algorithm, and the tree came out marginally better.⁠[27] On the full English Wikipedia corpus, across six broad categories, a linear-kernel support vector machine performed exceptionally in every category, and naive Bayes was inferior in accuracy in some of them while generalizing about as well.⁠[16] Neither result humiliates the method, and neither crowns it. A decision tree can represent interactions between features that naive Bayes cannot, and a support vector machine can draw a boundary that the product of per-feature likelihoods cannot; where those capabilities matter, the heavier model earns its cost.

Weighting the features and the examples

The gentlest repair leaves the model's shape untouched and changes only how much each part of the training data counts. Attribute weighting gives every feature its own weight, so that an informative attribute contributes more to the score and a redundant one contributes less. The plain classifier implicitly treats all attributes as equally important, which is unrealistic, and one line of work set out to fix this by treating the weights as the unknowns of a nonlinear optimization problem, minimizing four different exponential loss functions to determine them. Tested on 28 datasets from a public machine learning repository, the scheme successfully recovered optimal attribute weights and improved classification performance.⁠[28] The appeal of this route is that the model stays a product of per-feature terms; only the exponents change.

Instance weighting moves the adjustment from the features to the examples. Here each training item receives a weight, so that typical or informative items shape the estimated probabilities more than odd ones do. One version defines the weight of an instance as the inner product of its attribute value frequency vector and the attribute value number vector, and across 36 widely used classification problems the resulting model significantly outperformed standard naive Bayes while keeping its computational simplicity.⁠[12] The two weighting families are complementary: one asks which features deserve attention, the other asks which examples do.

Letting a little dependence back in

A more ambitious repair changes the model's structure. Structure extension adds edges between features, so that some of the dependence the plain assumption forbids is represented explicitly. The cost is a harder training problem, since the structure itself must be learned rather than merely counted.

A hidden naive Bayes variant takes a lighter route to the same end. Instead of a web of edges, each feature receives a hidden parent that synthesizes the influence of all the other qualified features, so the dependence is absorbed into a single extra node. Adapting this idea to multinomial naive Bayes for text produced a single model rather than an ensemble, and experiments on eleven benchmark text datasets confirmed its effectiveness, with the same trick also improving complement naive Bayes and the one-versus-all-but-one model.⁠[14] The pattern across these extensions is consistent: each buys accuracy with structure, and each must be trained more carefully than the plain counting procedure.

Reducing variance without changing the model

A different family of repairs does not touch the independence assumption at all. It accepts the base model as it stands and attacks a separate problem: the instability that comes from estimating many probabilities from limited data. Ensemble methods combine several models so that their individual errors partly cancel. One proposal integrates randomized feature selection and bootstrap resampling into naive Bayes, producing two lightweight variants that implicitly reduce feature dependence and noise-induced variance without altering the underlying model. Evaluated on twenty real-world datasets spanning medical, financial and industrial domains, the bootstrapped variant consistently outperformed classical naive Bayes, the randomized-feature variant and a nearest-neighbour classifier in several cases; a random forest achieved higher average accuracy overall, but the bootstrapped variant demonstrated comparable accuracy with notably lower variance and improved predictive stability on datasets marked by high noise, large dimensionality or class imbalance.⁠[29]

A second ensemble route divides the problem rather than resampling it. The Naive Bayes Enrichment Method selects features automatically using threshold learning and splits a dataset into sub-datasets according to feature type, then runs multiple naive Bayes classifiers based on different distributions and combines their outputs through a weighted classification function. Tested on 20 multivariate datasets against other classification models and naive Bayes variations, the method showed improvements of up to 76.3 percent in recall and up to 43.9 percent in the F1 score, with its error percentage depending on the number of classes.⁠[3] Both ensemble approaches leave the naive assumption in place and treat the single model's fragility, rather than its bias, as the thing to fix.

What the comparisons add up to is a menu rather than a verdict. Weighting features or examples is cheap and keeps the model transparent; structure extension buys accuracy at the price of a harder training problem; ensembles buy stability without touching the assumption. Which is worth its cost depends on how much data are available and on whether the goal is a ranking or a trustworthy probability, questions that the limits of the method make urgent and that are covered later.

Repairs to naive Bayes divide by target: feature and instance weighting rebalance the evidence, structure extension admits some dependence, and ensembles reduce variance, each trading some of the method's simplicity for accuracy or stability.

Criticism

Fairness, imbalance and other limits

When the classes are lopsided

A classifier trained on data where one class vastly outnumbers another inherits that imbalance. A model that simply guesses the majority label every time can score high accuracy while learning nothing about the minority class.⁠[30] The naive Bayes classifier is not immune to this. Its prior term, the share of each class in the training data, tilts every score toward the majority class before any feature is examined, and the likelihoods estimated from a handful of minority examples are noisy besides. The result can be a model biased in favor of the majority class, which is the potential impact that class imbalance describes: the training procedure may learn a model that will be biased toward the class that dominates the data.⁠[31]

The remedy that has drawn attention is to change which examples the model learns from. An under-sampling approach starts by training a naive Bayes model on a small, stratified initial set, then iteratively feeds the model the instances it is most uncertain about and retrains, repeating until some criterion is satisfied. The method selects the instances the model is most uncertain about, on the premise that these are the most informative. Tested on six multimodal datasets and another forty-four standard benchmark datasets, the method achieved classification performance comparable to other resampling techniques across several proper metrics, with suitable statistical testing applied. The method achieved classification performance comparable to other resampling techniques.⁠[31]

Fairness when a sensitive attribute is missing

A subtler limit appears when the classifier is used to make decisions about people. Suppose a model is trained on historical decisions that were themselves biased by gender or race. The model will learn the bias, and applying it at scale can violate laws that forbid decisions based partly on discrimination, exposing organizations to large fines.⁠[32]

One line of work defines the problem precisely. A discrimination pattern is a case in which an individual receives different classifications depending on whether some sensitive attribute was observed; a model is fair if it contains no such pattern.⁠[33] This definition matters because the classifier can be queried with partial information. The proposed algorithm discovers and mines discrimination patterns in a naive Bayes classifier, then learns maximum-likelihood parameters subject to those fairness constraints, iteratively discovering and eliminating patterns until a fair model is learned; on three real-world datasets it removed exponentially many discrimination patterns by adding only a small fraction of them as constraints.⁠[33]

An earlier approach framed the same goal as a restriction on the classifier's output. Three methods were proposed for making naive Bayes discrimination-free: modifying the probability that a decision comes out positive, training one separate model for each value of the sensitive attribute and balancing them, and adding a latent variable to the Bayesian model that represents the unbiased label while optimizing the parameters for likelihood using expectation maximization.⁠[32] The three differ in where the correction is applied, to the decision threshold, to the training data, or to the model's hidden structure, but they share the aim of severing the path from a sensitive attribute to the label. Experiments on both artificial and real-life data tested all three.⁠[32]

What these results establish is narrower than they might appear. They show that a naive Bayes classifier can be constrained to satisfy a stated fairness criterion, and that the constraint can be enforced without discarding the model's probabilistic machinery. They do not show that the resulting model is fair in any broader sense, nor that removing a statistical dependence removes the underlying injustice in the data.

The assumption as the root of most trouble

Most of the limits traced in this chapter come back to one source. The independence assumption is false in real data, and the gap between what the classifier believes and what the data show is what degrades its performance and motivates the long catalogue of repairs. That diagnosis is stated plainly in the literature: the conditional independence assumption rarely holds true in real-world applications, and numerous researches have been undertaken to alleviate it by attribute weighting. The same source notes that almost all such studies have calculated attribute weights according to correlation measures or classification accuracy, and proposes instead a causality-based weighting that uses information flow and a genetic algorithm to search for optimal weights, with comparison experiments on UCI data sets showing it superior to the classic classifier and other common weighted variants in classification accuracy and running time.⁠[34]

The framing is worth taking seriously because it explains why the repairs multiply without ever finishing the job. Each one weakens the assumption in a particular direction, and none removes it, because removing it would mean estimating the joint behaviour of all features at once, which is the intractable problem the assumption was adopted to avoid.

Accuracy is not a property of the algorithm

A final caution concerns how results are read. Reported accuracy depends heavily on the dataset and on the preparation applied before training, so a figure attached to the classifier in one study says little about how it will do in another setting. The text results make the point concretely. Applying per-document normalization and feature weighting to a naive Bayes text classifier produced performance competing with state-of-the-art classifiers built on far more complex methods, including support vector machines, across standard benchmark collections.⁠[15] On the full English Wikipedia corpus, by contrast, a support vector machine performed exceptionally across all six categories tested, and naive Bayes was inferior in accuracy in some of them while generalizing about as well.⁠[16] The same algorithm, on different text and with different preparation, looks competitive in one comparison and behind in another.

The practical consequence is that no single accuracy number should be carried from one problem to the next. What travels is the method's shape and its known weaknesses: a false independence assumption that distorts scores, a prior that tilts toward common classes, and a dependence on feature selection and smoothing. The settings where the method is applied at scale, and the newer variants that address its remaining limits, are covered later.

Naive Bayes inherits the biases of its training data: lopsided classes tilt the prior, historical discrimination can be learned and must be constrained out, and reported accuracy varies so much with dataset and preparation that it should never be assumed to carry over.

Current directions

Learning the probabilities instead of counting them

Data batches feed a model-update block beside a probability axis divided into rejection, boundary and acceptance.
Successive batches update a naive Bayes model using selected higher-confidence samples. Two thresholds separate rejection, an undecided boundary and acceptance. View full-size image.Incremental Learning and Three-Way Decisions by Atlas Nova. Illustration generated with AI for this article and checked against its text.

The standard classifier takes its probabilities from counts: the prior is the share of each class in the training data, and each likelihood is the fraction of class members showing a feature value. Counting is fast and needs no optimization, but it fixes the numbers in advance of any consideration of how well they classify. A different line of work treats the class probabilities and the conditional probabilities as unknowns to be found by solving an optimization problem, so that the values chosen are the ones that best serve classification rather than the ones the tallies happen to give.⁠[10] The structure stays that of a naive Bayes classifier; only the way its numbers are obtained changes. In numerical experiments on several real-world binary classification datasets, with continuous features discretized by three different methods, the proposed optimization models can significantly improve the performance of the naive Bayes classifier while maintaining its simple structure, and they were compared against tree-augmented naive Bayes, a support vector machine, the C4.5 decision tree and a nearest-neighbour classifier.⁠[10]

The appeal of this direction is that it attacks the method's weakness without adding structure. Nothing about dependence between features is modeled; the per-feature product remains. What changes is that the probabilities are tuned for the decision the classifier must make, which fits the observation running through earlier sections that ranking matters more than accurate probability estimates.

Guarding against overfitting

Weighting attributes gives the classifier a way to say that some features deserve more influence than others, and class-specific weighting goes further by letting each class have its own set of weights, optimized using feedback from classification performance. The gain in discrimination carries a risk: with enough freedom, the weights can be fitted to the peculiarities of the training set rather than to any pattern that will recur, and the model then generalizes poorly, especially when the training data are too few to pin down so many values. Regularization is the general remedy, a penalty that discourages the model from fitting noise. One proposal adds a regularization term to class-specific attribute weighting, designed to balance discrimination power against generalization capability, so that the model captures data characteristics when the dataset is large and still generalizes when it is small. Experiments on 33 machine-learning benchmark datasets showed the regularized model outperforming the compared methods significantly.⁠[35]

This is a familiar trade in a new place. Earlier repairs bought accuracy by giving the model more room to move, whether through weights, extra edges or local fitting; regularization is the counterweight that keeps that room from being used to memorize.

Data that arrive over time, and answers that are not forced

Two assumptions built into the standard procedure are that the training data sit still and that every item must receive a label. Neither holds in many settings. Data accumulate continuously, and a classifier trained once on an old snapshot drifts as new material arrives; retraining from scratch each time is wasteful. Separately, some items are genuinely ambiguous, and forcing them into one class or the other produces confident errors.

A three-way incremental classifier addresses both at once, combining incremental learning, in which the model is updated as new data arrive rather than rebuilt, with a three-way decision, in which an item may be accepted into a class, rejected from it, or placed in a boundary region left undecided. The method fits continuous features by choosing a distribution according to the minimum residual sum of squares, so it handles both discrete and continuous data, and it selects the higher-quality samples from each incremental batch by their confidence before learning from them.⁠[36] Its decision rules assign each item to a positive domain, a negative domain or a boundary, so that uncertain cases are set aside rather than mislabeled. Tested on five discrete and five continuous datasets against traditional classification methods, the classifier showed high accuracy and recall and relatively stable performance across dataset types.⁠[36]

The boundary region is the interesting part. It gives the classifier a way to say that the evidence is insufficient, which a two-way rule cannot express, and it fits the diagnostic settings described earlier, where a case flagged as uncertain may be exactly the one worth a human look.

Astronomy, and the limits of any single classifier

Astronomy supplies a large-scale test with an unusually clean statement of what a classifier can and cannot deliver. A naive Bayes classifier was built to identify Class II young stellar objects, stars in an early stage of formation, across a region of the Northern Galactic Plane containing 8 million sources with good parallax measurements. It used five features: Gaia G-band variability, WISE mid-infrared excess, near-infrared excess from the UKIDSS and 2MASS catalogues, IGAPS Hα excess, and overluminosity relative to the main sequence. Choosing a posterior threshold of greater than 0.5, the classifier identified 6,504 candidate objects, with a false positive rate around 0.02 percent and a true positive rate of approximately 87 percent, and the map of candidates showed what are potentially three previously undiscovered clusters or associations.⁠[37]

The caution comes from comparing catalogues. Between one quarter and three quarters of the high-probability candidates were unique to each classifier examined, which led the authors to conclude that no single classifier is finding all young stars.⁠[37] A high true positive rate on a classifier's own test set does not mean the method captures everything there is to find; different classifiers, built on different features and trained on different labels, select overlapping but distinct sets. For a method valued for speed and simplicity, that is the honest summary of where it stands: cheap enough to run over millions of objects, useful enough to turn up new structures, and best treated as one instrument among several rather than as the final word.

Key studies

YearStudySampleDesignFinding
2007Wang et al.⁠[1]5,014 type strain sequences and 23,095 rRNA sequencesClassifier test with leave-one-out validationOverall accuracies at all levels of confidence were 89% or above down to the genus level, and 98% of classifications were of high estimated confidence and high accuracy.
2012Frank et al.⁠[8]Multiple learning problemsComparison of locally weighted naive Bayes with standard naive BayesCompared with standard naive Bayes, the locally weighted version seldom did worse and often did much better.
2013Taheri & Mammadov⁠[10]14 real world binary classification data setsComparison of optimization models with naive Bayes and other classifiers using 10-fold cross validationThe proposed models significantly improved the performance of naive Bayes while keeping its simple structure.
2014Kharya et al.⁠[22]699 training records and 200 test records from the UCI repositoryBreast cancer prediction with a graphical user interfaceThe reported accuracy was 93%, with low computational effort and very high speed.
2016Kharya & Soni⁠[23]699 records from the UCI breast cancer datasetWeighted naive Bayes classifier trained on all records and tested on the whole datasetThe weighted naive Bayes classifier reached 92% accuracy and outperformed the non-weighted naive Bayes.
2016Miranda et al.⁠[17]Adults in a cardiovascular risk dataset, plus 10 medical staff in an evaluation sessionNaive Bayes risk level detection with accuracy, sensitivity and specificity calculationAccuracy for the three risk levels was 85.90%, 87.98% and 85.90%, and more than eighty percent of respondents agreed the model could support medical analysis.
2018Feng et al.⁠[18]69 slope cases for training and 13 new cases for validationNaive Bayes prediction of slope stability with expectation maximization for parameter learningThe model gave better performance in accuracy and applicability than the existing empirical approach.
2020Aridas et al.⁠[31]Six multimodal data sets and forty-four standard benchmark data setsUncertainty based under-sampling for imbalanced dataAridas, Karlos, Kanas, Fazakis and Kotsiantis report that their under-sampling method reaches classification performance comparable to other resampling techniques on several metrics, and that on balanced accuracy it performs similarly to SMOTE.
2020Aker et al.⁠[19]Fault current waveforms from a shunt compensated transmission lineDiscrete wavelet transform features with naive Bayes classificationThe naive Bayes classifier outperformed both the multi-layer perceptron and the Bayes classifier on accuracy and error measures.
2023Wilson et al.⁠[37]8 million sources in the Northern Galactic Plane with Gaia EDR3 parallaxesNaive Bayes classification of Class II young stellar objectsSetting the posterior cutoff above 0.5 yielded 6504 candidate Class II YSOs, with a false positive rate near 0.02 per cent and a true positive rate of about 87 per cent.
2024Peretz et al.⁠[3]20 multivariate datasetsComparison of the Naive Bayes Enrichment Method with other classifiers and naive Bayes variantsThe method showed up to 76.3% improvement in recall and up to 43.9% improvement in the F1 score.
2025Phatcharathada & Srisuradetchai⁠[29]Twenty real-world datasets from medical, financial and industrial domainsEvaluation of randomized feature and bootstrapped naive Bayes ensemblesRFB-NB consistently outperformed classical naive Bayes, RF-NB and k-nearest neighbor in several cases, with lower variance on noisy or imbalanced data.

See also

References

  1. Wang, Q., Garrity, G. M., Tiedje, J. M., & Cole, J. R. (2007). Naïve Bayesian Classifier for Rapid Assignment of rRNA Sequences into the New Bacterial Taxonomy. Applied and Environmental Microbiology, 73(16), 5261-5267. doi:10.1128/aem.00062-07
  2. Rizki, M., Arhami, M., & Huzeni, H. (2021). Perbaikan Algoritma Naive Bayes Classifier Menggunakan Teknik Laplacian Correction. Jurnal Teknologi, 21(1), 39. doi:10.30811/teknologi.v21i1.2209
  3. Peretz, O., Koren, M., & Koren, O. (2024). Naive Bayes classifier – An ensemble procedure for recall and precision enrichment. Engineering Applications of Artificial Intelligence, 136, 108972. doi:10.1016/j.engappai.2024.108972
  4. Xue, Z., Wei, J., & Guo, W. (2020). A Real-Time Naive Bayes Classifier Accelerator on FPGA. IEEE Access, 8, 40755-40766. doi:10.1109/access.2020.2976879
  5. Zhang, N., Wu, L., Yang, J., & Guan, Y. (2018). Naive Bayes Bearing Fault Diagnosis Based on Enhanced Independence of Data. Sensors, 18(2), 463. doi:10.3390/s18020463
  6. Kumar, R., Krishna Goswami, B., Motiram Mhatre, S., & Agrawal, S. (2024). Naive Bayes in Focus: A Thorough Examination of its Algorithmic Foundations and Use Cases. International Journal of Innovative Science and Research Technology (IJISRT), 2078-2081. doi:10.38124/ijisrt/ijisrt24may1438
  7. Vikramkumar, Vijaykumar, B., & Trilochan (2014). Bayes and Naive Bayes Classifier. arXiv. doi:10.48550/arxiv.1404.0933 Free full text
  8. Frank, E., Mark, H., & Pfahringer, B. (2012). Locally Weighted Naive Bayes. arXiv. doi:10.48550/arxiv.1212.2487 Free full text
  9. Jiang, L., Cai, Z., & Wang, D. (2010). Improving naive bayes for classification. International Journal of Computers and Applications, 32(3). doi:10.2316/journal.202.2010.3.202-2747
  10. Taheri, S., & Mammadov, M. (2013). Learning the naive Bayes classifier with optimization models. International Journal of Applied Mathematics and Computer Science, 23(4), 787-795. doi:10.2478/amcs-2013-0059
  11. Yu, L., Gan, S., Chen, Y., & He, M. (2020). Correlation-Based Weight Adjusted Naive Bayes. IEEE Access, 8, 51377-51387. doi:10.1109/access.2020.2973331
  12. Xu, W., Jiang, L., & Yu, L. (2019). An attribute value frequency-based instance weighting filter for naive Bayes. Journal of Experimental & Theoretical Artificial Intelligence, 31(2), 225-236. doi:10.1080/0952813x.2018.1544284
  13. Long, Y., Wang, L., & Sun, M. (2019). Structure Extension of Tree-Augmented Naive Bayes. Entropy, 21(8), 721. doi:10.3390/e21080721
  14. Gan, S., Shao, S., Chen, L., Yu, L., & Jiang, L. (2021). Adapting Hidden Naive Bayes for Text Classification. Mathematics, 9(19), 2378. doi:10.3390/math9192378
  15. Sang-Bum Kim, Kyoung-Soo Han, Hae-Chang Rim, & Sung Hyon Myaeng (2006). Some Effective Techniques for Naive Bayes Text Classification. IEEE Transactions on Knowledge and Data Engineering, 18(11), 1457-1466. doi:10.1109/tkde.2006.180
  16. Mocherla, S., Danehy, A., & Impey, C. (2017). Evaluation of Naive Bayes and Support Vector Machines for Wikipedia. Applied Artificial Intelligence, 31(9-10), 733-744. doi:10.1080/08839514.2018.1440907
  17. Miranda, E., Irwansyah, E., Amelga, A. Y., Maribondang, M. M., & Salim, M. (2016). Detection of Cardiovascular Disease Risk's Level for Adults Using Naive Bayes Classifier. Healthcare Informatics Research, 22(3), 196. doi:10.4258/hir.2016.22.3.196
  18. Feng, X., Li, S., Yuan, C., Zeng, P., & Sun, Y. (2018). Prediction of Slope Stability using Naive Bayes Classifier. KSCE Journal of Civil Engineering, 22(3), 941-950. doi:10.1007/s12205-018-1337-3
  19. Aker, E., Othman, M. L., Veerasamy, V., Aris, I. b., Wahab, N. I. A., & Hizam, H. (2020). Fault Detection and Classification of Shunt Compensated Transmission Line Using Discrete Wavelet Transform and Naive Bayes Classifier. Energies, 13(1), 243. doi:10.3390/en13010243
  20. Almeida, T. A., Almeida, J., & Yamakami, A. (2011). Spam filtering: how the dimensionality reduction affects the accuracy of Naive Bayes classifiers. Journal of Internet Services and Applications, 1(3), 183-200. doi:10.1007/s13174-010-0014-7
  21. Mukherjee, S., & Sharma, N. (2012). Intrusion Detection using Naive Bayes Classifier with Feature Reduction. Procedia Technology, 4, 119-128. doi:10.1016/j.protcy.2012.05.017
  22. Kharya, S., Agrawal, S., & Soni, S. (2014). Naive Bayes Classifiers: A Probabilistic Detection Model for Breast Cancer. International Journal of Computer Applications, 92(10), 26-31. doi:10.5120/16045-5206
  23. Kharya, S., & Soni, S. (2016). Weighted Naive Bayes Classifier: A Predictive Model for Breast Cancer Detection. International Journal of Computer Applications, 133(9), 32-37. doi:10.5120/ijca2016908023
  24. Amity School of Engineering & Technology, Amity University Uttar Pradesh, Lucknow, India, Srivastava, R., Singh, P., & Amity School of Engineering & Technology, Amity University Uttar Pradesh, Lucknow, India (2022). Fake news Detection Using Naive Bayes Classifier. Journal of Management and Service Science (JMSS), 2(1), 1-7. doi:10.54060/jmss/002.01.005
  25. Abellán, J., & Castellano, J. (2017). Improving the Naive Bayes Classifier via a Quick Variable Selection Method Using Maximum of Entropy. Entropy, 19(6), 247. doi:10.3390/e19060247
  26. Associate Professor, Department of Computer Science and Engineering, Sri Krishna College of Engineering and Technology, Coimbatore, India, Prabha, D. D., Subramanian, M. R. S., Research Scholar, Anna University, Chennai, Balakrishnan, D. S., Professor, Department of Computer Science and Engineering, Sri Krishna College of Engineering and Technology, Coimbatore, India, Karpagam, D. M., & Professor, Department of Electronics and Communication Engineering, Sri Krishna College of Engineering and Technology, Coimbatore, India (2019). Performance Evaluation of Naive Bayes Classifier with and without Filter Based Feature Selection. International Journal of Innovative Technology and Exploring Engineering, 8(10), 2154-2158. doi:10.35940/ijitee.j9376.0881019
  27. Dimitoglou, G., A., A. J., & Jim, C. (2012). Comparison of the C4.5 and a Naive Bayes Classifier for the Prediction of Lung Cancer Survivability. arXiv. doi:10.48550/arxiv.1206.1121 Free full text
  28. Kim, T., & Lee, J. S. (2022). Exponential Loss Minimization for Learning Weighted Naive Bayes Classifiers. IEEE Access, 10, 22724-22736. doi:10.1109/access.2022.3155231
  29. Phatcharathada, B., & Srisuradetchai, P. (2025). Randomized Feature and Bootstrapped Naive Bayes Classification. Applied System Innovation, 8(4), 94. doi:10.3390/asi8040094
  30. Imandasari, T., Irawan, E., Windarto, A. P., & Wanto, A. (2019). Algoritma Naive Bayes Dalam Klasifikasi Lokasi Pembangunan Sumber Air. Prosiding Seminar Nasional Riset Information Science (SENARIS), 1, 750. doi:10.30645/senaris.v1i0.81
  31. Aridas, C. K., Karlos, S., Kanas, V. G., Fazakis, N., & Kotsiantis, S. B. (2020). Uncertainty Based Under-Sampling for Learning Naive Bayes Classifiers Under Imbalanced Data Sets. IEEE Access, 8, 2122-2133. doi:10.1109/access.2019.2961784
  32. Calders, T., & Verwer, S. (2010). Three naive Bayes approaches for discrimination-free classification. Data Mining and Knowledge Discovery, 21(2), 277-292. doi:10.1007/s10618-010-0190-x
  33. Choi, Y., Farnadi, G., Babaki, B., & Van den Broeck, G. (2020). Learning Fair Naive Bayes Classifiers by Discovering and Eliminating Discrimination Patterns. Proceedings of the AAAI Conference on Artificial Intelligence, 34(06), 10077-10084. doi:10.1609/aaai.v34i06.6565
  34. Li, M., & Liu, K. (2019). Causality-Based Attribute Weighting via Information Flow and Genetic Algorithm for Naive Bayes Classifier. IEEE Access, 7, 150630-150641. doi:10.1109/access.2019.2947568
  35. Wang, S., Ren, J., & Bai, R. (2020). A Regularized Attribute Weighting Framework for Naive Bayes. IEEE Access, 8, 225639-225649. doi:10.1109/access.2020.3044946
  36. Yang, Z., Ren, J., Zhang, Z., Sun, Y., Zhang, C., Wang, M., & Wang, L. (2023). A New Three-Way Incremental Naive Bayes Classifier. Electronics, 12(7), 1730. doi:10.3390/electronics12071730
  37. Wilson, A. J., Lakeland, B. S., Wilson, T. J., & Naylor, T. (2023). A naive Bayes classifier for identifying Class II YSOs. Monthly Notices of the Royal Astronomical Society, 521(1), 354-388. doi:10.1093/mnras/stad301

Cite this page: Atlas Nova editors. (2026). Naive Bayes classifier. Atlas Nova. https://velocer.io/atlas/naive-bayes/