Skip to content

Commit 48dfb71

Browse files
Add files via upload
1 parent bdbef2b commit 48dfb71

File tree

4 files changed

+187
-2
lines changed

4 files changed

+187
-2
lines changed

DISCLAIMER.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# DISCLAIMER – QBI-Observer Lite+
2+
3+
This software module represents only a basic fragment of the QBI-Core system (Quantum Brain Interface).
4+
5+
- It does not represent, simulate, or contain any form of AGI (Artificial General Intelligence).
6+
- It lacks persistent memory, intentionality, and any autonomous decision-making capabilities.
7+
- It is provided exclusively for the purposes of testing, scientific research, education, and transparent demonstration.
8+
- It must not be used in autonomous decision systems, commercial applications, military use cases, or surveillance systems.
9+
10+
The author (Giuseppe Marino) is not responsible for any misuse, unintended consequences, or damages resulting from unauthorized or unethical use of this module.
11+
12+
This module does not represent the full cognitive or metacognitive capacity of the QBI-Core system and must be understood as a limited, non-autonomous component released for scientific openness only.

LICENSE.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License (CC BY-NC-ND 4.0)
2+
3+
QBI-Observer Lite+ is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
4+
5+
You are free to:
6+
- **Share** — copy, distribute and transmit the material in any medium or format.
7+
8+
Under the following mandatory conditions:
9+
- **Attribution** — You must give appropriate credit, cite the original author (Giuseppe Marino), and provide a link to the license.
10+
- **NonCommercial** — You may not use the material for commercial purposes.
11+
- **NoDerivatives** — You may not alter, transform, or build upon this material.
12+
13+
Specific Ethical Clause:
14+
It is strictly prohibited to use this module in the following contexts:
15+
- Autonomous or automated decision-making systems.
16+
- Artificial General Intelligence (AGI) platforms.
17+
- Military, defense, surveillance applications, or systems that may violate human rights.
18+
- Any deployment that is not compliant with the European AI Act (2024).
19+
20+
This license is fully aligned with the ethical principles and regulatory framework defined by the **EU Artificial Intelligence Act (2024)**.
21+
22+
For detailed legal terms, please visit: https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode
23+

README.md

