Text Size
Sunday, September 05, 2010
 
EspañolEnglish
ConsScale - Measuring Machine Consciousness
CQS Source Code

ConsScale Source Code

All ConsScale related code is available at Conscious-Robots.com Machine Consciousness download section.

The ConsScale source code package is a zip file that contains both some HTML pages with the information about the scale and the Javascript code of the CQS calculator. Of course, you don't need to download the code to use the scale, you can just use the Online ConsScale Calculator, which is based on this very same code.

The consscale.js file includes the Javascript code to calculate the ConsScale Quantitative Score (CQS):

/*
 * Calculates the value of the CQS based on current value of CLS
 */
function CalculateCQS()
{
 return ( Math.exp( Math.pow(CLS,5) / K) + a) / 10;
}

 ConsScale CQS Equation

The value of CQS is based on the CLS (Cumulative Level Score), which is calculated as follows:

/*
 * Calculates the value of CLS based on current values of Li.
 */
function CalculateCLS()
{
 var sum_cls = 0.0;
 var sum_element = 0.0;
// Main Summation (starts at level 2)
 for (i=2; i < TopLevel+1; i++)
 {
  sum_element = Li[i] / (i-1);
  sum_cls = sum_cls + (sum_element*sum_element);  
 }
return sum_cls;
}

 ConsScale CLS Equation

And initially, the Li values are calculated using this function:

/*
 * Calculates the value of Li for the indicated level
 * using current state of ConsScale CS matrix
 */
function CalculateLi(level)
{
 // Count number of CS fulfilled in level i
 var ncsf = 0;
 for (i=0;i < Ji[level]+1;i++)
 {
  if (ConsScaleMatrix[level][i] == 1)
  {
   ncsf++;
  }
 }
 
 // Only if ncsf is greater than 0 the Li equation has to be computed
 if ( ncsf == 0 )
 {
  return 0.0;
 }
 else
 {
  // Upper part of the Li equation
  var upper_eq = ncsf+(J-Ji[level]);
  upper_eq = upper_eq*upper_eq*upper_eq;
return upper_eq / 1000;
 }
}

ConsScale Li Equation


 

ConsScale - CQS (ConsScale Quantitative Score)

ConsScale++

ConsScale in the Media

Immortal avatars: Back up your brain, never die

New Scientist 2763

New Scientist. 05 June 2010. Cover Story. pp. 28-31.

The topic of mind uploading is addressed in the cover story of this New Scientist issue. ConsScale is quoted as an practical tool to really assess to what extent artificial avatars can be considered as conscious as ourselves.

Related Links

www.Conscious-Robots.com is a website about Machine Consciousness and Cognitive Robotics. The Test for Consciousness forum is the place for open discussion about ConsScale and other metrics for consciousness.

Conscious Robots Website