Grading Toxicities in Cellular Immune Therapy Using Boolean Logic
Boolean Algebra (Mathematical Logic) for Grading of Toxicities Associated with Cellular Immune Therapy
Gerhard Zugmaier1 and Franco Locatelli2
- Department of Haematology, Oncology and Immunology, Pilipps University Marburg, Marburg, Germany
- Department of Pediatrics, Sapienza, University of Rome, Director Department of Pediatric Hematology and Oncology IRCCS Ospedale Pediatrico Bambino Gesù, Rome, Italy
OPEN ACCESS
PUBLISHED: 31 October 2024
CITATION: Zugmaier, G., Locatelli, F., et al., 2024. Boolean Algebra (Mathematical Logic) for Grading of Toxicities Associated with Cellular Immune Therapy. Medical Research Archives, [online] 12(10). https://doi.org/10.18103/mra.v12i10.5765
DOI https://doi.org/10.18103/mra.v12i10.5765
ISSN 2375-1924
ABSTRACT
In clinical practice toxicity grading is guided by scales such as the Common Terminology Criteria for Adverse Events. These scales assign grades (usually from 1 to 5) to various toxicities based on severity. Cellular Immunotherapies, whose mechanism of action includes directing T cells to target cells can be associated with special side effects such as cytokine release syndrome or neurologic toxicity. The American Society for Transplantation and Cellular Therapy has developed an easily applicable, logical and concise system to categorize and grade cytokine release syndrome and neurologic toxicity. Cytokine release syndrome is a systemic inflammatory response that can occur after immune cell therapy. Neurologic toxicity can also occur after immune cell therapy. It can include encephalopathy, delirium, headache, anxiety, sleep disorder, dizziness, aphasia, motor dysfunction, tremor, ataxia, seizure, dyscalculia, myoclonus. Boolean algebra can be used to automate and standardize this grading process by translating it into a mathematical framework that combines different clinical signs and symptoms. In this study we apply Boolean algebra as a mathematical tool to define and grade Cytokine release syndrome and neurologic toxicity by the criteria of the American Society for Transplantation and Cellular Therapy.
Keywords
Boolean algebra, toxicity grading, cellular immune therapy, cytokine release syndrome, neurologic toxicity
Introduction
Boolean algebra is a branch of mathematics that uses the binary system with the manipulation of variables that have 2 possible values 1 or 0. It enables calculations with operators such as AND, OR, and NOT. The operator AND is identical to multiplication, the operator OR is identical to addition with the exception that 1 OR 1 = 1 and not 10 as in the regular binary system. The Boolean binary system differs from the regular binary system in that all calculations can only have the result 1 or 0. Boolean algebra is widely used in medicine, particularly in areas that involve decision-making, diagnostic systems, medical imaging, and bioinformatics. It serves as basis of clinical systems, which assist healthcare providers in diagnosing and treating diseases by processing complex medical data. In medical diagnostics, Boolean algebra combines multiple test results and clinical findings to find a diagnosis. Boolean operations are used to evaluate the presence or absence of symptoms or test results. Boolean algebra is used in medical imaging for pattern recognition and has been shown to be useful for the definition of hematologic malignancies.
These properties make Boolean algebra an ideal tool for calculating the Grades of toxicities. The American Society for Transplantation and Cellular Therapy (ASTCT) criteria for grading cytokine release syndrome (CRS) and immune effector cell-associated neurotoxicity syndrome (ICANS) provide a standardized framework for assessing the severity of these conditions, which can occur following treatments like CAR T-cell therapy.
Cytokine Release Syndrome Grading
Cytokine Release Syndrome (CRS) is a systemic inflammatory response that can occur after immune cell therapy. The ASTCT criteria grade CRS as follows:
- Grade 1:
- Fever (≥ 38°C)
- No hypotension or hypoxia.
- Grade 2:
- Fever (≥ 38°C)
- Hypotension responsive to fluids or low-dose vasopressors (e.g., norepinephrine ≤ 0.1 µg/kg/min).
- Hypoxia requiring low-flow oxygen (nasal cannula ≤ 6 L/min or face mask ≤ 10 L/min).
- Grade 3:
- Fever (≥ 38°C)
- Hypotension requiring high-dose vasopressors (e.g., norepinephrine > 0.1 µg/kg/min or multiple vasopressors).
- Hypoxia requiring high-flow oxygen (non-rebreather mask, high-flow nasal cannula, or ventilator support).
- Grade 4:
- Fever (≥ 38°C)
- Life-threatening hypotension requiring multiple vasopressors and/or hypoxia requiring positive pressure ventilation (e.g., CPAP, BiPAP, or intubation).
Immune Effector Cell-Associated Neurotoxicity Syndrome Grading
Immune Effector Cell-Associated Neurotoxicity Syndrome (ICANS) is a neurological toxicity that can occur following immune effector cell therapy. ICANS is evaluated using the Immune Effector Cell-Associated Encephalopathy (ICE) score and the level of consciousness, seizure activity, motor symptoms, and cerebral edema.