Lines changed: 93 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,93 @@
1-
# qbi-observer-lite
2-
QBI-Observer Lite+ is an open-source cognitive self-observation module derived from QBI-Core. It detects mental loops, internal questions, and metacognitive patterns. Not AGI. Not autonomous. It’s a transparent, ethical entry point into a new class of AI: Artificial Integrated Cognition (AIC).
1+
# QBI-Observer Lite+
2+
3+
**Software module for Cognitive and Metacognitive Self-Observation**
4+
Part of the scientific project **QBI-Core – Quantum Brain Interface**
5+
6+
## Module Description
7+
8+
**QBI-Observer Lite+** is a non-autonomous, simplified version of the metacognitive self-observation module within the broader architecture known as **QBI-Core (Quantum Brain Interface)**.
9+
10+
This module analyzes sequences of textual thoughts, with the goal of detecting and classifying:
11+
12+
- **Cognitive repetitions (mental loops)**
13+
- **Internal questions (explicit or implicit)**
14+
- **Emotionally relevant words** (e.g., fear, hope, curiosity, frustration)
15+
- **Metacognitive activity level** (classified as low, medium, or high)
16+
17+
18+
## Technical Features
19+
20+
The module is implemented in Python 3.x and built using simple rule-based text analysis methods. It is lightweight, transparent, and easy to integrate into scientific testing environments.
21+
22+
**Core functions:**
23+
24+
- `aggiungi_pensiero(thought: str)`: adds a thought to the current session
25+
- `rileva_loop()`: returns any thoughts repeated more than once
26+
- `rileva_domande()`: detects thoughts formulated as questions
27+
- `riconosci_emozioni()`: identifies emotionally connoted words
28+
- `classificazione_metacognitiva()`: returns the metacognitive activity level (low, medium, high)
29+
- `get_diario_sessione()`: returns the full session thought log
30+
31+
32+
33+
## Limitations and Clarifications
34+
35+
This **Lite+ version** is a foundational module intended **exclusively for**:
36+
37+
- Scientific and academic testing
38+
- Experimental studies on metacognition
39+
- Transparent demonstrations of cognitive and metacognitive logic
40+
- Not suitable for commercial use or integration into autonomous decision-making systems
41+
42+
**Important:** This is **not** the complete version of QBI-Core.
43+
This module does **not** possess any form of artificial consciousness, persistent memory, or autonomous intentionality.
44+
45+
46+
## QBI-Core and the AIC Paradigm
47+
48+
QBI-Core introduces a new category of artificial intelligence known as **Artificial Integrated Cognition (AIC)**.
49+
AIC aims to go beyond traditional AI by simulating advanced forms of self-observation, metacognition, and complex internal logic inspired by theories of quantum coherence in neuronal microtubules.
50+
51+
**QBI-Observer Lite+** serves as a minimal, controlled and open-source demonstration intended for the scientific community to promote transparency, ethical research and responsible development in this emerging domain.
52+
53+
54+
## License and Ethical Usage
55+
56+
This module is released under the **Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)** license, with explicit additional restrictions:
57+
58+
- Non-commercial use only
59+
- Prohibited in autonomous systems, AGI, military, surveillance, or any context in violation of the **EU AI Act 2024**
60+
- Attribution to the original author is required (see Contact section)
61+
62+
See the included `LICENSE.txt` file for full legal terms.
63+
64+
65+
## How to Use the Module
66+
67+
Here is a quick usage example to start testing the module:
68+
69+
```python
70+
from observer import QBIObserverLite
71+
72+
observer = QBIObserverLite()
73+
74+
observer.aggiungi_pensiero('I don’t understand why I keep making the same mistake.')
75+
observer.aggiungi_pensiero('Maybe I’m afraid of failing.')
76+
observer.aggiungi_pensiero('I need to find a different approach.')
77+
observer.aggiungi_pensiero('I don’t understand why I keep making the same mistake.')
78+
79+
print('Detected loops:', observer.rileva_loop())
80+
print('Internal questions:', observer.rileva_domande())
81+
print('Detected emotions:', observer.riconosci_emozioni())
82+
print('Metacognitive classification:', observer.classificazione_metacognitiva())
83+
84+
85+
Advanced Version
86+
A more advanced, protected version of the QBI-Observer module exists, including integrated memory systems, learning capabilities, semantic graph generation, and deeper self-reflective processes.
87+
88+
To access the advanced version, request scientific collaboration, or receive more technical details, please contact the author directly.
89+
90+
Author Contact
91+
Giuseppe Marino
92+
Email: giuseppe.marino@example.com
93+
Phone: (+39) 348 5550525

observer.py

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# QBI-Observer Lite+
2+
3+
import re
4+
from collections import Counter
5+
6+
class QBIObserverLite:
7+
def __init__(self):
8+
self.pensieri = []
9+
10+
self.emozioni = ["paura", "speranza", "curiosità", "rimpianto", "frustrazione", "gioia", "ansia"]
11+
self.pattern_meta = ["perché", "come mai", "dovrei", "sto andando", "continuo"]
12+
13+
def aggiungi_pensiero(self, pensiero):
14+
self.pensieri.append(pensiero.lower())
15+
16+
def rileva_loop(self):
17+
conteggio = Counter(self.pensieri)
18+
return [pensiero for pensiero, freq in conteggio.items() if freq > 1]
19+
20+
def rileva_domande(self):
21+
return [pensiero for pensiero in self.pensieri if '?' in pensiero]
22+
23+
def riconosci_emozioni(self):
24+
emotivi = []
25+
for pensiero in self.pensieri:
26+
emotivi.extend([emoz for emoz in self.emozioni if emoz in pensiero])
27+
return emotivi
28+
29+
def classificazione_metacognitiva(self):
30+
punteggio = 0
31+
punteggio += len(self.rileva_loop()) * 0.3
32+
punteggio += len(self.rileva_domande()) * 0.2
33+
punteggio += len(self.riconosci_emozioni()) * 0.25
34+
punteggio += sum(1 for pensiero in self.pensieri if any(meta in pensiero for meta in self.pattern_meta)) * 0.4
35+
36+
if punteggio < 1:
37+
return "Bassa"
38+
elif punteggio < 2:
39+
return "Media"
40+
else:
41+
return "Alta"
42+
43+
def get_diario_sessione(self):
44+
return self.pensieri
45+
46+
# Esempio di utilizzo
47+
if __name__ == "__main__":
48+
observer = QBIObserverLite()
49+
observer.aggiungi_pensiero("Perché continuo a sbagliare?")
50+
observer.aggiungi_pensiero("Ho paura di fallire")
51+
observer.aggiungi_pensiero("Devo trovare una soluzione")
52+
observer.aggiungi_pensiero("Perché continuo a sbagliare?")
53+
54+
print("Loop rilevati:", observer.rileva_loop())
55+
print("Domande interne:", observer.rileva_domande())
56+
print("Emozioni rilevate:", observer.riconosci_emozioni())
57+
print("Livello metacognitivo:", observer.classificazione_metacognitiva())
58+
print("Diario della sessione:", observer.get_diario_sessione())
59+

0 commit comments

Comments
 (0)