warin.me · Research Lab EN · ไทย
PLANT PROTEIN LOCALIZATION · 2026

From web RPA
to local voting.

We revisit a 2021 PSO-weighted ensemble for plant-protein subcellular localization: rebuild its voting idea with locally executable predictors, test it on a larger multilabel dataset, and expose every classifier answer before weighting.

Why this lab exists

A protein's location inside a cell is closely connected to what it does. Experimental localization is valuable but can be slow and costly, so computational predictors are often used to prioritize hypotheses. Those predictors are built from different evidence and can disagree. The research question is therefore not merely “which classifier wins?” but “can their complementary evidence be combined transparently and reliably?”

The original problem

Useful vote, fragile delivery

The 2021 system collected six web-classifier outputs through Selenium and BeautifulSoup RPA, stored them in SQL, and used PSO to learn a classifier-by-localization weight matrix. In later operation, remote queues and changing web interfaces could make one request take more than five minutes.

What we changed

Move inference close to the experiment

This lab replaces remote RPA with isolated local Docker predictors. Raw results are cached, aligned to a shared localization vocabulary, and displayed before coefficients are applied. The aim is lower operational latency, reproducibility, and an audit trail—not to claim ownership of the borrowed base models.

What we test

Does more evidence actually help?

We rerun the idea on 5,116 Viridiplantae proteins with both multilabel evaluation and a primary-location experiment faithful to the 2021 decision rule. Adding ngLOC slightly improves the paper-compatible TVPSO result, but harms the multilabel voter, showing why every variant must be validated rather than assumed better.

What this page contributes. It is a reproducible continuation and systems study: local execution, explicit score normalization, a larger partitioned dataset, visible evidence, two evaluation formulations, confusion matrices, and preserved model artifacts. It is not a new claim that PSO, ngLOC, LOCALIZER, WoLF PSORT, Light Attention, or SherLoc2 were invented here.

Credit and research lineage

The present lab stands on two earlier ensemble efforts. Credit is listed explicitly because the software architecture, PSO schedule, and biological framing came from collaborative research rather than from a single implementation session.

PlantLoc / plant weighted ensemble · 2021

Weighted Ensemble for Plant Protein Subcellular Localization Using Particle Swarm Optimization, ECTI-CON 2021.

  • Warin Wattanapornprom
  • Thanagorn Glomrit
  • Tinnaphop Prayongsup
  • Pitchayanin Suwanthanarat
  • Supatcha Lertampaiporn

This work established the plant-classifier RPA workflow, localization-specific PSO weights, result ranking, and the presentation structure reproduced here.

PSO-LocBact · 2019

A Consensus Method for Optimizing Multiple Classifier Results for Predicting the Subcellular Localization of Bacterial Proteins, BioMed Research International 2019.

  • Supatcha Lertampaiporn
  • Sirapop Nuannimnoi
  • Tayvich Vorapreeda
  • Nipa Chokesajjawatee
  • Wonnop Visessanguan
  • Chinae Thammarongtham

PSO-LocBact documented the time-varying PSO parameters completed in this reproduction: 25 particles, 1,000 objective calls, inertia .9→.4, c1 2.5→.5, and c2 .5→2.5.

Base-predictor creators and citations are credited separately near the end of this page. Their published models supply evidence to the ensemble; their outputs are not presented as models created by the PlantLoc team.

Why multiple locations matter

A protein is not necessarily confined to one compartment. It may be transported, retained only temporarily, modified in one location and act in another, or genuinely perform different functions in several compartments. This spatial movement is part of the biology—not merely noise in an annotation table.

Biological function

Location can change with state

Development, stress, signalling and post-translational modification can redirect a plant protein. A single top-1 label can hide this conditional or sequential behaviour.

Experimental interpretation

Secondary labels are hypotheses

Multi-location predictions help researchers select organelles, markers and time points for validation instead of treating every non-primary observation as an error.

Evaluation

Top-1 accuracy is incomplete

A primary-location score can be high while missing valid secondary compartments. We therefore report both a 2021-compatible single-label experiment and exact, micro, macro and Hamming multilabel metrics.

Practical consequence. The production panel applies one threshold per localization and can return more than one answer. The pie chart is a distribution of ensemble support; it is not evidence that a protein physically spends that percentage of time in each compartment.

What changed from the 2021 version?

The original method is preserved as a separate paper-compatible experiment; the operational system and the broader multilabel study are deliberately modernized.

Aspect2021 PlantLocCurrent lab
Classifier executionSix remote web predictors submitted by RPAFour local production predictors; ngLOC is tested as a fifth research variant
Delivery architectureFrontend, backend, SQL queue and web crawlingIsolated Docker services, local adapters, result cache and rate limiting
Experimental dataDataset S: 753 proteins5,116 experimental-evidence Viridiplantae proteins from DeepLoc partitions
Localization formulation12 primary-location classes10 shared classes with multilabel targets; ngLOC cytoskeleton is retained raw but excluded from the shared vote
OptimizationTime-varying PSO maximizing primary-location accuracyThe same TVPSO decision rule is reproduced, plus a separate thresholded multilabel PSO voter
Evaluation10-fold evaluation on primary labelsLocked tests: 831 single-label proteins and 963 multilabel proteins, with class-level confusion matrices
TransparencyRanked score table and pie chartRaw answer → coefficient → weighted contribution → threshold/output, weights and confusion matrices
Headline result92.3% on the original 753-protein setting90.5% primary accuracy for five-predictor TVPSO; 75.0% exact multilabel accuracy for production