ICE score
| YES | NO |
|---|---|
| Orientation | 4 |
| Naming | 3 |
| Following commands | 1 |
| Writing | 1 |
| Attention | 1 |
Thus, the ASTCT criteria grade ICANS as follows:
- Grade 1:
- ICE Score: 7–9
- Level of Consciousness: Awake and oriented.
- Seizures: None.
- Motor Symptoms: None.
- Cerebral Edema: None.
- Grade 2:
- ICE Score: 3–6
- Level of Consciousness: Awake but disoriented or somnolent.
- Seizures: None.
- Motor Symptoms: Mild.
- Cerebral Edema: None.
- Grade 3:
- ICE Score: 0–2
- Level of Consciousness: Somnolence or stupor but arousable with verbal stimuli.
- Seizures: Seizures responsive to treatment.
- Motor Symptoms: Significant motor weakness.
- Cerebral Edema: None.
- Grade 4:
- ICE Score: 0
- Level of Consciousness: Unarousable, comatose.
- Seizures: Life-threatening seizures or status epilepticus.
- Motor Symptoms: Life-threatening motor weakness.
- Cerebral Edema: Severe cerebral edema, potentially fatal.
- Grade 5:
- Death due to ICANS.
In this study we have combined Boolean equations and The ASTCT criteria for CRS and ICANS.
Methods
Basic Notations in Boolean Algebra
- Boolean Variables:
- Typically represented by capital letters (e.g., A, B, C). These letters can represent any parameter, such as symptoms, clinical signs, laboratory values, cytologic data, cytometric data, genetic data.
- Each Boolean variable can take one of two values: 1 (true) or 0 (false).
- Boolean Operations:
- AND Operation:
- Symbol: ⋅ (multiplication symbol) or ∧
- Expression: A ⋅ B or A ∧ B
- Meaning: The result is 1 if both A and B are 1; otherwise, it is 0.
- Example: 1⋅1=1, 1⋅0=0
- OR Operation:
- Symbol: + (addition symbol) or ∨
- Expression: A + B or A ∨ B
- Meaning: The result is 1, if A or B or both are 1; if both are 0, the result is 0.
- Example: 1 + 0 = 1, 0 + 0 = 0
- NOT Operation:
- Symbol: ¬ A (negation)
- Expression: ¬ A
- Meaning: The result is the inverse of A; if A is 1, ¬A is 0, and vice versa.
- Example: ¬ 1 = 0, ¬ 0 = 1
- XOR Operation (Exclusive OR):
- Symbol: A ⊕ B
- Expression: The result is 1, if exactly one of A or B is 1, but not both. It is also 0, if both A and B are 0.
- Example: 1 ⊕ 0 = 1, 1 ⊕ 1 = 0
- XNOR Operation (Equality = negation of Exclusive OR):
- Symbol: A = B or ¬ (A ⊕ B)
- Expression: The result is 1 if A and B are both 1 or both 0.
- Example: 1 = 1, 0 = 0
- AND Operation:
The common notation of the expression “if A, then B” is: A → B. This can be read as “if A is 1, then B must also be 1.” In Boolean terms, this implication is 0 only if A is 1 and B is 0; in all other cases, the implication has the result 1. The implication A → B is usually expressed using the OR and NOT operations: A → B = ¬ A ∨ B. This equivalence is derived from the definition of the term in Boolean algebra. The expression ¬ A ∨ B has the result 1 in all cases except for A is 1 and B is 0.
In principle there are only two 2-digit combinations together with ¬ necessary, ∧ or v and with ⊕ or =. The combination with ∧ can be expressed as negations of the combination with v and vice versa, example: ¬ A v B = ¬ (A ∧ ¬ B). The same accounts for combinations with ⊕ and =, example: ¬ (A = B) = A ⊕ B. All combinations can be replaced by combinations with the operator NOR (¬ (A v B)), or the operator NAND (¬ (A ∧ B)). However, replacement of other operators by one of these 2 operators results in multi-digit combinations, example: (A NAND B) NAND (A NAND B) = A ∧ B. In the formulas the following operators take precedence:
- () over each operator
- ¬ over ∧
- ∧ over v
- v, ⊕ over = (Takeuti 1987)
Results
Grading of CRS
Grade 1 = fever > 38C
Grade 2 = fever > 38C ∧ (hypotension v (hypoxia ∧ low flow canicula) = fever > 38C ∧ hypotension v fever > 38C ∧ hypoxia ∧ low flow nasal canicula
Grade 3 = fever > 38C ∧ (hypotension ∧ 1 vasopressor v hypoxia ∧ (low flow nasal canicula) = fever > 38C ∧ hypotension ∧ 1 vasopressor v fever > 38C ∧ hypoxia ∧ low flow canicula
Grade 4 = fever > 38C ∧ (hypotension ∧ > 1 vasopressors v hypoxia ∧ intubation) = fever > 38C ∧ hypotension ∧ > 1 vasopressors v fever > 38C ∧ hypoxia ∧ intubation
From the linear equation above the linear equations below follow:
Grade > 1 CRS → fever > 38C
Grade > 2 CRS → fever > 38C ∧ (hypotension v hypoxia) = Grade > 2 CRS → fever > 38C ∧ hypotension v fever > 38C ∧ hypoxia
ICE score
ICE > 7 = orientation ∧ naming ∧ (following commands v writing v attention)
ICE 7 = orientation ∧ (naming ⊕ following commands ∧ writing ∧ attention)
ICE 7 → orientation = ¬ orientation → ¬ ICE 7. This means, if the ICE is 7, then it must include at least “orientation”. Otherwise, the score would not add up to 7. If it does not include orientation, then the ICE score must be < 7.
Grading of ICANS for adults
Grade 1 = ICE score (7 – 9) v depressed consciousness ∧ awakens spontaneously
Grade 2 = (ICE score (3 – 6) v depressed consciousness ∧ awakens only to voice
Grade 3 = (ICE score (0 – 3) v depressed consciousness ∧ awakens only to tactile stimulus v generalized seizure rapidly resolving v nonconvulsive size v focal edema v ICE score 0 ∧ awake with global aphasia
Grade 4 = ICE score 0 v coma v seizure > 5 minutes v paresis v diffuse edema v cranial nerve VI palsy v papilledema v Cushing’s triad
ICANS = encephalopathy v delirium v headache v anxiety v sleep disorder v dizziness v aphasia v motor dysfunction v tremor v ataxia v seizure v dyscalculia v myoclonus
Discussion
In this study, we have applied Boolean equations to define and grade CRS and ICANS. Linear equations in Boolean algebra have been investigated over decades. Boolean equations help to find the correct Grade of CRS and ICANS. For example, the system shows that an ICANS of least Grade 2 has to be associated with a depressed level of consciousness. A Grade 1 ICANS has to be associated with a normal level of consciousness.
Boolean algebra can be used to define an adverse event by specifying the conditions, under which it occurs. For example, an adverse event might be defined as the occurrence of condition A and condition B, but not condition C. This can be written as A ∧ B ∧ ¬ C. In medical studies, adverse events often depend on a combination of symptoms, test results, and patient history. Boolean expressions can capture these complex conditions. By Boolean algebra combinations of risk factors can be defined. Boolean expressions can be applied for generating decision trees to handle adverse events.
Boolean algebra has been applied on a wide scale in medicine. This includes all areas of medical research. Boolean algebra is only one example of the application of mathematics in medicine. Mathematics has become not only a tool but a component of all medical sciences. Medicine came rather late after physics, computer science and chemistry. Nowadays clinical research cannot be conducted without mathematics. Two issues pose major challenges for the application of mathematics including Boolean algebra in medicine, the lack of standard in notation and the mix up of mathematic and logic.
Unfortunately, mathematics in many cases lacks a standard in notation. Boolean algebra is not exempt from this issue. Various symbols are used interchangeably. The lack of standard notation can lead to confusion and ambiguity, especially when mathematical concepts are being communicated across different disciplines, educational levels, and geographical regions. While some notations have been standardized, many mathematical symbols and conventions vary depending on the context, leading to potential misunderstandings. Below key reasons and challenges related to the lack of standard notation in mathematics are listed:
- HISTORICAL DEVELOPMENT OF NOTATION
- Mathematical notation has evolved over centuries, and there is no central authority governing it. Different mathematicians, regions, and schools of thought have developed their own notations independently. For instance:
- Leibniz and Newton both developed their own notations for calculus.
- Vector notation: Some people use boldface letters to denote vectors, while others use arrows over letters.
- Set notation: In different countries, the notations for set theory can differ.
- Challenge: Different historical roots and local conventions have caused variations in notation that persist even today, making it difficult to establish a universal system.
- CONTEXTUAL VARIATION
- Mathematics is applied in many different contexts, such as physics, engineering, economics, and computer science. Each field has developed its own notation that is optimized for its specific needs.
- Probabilities: The notation for probabilities in statistics can vary.
- Economics: In economics, functions representing utility, cost, or profit are often represented differently than in other fields, sometimes omitting explicit dependencies for clarity.
- Challenge: These variations arise from the need to optimize notation for specific applications, but they can cause confusion when crossing disciplines or reading work from other fields.
- AMBIGUITY AND OVERLOADING OF SYMBOLS
- Many mathematical symbols are overloaded, meaning that the same symbol can have different meanings depending on the context.
- Challenge: The same symbol being used in different contexts leads to ambiguity, especially when working with multidisciplinary problems or switching between subjects.
- LACK OF UNIVERSAL STANDARDS
- The absence of a universal standard leads to inconsistencies in notation, making it difficult for students and researchers from different regions or fields to interpret each other’s work.
- EDUCATIONAL AND CULTURAL VARIATIONS
- The lack of consistent educational standards can lead to confusion when students or researchers encounter different notations during international collaboration or study.
- EFFORTS TOWARD STANDARDIZATION
- In some cases, attempts have been made to standardize notation:
- SI Units: In science and engineering, the International System of Units (SI) has created a standard for units of measurement, although variations still exist in notation for certain derived quantities.
- LaTeX: The widespread adoption of LaTeX for typesetting mathematical documents has encouraged more consistency in how mathematical expressions are presented, though it hasn’t fully solved the problem.
- Challenge: Despite efforts toward standardization in some areas, full standardization has not been achieved across mathematics as a whole, and even widely accepted systems like SI units can conflict with older or regional standards.
- CHALLENGES IN COMMUNICATION AND LEARNING
- The lack of standard notation can be a significant barrier for students learning mathematics and for researchers communicating complex ideas.
- Learning Curve: Students often need to re-learn different notations when moving from one mathematical domain to another (e.g., from linear algebra to functional analysis, or from statistics to pure mathematics).
- Collaboration: When mathematicians from different subfields collaborate, they often need to clarify or redefine notation, which can slow down the communication of ideas.
- Challenge: The differences in notation not only complicate learning but can also hinder collaboration and interdisciplinary research.
- COMPUTATIONAL AND PROGRAMMING CONTEXTS
- Adapting mathematical notation for computational purposes requires converting abstract symbols into a more concrete syntax, which can introduce errors or inefficiencies.
The lack of standard notation in mathematics, while reflective of its rich historical and interdisciplinary nature, poses challenges for communication, learning, and collaboration. Although some fields have made strides toward standardization, complete consistency remains elusive due to the diversity of mathematical applications, cultural and regional variations, and the evolving nature of mathematical discoveries. As mathematics continues to grow, balancing the need for standardized notation with the flexibility required for different contexts will remain a challenge.
The terms “mathematical” logic and “Boolean algebra” are often used interchangeably. This leads to the impression that logic is a mathematical discipline and mathematics is the basis of logic. Boolean algebra or mathematical logic is indeed different from logic, and it should not be confused with the broader discipline of logic. It uses operations such as AND, OR, and NOT for arithmetic calculations. It is a specialized mathematical system designed for specific applications. The term Boolean algebra used primarily in specific technical fields. The term mathematical logic, which is synonymous to the term Boolean algebra, is more commonly used in pure mathematics. The operators AND, OR and NOT are defined by mathematical axioms and can be replaced by different symbols or other words.
In contrast, logic is not confined to mathematics; rather, it is a universal system of reasoning that applies to all areas of knowledge, guiding the development of scientific theories, philosophical arguments, and computational systems alike. Thus, logic although independent of the language used can only be explained by natural language. Symbols and graphics may be used but only for better illustration and explanation and not as a system of operators defined by axioms. Logic and grammar are the only disciplines that have natural language as their meta language and object language.
This distinction underscores the importance of recognizing the unique roles each plays: Boolean algebra as a powerful tool in binary mathematics and logic as the foundation of rational thought across all domains.
The concept of logic as being a mathematical discipline has been followed by some authors. The consequence is the outcome of multiple circular statements. “Logical formulae” need to be defined by logic expressed in verbal terms. Artificial words such as “iff” for necessary and sufficient conditions need to be generated. The term “truth values”, not mathematically defined, should be reserved for logic and not used in mathematics. We apply numbers instead of truth values as we use arithmetic calculations and not logic operations. The approach in this study is purely mathematical.
Conclusion
Boolean algebra has been demonstrated to facilitate many processes in medicine. Mathematics including artificial intelligence may enable to take unnecessary work off the busy clinician so she or he has more time for the patients. The lack of standard in notation and the mix up with logic pose a major change to a universal application.
Acknowledgement
The authors thank Miriam Raab for editorial assistance.
References
- Shortliffe EH, Cimino JJ, eds. Biomedical Informatics: Computer Applications in Health Care and Biomedicine. Springer; 2013.
- Zugmaier G, Locatelli F. Application of Mathematical Logic for Immunophenotyping of B-Cell Precursor Acute Lymphoblastic Leukemia (BCP-ALL). Biomed Genet Genom. 2019;4:1-3. doi:10.15761/bgg.1000148
- Zugmaier G, Locatelli F. Application of Mathematical Logic for Cytogenetic Definition and Risk Stratification of B-Cell Precursor Acute Lymphoblastic Leukemia (BCP-ALL). Med Res Arch. 2021;9(2):1-8. doi:10.18103/mra.v9i2.2328
- Zugmaier G, Kerkmann S, Locatelli F. Application of Boolean Algebra for Definition of Myeloid Neoplasms. Med Res Arch. 2023;11(1). doi:10.18103/mra.v11i1.3456
- Zugmaier G. Boolean Algebra for Laboratory Diagnostics in Medicine. J Clin Res Rep. 2024;16(2).
- Miller RA. Medical Diagnostic Decision Support Systems—Past, Present, and Future: A Threaded Bibliography and Brief Commentary. J Am Med Inform Assoc. 1994;1(1):8-27.
- Gonzalez RC, Woods RE. Digital Image Processing. 3rd ed. Pearson/Prentice Hall; 2008. ISBN: 013168728X.
- Dougherty ER. An Introduction to Morphological Image Processing. SPIE Press; 1992.
- Zugmaier G. Boolean Algebra With Modified Venn Diagrams for Definition of Lymphoma. Clin Oncol. 2024;7(9):1-4.
- Lee DW, Santomasso BD, Locke FL, et al. ASTCT Consensus Grading for Cytokine Release Syndrome and Neurologic Toxicity Associated With Immune Effector Cells. Biol Blood Marrow Transplant. 2019;25(4):625-638. doi:10.1016/j.bbmt.2018.12.758
- Maram R, Howe Jv, Kong D, et al. Frequency-Domain Ultrafast Passive Logic: NOT and XNOR Gates. Nat Commun. 2020;11:5839. doi:10.1038/s41467-020-19544-9
- Melter RA, Rudeanu S. Linear Equations and Interpolation in Boolean Algebra. Linear Algebra Appl. 1984;57:31-40.
- López-Peña L, García-Cañibano J. Use of Boolean Logic to Categorize and Assess Severity in Clinical Trials. J Clin Trials. 2014;7(2):145-152.
- Wieland SC, Schenkel SF. Boolean Operations for Medical Decision Making: A Primer for Evaluating Complex Diagnostic Tests. Stat Med. 2003;22(18):2743-2761.
- Zhou X, Lee M, Lussier YA. Adverse Drug Event Detection Using Boolean Learning. J Biomed Inform. 2014;52:145-154.
- He Q, Macauley M, Davies R. Dynamics of Complex Boolean Networks. In: Robeva RS, ed. Algebraic and Discrete Mathematical Methods for Modern Biology. Elsevier; 2015:65-91. doi:10.1016/b978-0-12-801213-0.00004-6
- Macauley M, Young N. The Case for Algebraic Biology: From Research to Education. Bull Math Biol. 2020;82(9):115. doi:10.1007/s11538-020-00789-w
- Varadan V, Anastassiou D. Inference of Disease-Related Molecular Logic From Systems-Based Microarray Analysis. PLoS Comput Biol. 2006;2(6):585-597. doi:10.1371/journal.pcbi.0020068.eor
- DiAndreth B, Hamburger AE, Xu H, Kamb A. The TMOD Cellular Logic Gate as a Solution for Tumor-Selective Immunotherapy. Clin Immunol. 2022;241:1-8. doi:10.1016/j.clim.2022.109030
- Riede U, Moore GW, Williams MB. Quantitative Pathology by Means of Symbolic Logic. CRC Crit Rev Toxicol. 1983;11(4):279-332. doi:10.3109/10408448309037457
- Palma A, Iannuccelli M, Rozzo I, et al. Integrating Patient-Specific Information Into Logic Models of Complex Diseases: Application to Acute Myeloid Leukemia. J Pers Med. 2021;11(2):117. doi:10.3390/jpm11020117
- Matthäus F, Matthäus S, Harris S, Hillen T. The Art of Theoretical Biology. Springer; 2020.
- Cajori F. A History of Mathematical Notations: Two Volumes Bound as One. Dover Publications; 1993.
- Higham NJ. Accuracy and Stability of Numerical Algorithms. SIAM; 2002.
- Hoffmann DW. Grundlagen der Technischen Informatik. 5th ed. Carl Hanser Verlag; 2016.
- Knuth DE. The Art of Computer Programming, Volume 1: Fundamental Algorithms. Addison-Wesley; 1997.
- Shannon CE. A Symbol of Analysis of Relay and Switching Circuits. Massachusetts Institute of Technology; 1940.
- Grattan-Guinness I. Mathematics and Symbolic Logics: Some Notes on an Uneasy Relationship. Hist Philos Logic. 1999;20(3-4):159-167. doi:10.1080/01445349950044116
- Kleene SC. Introduction to Metamathematics. North-Holland Publishing Company; 1952.
- Leitgeb H. Hype: A System of Hyperintensional Logic (With an Application to Semantic Paradoxes). J Philos Logic. 2019;48(2):305-405. doi:10.1007/s10992-018-9467-0
- Steffens HJ, Muehlmann K, Zoellner C. Mathematik für Informatiker für Dummies. Wiley-VCH; 2019.