The percentages are not directly comparable: the datasets, label spaces, base predictors and evaluation questions differ. The current page shows both formulations so that a systems improvement is not mistaken for a like-for-like accuracy claim.

Architecture · before and after

2021 · Web RPA

Frontend
Backend + SQL
Web classifiers
  1. Return queue ID
  2. RPA submits and waits over five minutes
  3. Save results and apply PSO

2026 · Local vote

Lab page
Isolated Docker
Models + PSO
  1. Run local model adapters
  2. Cache raw answers before weighting
  3. Apply per-class coefficients and thresholds

Two faithful experiments, one production panel

The live panel retains the four-predictor multilabel voter because adding ngLOC reduced held-out exact accuracy. A separate five-predictor experiment reproduces the 2021 decision rule: time-varying PSO learns one coefficient per classifier and localization, then selects the maximum weighted score as the primary localization.

Production multilabel voter: 3,045 fit / 1,108 validation / 963 test. Paper-compatible TVPSO: 3,348 single-label development / 831 single-label test.

Prediction panel · FASTA input → local vote output

This is live local inference—not a demonstration value. Paste one protein sequence and run the four-predictor voter.

First-time inference can be slow. Identical sequences use the local cache. Public requests are rate-limited.

Vote output

Submit a sequence to see the voted localizations and score distribution.

The evidence table will show raw score and native Yes/No → coefficient → weighted numerator → vote/threshold → final output.

Multilabel held-out comparison · 963 proteins

ModelMacro F1Micro F1Weighted F1Exact accuracyHamming loss
Light Attention.766.839.831.764.034
Production PSO · four predictors.764.833.829.750.038
PSO + ngLOC · five predictors.674.827.808.734.037
ngLOC native top-1.500.608.582.562.084
Previous PSO · three predictors.743.833.833.771.037
SherLoc2 sequence-only.327.415.372.307.112

Adding ngLOC does not improve the multilabel voter. Production therefore stays on the four-predictor model. Exact accuracy requires all ten labels to match.

2021-compatible primary-location experiment · 831 proteins

ModelPrimary accuracyMacro F1Weighted F1
TVPSO · five predictors including ngLOC.905.840.905
TVPSO · four predictors.901.822.900
Light Attention.901.820.900
ngLOC 1.0 plant.651.537.637
WoLF PSORT.596.350.573
LOCALIZER.514.181.419
SherLoc2 sequence-only.434.357.445

TVPSO uses 25 particles, 1,000 objective evaluations, inertia .9→.4, c1 2.5→.5, c2 .5→2.5, weights constrained to [0,1], and seed 42. Only exactly-one-label proteins are used because DeepLoc does not supply a separate primary label for multilabel rows.

Prediction accuracy by localization

Per-label F1, presented like Table II of the original paper.

Particle-swarm optimized weights

2021-compatible TVPSO weights · five predictors

Legacy predictor installation audit

ngLOC 1.0Installed · plantOfficial GPL archive compiled with the plant switch; 7,835 accepted training sequences and 5,116 experimental predictions completed locally.
SherLoc2Installed · sequence-onlyOfficial models run locally without unavailable EpiLoc and optional GO/InterProScan features.
Plant-mPLocWeb onlyNo standalone model release. It is not included in any accuracy claim.

ngLOC also predicts cytoskeleton. That raw score is retained, then excluded and the ten shared localization scores are renormalized before voting.

Confusion matrices · 963 locked-test proteins

TVPSO primary-location confusion matrix · 831 test proteins

Rows are experimental labels; columns are predicted labels. Darker cells contain more proteins.

Scientific limitation

Light Attention was developed around DeepLoc. Partition 4 was not used to optimize this voter, but it is not guaranteed unseen by the pretrained base model. This is a PSO development and systems experiment, not an independent Light Attention benchmark.

Base predictors and data references

These are the methods whose executable outputs were actually used.

  1. LOCALIZER — Sperschneider J. et al. (2017), Scientific Reports 7:44598. doi:10.1038/srep44598
  2. WoLF PSORT — Horton P. et al. (2007), Nucleic Acids Research 35:W585–W587. doi:10.1093/nar/gkm259
  3. Light Attention — Stärk H. et al. (2021), Bioinformatics Advances. doi:10.1093/bioadv/vbab035
  4. SherLoc2 — Briesemeister S. et al. (2009), Journal of Proteome Research 8:5363–5366. doi:10.1021/pr900665y
  5. ngLOC — King B.R. and Guda C. (2007), Genome Biology 8:R68. doi:10.1186/gb-2007-8-5-r68
  6. DeepLoc dataset — Almagro Armenteros J.J. et al. (2017), Bioinformatics 33:3387–3395. doi:10.1093/bioinformatics/btx431
  7. PSO-LocBact parameters — Lertampaiporn S. et al. (2019), BioMed Research International 2019:5617153. doi:10.1155/2019/5617153

Research lineage

Weighted Ensemble for Plant Protein Subcellular Localization Using Particle Swarm Optimization, ECTI-CON 2021, pp. 777–780.

The 2026 experiment changes the predictor execution path, dataset partitions, multilabel evaluation and learned coefficients; it does not present the base predictors as our own models.